Google Cloud Associate Cloud Engineer — Question 149

You have an application that uses Cloud Spanner as a backend database. The application has a very predictable traffic pattern. You want to automatically scale up or down the number of Spanner nodes depending on traffic. What should you do?

Answer options

Correct answer: D

Explanation

The correct answer is D because it utilizes a webhook and a Cloud Function to automatically adjust the number of Spanner nodes based on real-time CPU usage, allowing for seamless scaling. Option A requires manual intervention, while options B and C depend on SRE or Google Support to make adjustments, which is not automated.