Medium1 markMultiple Choice

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

You are deploying a new GKE Standard cluster and want to ensure that all container logs and cluster metrics are automatically sent to Google Cloud's operations suite (formerly Stackdriver) for monitoring and alerting.

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

Answer options:

A.

You must manually install the Cloud Logging agent on every node in the GKE cluster using a DaemonSet.

B.

Cloud Logging and Cloud Monitoring are enabled by default when you create a new GKE cluster.

C.

You can view the standard output (stdout) and standard error (stderr) logs of your containers directly in the Cloud Logging Logs Explorer.

D.

GKE only supports sending logs to third-party tools like Splunk or Datadog, not native GCP tools.

E.

You must write custom code in your application to send metrics to Cloud Monitoring via the API.

How to approach this question

Understand the native integration between GKE and Google Cloud's operations suite. It is built-in and enabled by default.

Full Answer

Cloud Logging and Cloud Monitoring are enabled by default on new GKE clusters, and you can view container logs in the Logs Explorer.
Google Kubernetes Engine (GKE) has deep, native integration with Google Cloud's operations suite (Cloud Logging and Cloud Monitoring). When you create a new GKE cluster, this integration is enabled by default. The system automatically deploys the necessary agents to collect system metrics, container metrics, and container logs (capturing stdout and stderr). You can then view and query these logs directly in the Logs Explorer without any manual agent installation.

Common mistakes

Thinking you have to manually install agents (like you would on a bare Compute Engine VM) or write custom code to get basic logs.

Practice the full GCP Associate Cloud Engineer Practice Exam 6

50 questions · hints · full answers · grading

More questions from this exam