ASSOCIATE-CLOUD-ENGINEER · Question #177
You have deployed an application on a single Compute Engine instance. The application writes logs to disk. Users start reporting errors with the application. You want to diagnose the problem. What sho
The correct answer is D. Install and configure the Cloud Logging Agent and view the logs from Cloud Logging.. In its default configuration, the Logging agent streams logs from common third-party applications and system software to Logging; review the list of default logs. You can configure the agent to stream additional logs; go to Configuring the Logging agent for details on agent confi
Question
Options
- ANavigate to Cloud Logging and view the application logs.
- BConnect to the instance's serial console and read the application logs.
- CConfigure a Health Check on the instance and set a Low Healthy Threshold value.
- DInstall and configure the Cloud Logging Agent and view the logs from Cloud Logging.
How the community answered
(45 responses)- A7% (3)
- B11% (5)
- C2% (1)
- D80% (36)
Explanation
In its default configuration, the Logging agent streams logs from common third-party applications and system software to Logging; review the list of default logs. You can configure the agent to stream additional logs; go to Configuring the Logging agent for details on agent configuration and It is a best practice to run the Logging agent on all your VM instances. The agent runs under both Linux and Windows. To install the Logging agent, go to Installing the agent. https://cloud.google.com/logging/docs/agent
Topics
Community Discussion
No community discussion yet for this question.