Hard1 markMultiple Choice

GCP ACE · Question 24 · Domain 3.2: Deploying and implementing GKE resources

You are deploying a new application to GKE and want to ensure that application logs and cluster metrics are automatically sent to Google Cloud Operations Suite (formerly Stackdriver).

Which TWO statements are true regarding GKE monitoring and logging? (Select TWO)

Answer options:

A.

You must manually install the Logging agent (Fluentd) on every GKE node using a DaemonSet.

B.

Cloud Logging and Cloud Monitoring are enabled by default on new GKE clusters.

C.

GKE automatically captures standard output (stdout) and standard error (stderr) from containers.

D.

You must modify your application code to use the Cloud Logging API directly.

E.

Monitoring metrics are only retained for 24 hours in Cloud Monitoring.

How to approach this question

Understand the default behavior of GKE integration with Cloud Logging/Monitoring.

Full Answer

Cloud Logging and Cloud Monitoring are enabled by default on new GKE clusters., GKE automatically captures standard output (stdout) and standard error (stderr) from containers.
Google Kubernetes Engine includes native integration with Cloud Logging and Cloud Monitoring. When you create a new cluster, this integration is enabled by default. The managed logging agent automatically reads container logs written to standard output (stdout) and standard error (stderr) and forwards them to Cloud Logging.

Common mistakes

Thinking you need to manually deploy Fluentd or modify app code to use GCP APIs.

Practice the full GCP Associate Cloud Engineer Practice Exam 4

50 questions · hints · full answers · grading

More questions from this exam