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

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.