PROFESSIONAL-CLOUD-DEVOPS-ENGINEER · Question #16
PROFESSIONAL-CLOUD-DEVOPS-ENGINEER Question #16: Real Exam Question with Answer & Explanation
The correct answer is A: Confirm that the Stackdriver agent has been installed in the hosting virtual machine.. If logs from an application on a Compute Engine VM are not appearing in Cloud Logging, the first troubleshooting step is to confirm that the Cloud Logging agent is installed and configured.
Question
You are using Stackdriver to monitor applications hosted on Google Cloud Platform (GCP). You recently deployed a new application, but its logs are not appearing on the Stackdriver dashboard. You need to troubleshoot the issue. What should you do?
Options
- AConfirm that the Stackdriver agent has been installed in the hosting virtual machine.
- BConfirm that your account has the proper permissions to use the Stackdriver dashboard.
- CConfirm that port 25 has been opened in the firewall to allow messages through to Stackdriver.
- DConfirm that the application is using the required client library and the service account key has
Explanation
If logs from an application on a Compute Engine VM are not appearing in Cloud Logging, the first troubleshooting step is to confirm that the Cloud Logging agent is installed and configured.
Common mistakes.
- B. If your account lacked permissions, you likely wouldn't be able to access the Cloud Logging dashboard at all, not just see specific missing logs. The symptom is missing logs, not general dashboard access failure.
- C. Port 25 is typically used for SMTP traffic. Cloud Logging agents communicate over standard HTTPS (port 443), so checking port 25 is irrelevant.
- D. While using client libraries with service account keys is relevant for direct API calls to Cloud Logging, for many applications and system logs on VMs, the Cloud Logging agent is the primary and often required mechanism to collect logs.
Concept tested. Cloud Logging agent, VM monitoring, troubleshooting logging
Reference. https://cloud.google.com/logging/docs/agent/installation
Topics
Community Discussion
No community discussion yet for this question.