Google Professional Cloud DevOps Engineer Question 238
Select 3Google Cloud PlatformYour organization uses Google Cloud Logging to monitor and troubleshoot production systems. Recently, some teams have complained about difficulty in finding relevant log entries for debugging and analysis. As a DevOps engineer, what steps should you take to improve the manageability and usability of logs in this scenario?
- A
Create log-based metrics to track important operational data automatically.
- B
Implement logs exclusion filters to reduce noise by removing irrelevant logs.
- C
Set up sinks to export all logs to Cloud Storage for long-term storage.
- D
Use log labels and resource-based organization to structure logs based on services or environments.
- E
Enable debug-level logging across all services to capture more detailed information.
Show answer and explanation
Correct answers: A, B, D
Explanation
Improving log manageability and usability involves reducing noise, organizing logs effectively, and leveraging tools like log-based metrics to track critical data automatically. Creating log-based metrics, using log labels, and implementing exclusion filters directly address these goals. Exporting logs to Cloud Storage and enabling excessive logging are not ideal solutions for improving the immediate usability of logs in this scenario.
- A. Correct.
Creating log-based metrics helps in monitoring critical aspects of the system without manually searching the logs. This directly improves usability.
- B. Correct.
Logs exclusion filters are effective for removing unnecessary logs, reducing noise, and making relevant logs easier to find.
- C. Incorrect.
While exporting logs to Cloud Storage is useful for long-term storage, it does not directly improve the usability or manageability of logs for debugging purposes.
- D. Correct.
Using log labels and resource-based organization helps structure logs logically, making it easier for teams to locate relevant entries.
- E. Incorrect.
Enabling debug-level logging everywhere may unnecessarily increase the volume of logs and make it harder to find relevant information, especially in production systems.