
Answer-first summary for fast verification
Answer: Configure and install the Cloud Logging Agent on the VM to forward logs to Cloud Logging for analysis.
Option A is correct because installing the Cloud Logging Agent on the VM ensures that logs written to the disk are automatically collected and sent to Cloud Logging, facilitating real-time analysis and troubleshooting. Option B is less efficient as it requires manual access to the serial console, which isn't scalable. Option C is unrelated to logging, focusing instead on instance health monitoring. Option D is incorrect because, without the Cloud Logging Agent, logs written to the disk won't appear in Cloud Logging by default.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your website, hosted on a single Compute Engine instance, sells products from local artisans. Users report errors during use, and the application logs these errors to the disk. What's the best method to diagnose these issues?
A
Configure and install the Cloud Logging Agent on the VM to forward logs to Cloud Logging for analysis.
B
Access the application logs directly through the instance’s serial console.
C
Implement a Health Check for the instance with a Low Healthy Threshold to monitor its health.
D
Check the application logs in Cloud Logging without any additional setup.
No comments yet.