
Answer-first summary for fast verification
Answer: Install and configure the Cloud Logging Agent and view the logs from Cloud Logging.
The correct answer is D: Install and configure the Cloud Logging Agent and view the logs from Cloud Logging. The application writes logs to disk, but these logs are not automatically visible in Cloud Logging for Compute Engine instances. You need to install the Cloud Logging Agent to collect these logs and send them to Cloud Logging for further analysis. This is confirmed by the referenced documentation and community consensus.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
You have deployed an application on a single Google Compute Engine instance that writes its logs directly to the local disk. Recently, users have started reporting errors with the application's performance. Your goal is to diagnose and identify the cause of these issues. What steps should you take to effectively troubleshoot and resolve the problem?
A
Navigate to Cloud Logging and view the application logs.
B
Connect to the instance's serial console and read the application logs.
C
Configure a Health Check on the instance and set a Low Healthy Threshold value.
D
Install and configure the Cloud Logging Agent and view the logs from Cloud Logging.