Google Cloud Professional Cloud DevOps Engineer — Question 5

You are running an application in a virtual machine (VM) using a custom Debian image. The image has the Stackdriver Logging agent installed. The VM has the cloud-platform scope. The application is logging information via syslog. You want to use Stackdriver Logging in the Google Cloud Platform Console to visualize the logs. You notice that syslog is not showing up in the "All logs" dropdown list of the Logs Viewer. What is the first thing you should do?

Answer options

Correct answer: D

Explanation

The correct answer is D because executing the command checks if the Stackdriver Logging agent is running and capturing logs properly. If the agent isn't running, logs won't appear in the Logs Viewer. Options A, B, and C do not directly address the immediate issue of verifying the operational status of the logging agent.