
Answer-first summary for fast verification
Answer: Install Stackdriver Logging Agent. Review the application logs from the Compute Engine VM Instance syslog logs in Stackdriver
To monitor application logs on GKE nodes without changing the application, you must first install the Stackdriver (Cloud Operations) Logging Agent. After installation, you can review the logs from the Compute Engine VM Instance syslog logs in Stackdriver. It's important to note that Stackdriver has been rebranded to Cloud Operations, which may not yet be reflected in the exam. The question implies Stackdriver isn't pre-installed, as logs would automatically flow otherwise. Installing the agent during compute service creation is the simplest approach. For more details, refer to [Google Cloud's documentation on activity logs](https://cloud.google.com/compute/docs/activity-logs).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
You are running your containers on Google Kubernetes Engine (GKE) and wish to monitor the nodes deployed by GKE for your containers. Your application logs are set to stdout as it starts as a system service on GKE. Without altering the application, how can you ensure these logs are sent to Stackdriver (Cloud Operations)? (Select One)
A
Delete the application logs from the Compute Engine VM Instance activity logs in Stackdriver
B
Review the application logs from the Compute Engine VM Instance activity logs in Stackdriver
C
Install Stackdriver Logging Agent. Review the application logs from the Compute Engine VM Instance syslog logs in Stackdriver
D
Install Stackdriver Logging Agent. Review the application logs from the Compute Engine VM Instance system event logs in Stackdriver