Google Professional Cloud DevOps Engineer Question 264
Select 3Google Cloud PlatformYour organization has recently seen a significant increase in observability costs due to the high volume of logs, metrics, and traces being collected in Google Cloud's Operations Suite (formerly Stackdriver). As a DevOps Engineer, you are tasked with optimizing these costs while ensuring critical monitoring and debugging information remains available. Which of the following actions should you take to achieve this goal?
- A
Implement log exclusions to filter out logs that are not critical for monitoring or troubleshooting.
- B
Reduce the retention period for metrics and logs to the minimum allowed by Google Cloud.
- C
Configure sampling for distributed traces to collect only a subset of the full trace data.
- D
Migrate all logging and monitoring data to a third-party observability platform to reduce costs.
- E
Use aggregated metrics instead of high-cardinality metrics when possible.
Show answer and explanation
Correct answers: A, C, E
Explanation
Optimizing observability costs in Google Cloud's Operations Suite involves identifying and reducing unnecessary data while maintaining essential monitoring and debugging capabilities. Log exclusions, trace sampling, and using aggregated metrics are effective strategies for cost optimization. Reducing retention periods should be approached with caution, and migrating to a third-party platform may not always be the most cost-effective or practical solution.
- A. Correct.
Implementing log exclusions is a cost-effective way to reduce the volume of logs ingested by Google Cloud's Operations Suite while ensuring critical logs are still available for monitoring and debugging.
- B. Incorrect.
Although reducing the retention period can lower costs, setting it to the minimum might result in losing critical historical data needed for debugging or compliance. A balanced approach is recommended.
- C. Correct.
Configuring sampling for distributed traces helps reduce the amount of trace data collected, which directly lowers costs while still allowing relevant traces to be captured for debugging.
- D. Incorrect.
Migrating all data to a third-party platform might reduce costs in some cases, but it introduces additional complexity and could lead to higher costs overall, depending on the pricing of the third-party platform.
- E. Correct.
Using aggregated metrics can reduce the volume of data stored and ingested, which lowers costs while still providing meaningful insights into system performance.