Google Cloud Professional Cloud Developer — Question 28
Your company has deployed a new API to App Engine Standard environment. During testing, the API is not behaving as expected. You want to monitor the application over time to diagnose the problem within the application code without redeploying the application.
Which tool should you use?
Answer options
- A. Stackdriver Trace
- B. Stackdriver Monitoring
- C. Stackdriver Debug Snapshots
- D. Stackdriver Debug Logpoints
Correct answer: D
Explanation
The correct answer is D, Stackdriver Debug Logpoints, as it allows you to insert log statements into your application without needing to redeploy, enabling real-time monitoring of specific code paths. Options A and B provide monitoring and tracing capabilities but do not allow for interactive code debugging. Option C, Stackdriver Debug Snapshots, is useful for capturing the state of an application but also requires a redeployment to add new snapshots.