
Answer-first summary for fast verification
Answer: Install and configure the Ops agent and view the logs from Cloud Logging.
The correct answer is D. By default, there is no logs agent installed on a Compute Engine instance. To diagnose the problem and view the logs from Cloud Logging, you need to install and configure the Ops agent. The Ops Agent is the primary agent for collecting telemetry from your Compute Engine instances. After installation, the logs will be visible in Cloud Logging, allowing you to troubleshoot the application errors effectively.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
To help you diagnose the errors reported by users in your application, consider the following scenario: You have recently deployed an application on a single Google Compute Engine instance. This application has a logging mechanism that writes logs directly to the instance's local disk. As users are experiencing issues with the application, you need to identify the root cause of these errors efficiently. What steps should you take to diagnose and resolve the problem?
A
Navigate to Cloud Logging and view the application logs.
B
Configure a health check on the instance and set a “consecutive successes” Healthy threshold value of 1.
C
Connect to the instance’s serial console and read the application logs.
D
Install and configure the Ops agent and view the logs from Cloud Logging.
No comments yet.