nerdexam
Google

PROFESSIONAL-CLOUD-ARCHITECT · Question #140

You are running a cluster on Kubernetes Engine to serve a web application. Users are reporting that a specific part of the application is not responding anymore. You notice that all pods of your deplo

The correct answer is B. Review the Stackdriver logs for the specific Kubernetes Engine container that is serving the. For container and system logs, GKE deploys a per-node logging agent that reads container logs, adds helpful metadata, and then stores them. The logging agent checks for container logs in the following sources:Standard output and standard error logs from containerized processes. h

Submitted by jordan8· Mar 30, 2026Ensuring solution and operations reliability

Question

You are running a cluster on Kubernetes Engine to serve a web application. Users are reporting that a specific part of the application is not responding anymore. You notice that all pods of your deployment keep restarting after 2 seconds. The application writes logs to standard output. You want to inspect the logs to find the cause of the issue. Which approach can you take?

Options

  • AReview the Stackdriver logs for each Compute Engine instance that is serving as a node in the
  • BReview the Stackdriver logs for the specific Kubernetes Engine container that is serving the
  • CConnect to the cluster using gcloud credentials and connect to a container in one of the pods to
  • DReview the Serial Port logs for each Compute Engine instance that is serving as a node in the

How the community answered

(27 responses)
  • B
    93% (25)
  • C
    4% (1)
  • D
    4% (1)

Explanation

For container and system logs, GKE deploys a per-node logging agent that reads container logs, adds helpful metadata, and then stores them. The logging agent checks for container logs in the following sources:Standard output and standard error logs from containerized processes. https://cloud.google.com/monitoring/kubernetes-engine/legacy-stackdriver/logging

Topics

#GKE pod logs#Stackdriver Logging#container debugging#pod crash loop

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-ARCHITECT Practice