Google Professional Cloud DevOps Engineer Question 162
Select 3Google Cloud PlatformYou are a DevOps Engineer responsible for maintaining a distributed application hosted on Google Kubernetes Engine (GKE). A critical bug has been reported in production, and users are experiencing intermittent failures. You need to identify the root cause without significantly impacting the live environment. Which steps should you take to implement effective debugging tools in Google Cloud for this scenario?
- A
Enable Cloud Debugger on the application to inspect the code behavior in real-time.
- B
Use Cloud Logging to review detailed logs and filter entries related to the affected services.
- C
Deploy a new version of the application with verbose logging enabled in production.
- D
Set up Cloud Trace to analyze latency issues and identify problematic requests.
- E
Use Cloud Profiler to monitor resource usage and identify performance bottlenecks.
Show answer and explanation
Correct answers: A, B, D
Explanation
Debugging tools in Google Cloud should be used carefully to minimize impact on production. Cloud Debugger, Cloud Logging, and Cloud Trace provide powerful ways to identify and analyze issues in real-time. Cloud Debugger allows you to inspect live application behavior, Cloud Logging provides detailed log analysis, and Cloud Trace helps pinpoint latency-related problems. Deploying verbose logging or relying on profiling tools can introduce additional complexities and are not ideal for resolving intermittent failures.
- A. Correct.
Enabling Cloud Debugger is a valid approach to inspect application behavior in real-time without modifying the running code. This tool is useful for debugging in production environments with minimal impact.
- B. Correct.
Cloud Logging allows you to review detailed logs and filter them, making it easier to identify error messages or unexpected behavior related to the impacted services.
- C. Incorrect.
Deploying a new version of the application with verbose logging enabled in production introduces unnecessary risk and may complicate the situation further. Debugging should avoid unnecessary changes to the environment.
- D. Correct.
Cloud Trace is designed to help analyze latency issues and identify problematic requests, which is critical in understanding intermittent failures in a distributed system.
- E. Incorrect.
While Cloud Profiler is useful for monitoring resource usage and identifying performance bottlenecks, it does not directly address the need to debug the application for intermittent failures.