PROFESSIONAL-CLOUD-DATABASE-ENGINEER · Question #13
You support a consumer inventory application that runs on a multi-region instance of Cloud Spanner. A customer opened a support ticket to complain about slow response times. You notice a Cloud…
The correct answer is A. Increase the number of processing units. The first and most direct Google-recommended action for high CPU utilization in Cloud Spanner is to increase the number of processing units (or nodes). Cloud Spanner is designed to scale linearly by adding compute capacity, which immediately distributes the query load and…
Question
You support a consumer inventory application that runs on a multi-region instance of Cloud Spanner. A customer opened a support ticket to complain about slow response times. You notice a Cloud Monitoring alert about high CPU utilization. You want to follow Google-recommended practices to address the CPU performance issue. What should you do first?
Options
- AIncrease the number of processing units.
- BModify the database schema, and add additional indexes.
- CShard data required by the application into multiple instances.
- DDecrease the number of processing units.
How the community answered
(37 responses)- A76% (28)
- B8% (3)
- C14% (5)
- D3% (1)
Explanation
The first and most direct Google-recommended action for high CPU utilization in Cloud Spanner is to increase the number of processing units (or nodes). Cloud Spanner is designed to scale linearly by adding compute capacity, which immediately distributes the query load and reduces CPU pressure. This is the simplest and least disruptive first step. Modifying the schema and adding indexes (B) may help specific queries but requires analysis and testing - it is not the right first response to a general CPU saturation alert. Sharding data into multiple instances (C) is a complex architectural change, not a first step. Decreasing processing units (D) would worsen performance and is the opposite of what is needed.
Topics
Community Discussion
No community discussion yet for this question.