
Answer-first summary for fast verification
Answer: Use Cloud Monitoring to monitor the CPU utilization, and reduce Spanner processing units by small increments until you find the minimum capacity required.
To optimize Cloud Spanner costs while maintaining reliability and availability, the best approach is to monitor resource utilization metrics. Cloud Monitoring provides CPU utilization metrics for Spanner, which directly indicate whether the current processing units (PUs) are over-provisioned. By gradually reducing PUs while ensuring CPU utilization stays within safe thresholds (avoiding sustained high usage), costs can be minimized without compromising performance. Cloud Logging (A) focuses on errors, which may not correlate with capacity needs. Cloud Trace (B) tracks request latency and traces, not resource usage. Snapshot Debugger (D) is for debugging application code, unrelated to Spanner capacity planning. Thus, option C is correct.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
How can you optimize a production Cloud Spanner database instance to reduce costs while ensuring high reliability and availability?
A
Use Cloud Logging to check for error logs, and reduce Spanner processing units by small increments until you find the minimum capacity required.
B
Use Cloud Trace to monitor the requests per sec of incoming requests to Spanner, and reduce Spanner processing units by small increments until you find the minimum capacity required.
C
Use Cloud Monitoring to monitor the CPU utilization, and reduce Spanner processing units by small increments until you find the minimum capacity required.
D
Use Snapshot Debugger to check for application errors, and reduce Spanner processing units by small increments until you find the minimum capacity required.
No comments yet.