Google Cloud Professional Cloud Developer — Question 179
You recently joined a new team that has a Cloud Spanner database instance running in production. Your manager has asked you to optimize the Spanner instance to reduce cost while maintaining high reliability and availability of the database. What should you do?
Answer options
- 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.
Correct answer: C
Explanation
The correct answer is C because monitoring CPU utilization provides a direct measure of the database's performance and resource needs, allowing for informed adjustments to processing units. Options A, B, and D focus on error logs, request monitoring, and application errors, which do not directly correlate with capacity management in relation to cost efficiency and reliability for the Spanner instance.