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?
Explanation:
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.