Your Cloud Spanner-backed application has predictable traffic and must automatically scale nodes up or down with demand. What should you do?
Choose an answer
Tap an option to check your answer.
Correct answer: Create a Cloud Monitoring alerting policy that sends webhook notifications when Spanner CPU crosses thresholds, and implement a Cloud Function that receives the webhook and resizes the Spanner instance..
Why this is the answer
The correct option leverages Cloud Monitoring to detect when Spanner CPU usage crosses predefined thresholds. This triggers a webhook notification to a Cloud Function. The Cloud Function then executes code to programmatically adjust the number of Spanner nodes, providing automated scaling. The other options are less efficient or suitable for automatic scaling. A cron job is a reactive, scheduled approach that might miss sudden spikes or dips in traffic. Emailing SREs or Google Cloud Support for manual intervention introduces human latency and is not an automated solution.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed