A single Compute Engine VM runs an application that writes logs to disk. Users report errors and you must diagnose the issue. What should you do?
Choose an answer
Tap an option to check your answer.
Correct answer: Install and configure the Ops Agent and view the application logs in Cloud Logging..
Why this is the answer
The Ops Agent is the recommended way to collect logs and metrics from Compute Engine instances and send them to Cloud Logging. By installing and configuring it, you can centralize your application logs in Cloud Logging, making them easily searchable and viewable for diagnosis. Opening Cloud Logging directly would not show application logs unless the Ops Agent or a similar mechanism is already sending them there. Configuring an instance health check is for monitoring VM availability, not for collecting application-specific logs. Connecting to the VM serial console might show boot messages or early system logs, but it's not the primary method for accessing application logs written to disk, nor is it scalable or efficient for ongoing diagnosis.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed