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 should you do?
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.
I would go with D.
By default there is no logs agent installed on a compute instance.
So first you will have to install the Ops Agent and after a few minutes the logs will be visible in Cloud logging
Telemetry is not application logs. Even if you install ops agent, you will not be able to consult the logs that the application writes to the instance disk. You have to enter the instance to inspect those logs, because those logs are not saved by the ops agent in gcp
The question is tricky, since the application starts to work poorly, that does not mean that we find the reason in the application logs, we have to look at the logs (telemetry) of the instance to determine if it is a problem of the GCP infrastructure, so first have the operations agent installed and sending metrics
The Ops Agent is the primary agent for collecting telemetry from your Compute Engine instances.
Answer is D
https://cloud.google.com/logging/docs/agent/ops-agent
https://cloud.google.com/logging/docs/agent/ops-agent/configuration
after 5 months, Chat GPT chooses D. it evolves. lol.
upvoted 8 times
...
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
joao_01
Highly Voted 1 year, 2 months agoqannik
Highly Voted 1 year, 4 months agoccpmad
Most Recent 6 months, 2 weeks agoccpmad
6 months, 2 weeks agoscanner2
1 year, 3 months ago3arle
1 year, 3 months agohappydays
1 year, 4 months agoVijKall
1 year, 1 month agoVovtchick
1 year agoCynthia2023
11 months, 1 week ago