Google Cloud Professional Cloud DevOps Engineer — Question 58
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?
Answer options
- 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.
Correct answer: A
Explanation
The correct answer is A because the Stackdriver agent must be installed on the virtual machine for it to collect and send logs to Stackdriver. Option B, while important, does not directly address the issue of missing logs. Option C is irrelevant since port 25 is typically used for SMTP and not for Stackdriver logging. Option D is also not the primary cause of the logs not appearing, as the presence of the Stackdriver agent is the first step in log collection.