
Answer-first summary for fast verification
Answer: Confirm that the Stackdriver agent has been installed in the hosting virtual machine.
The issue involves missing logs for a newly deployed application on GCP using Stackdriver. Option A is correct because the Stackdriver agent (or the newer Cloud Logging agent) must be installed on the hosting VM to collect and forward logs. Without it, logs from the VM won't reach Stackdriver. Option B (user permissions) might affect dashboard access but doesn't prevent log collection. Option C is incorrect; Stackdriver uses HTTP/HTTPS (ports 80/443) for logs, not port 25 (SMTP). Option D is partially relevant for applications using client libraries, but the agent handles log collection for standard outputs (e.g., stdout/stderr), making it the primary troubleshooting step for VM-hosted applications. Thus, A is the most direct solution.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
You are monitoring applications on Google Cloud Platform (GCP) using Stackdriver. After deploying a new application, its logs are not visible in the Stackdriver dashboard. How would you troubleshoot this issue?
A
Confirm that the Stackdriver agent has been installed in the hosting virtual machine.
B
Confirm that your account has the proper permissions to use the Stackdriver dashboard.
C
Confirm that port 25 has been opened in the firewall to allow messages through to Stackdriver.
D
Confirm that the application is using the required client library and the service account key has proper permissions.