
Answer-first summary for fast verification
Answer: Use direct scaling to implement the Autoscaler-based architecture.
Cloud Spanner is a fully managed, horizontally scalable relational database service. Given the scenario of increasing traffic with occasional spikes, the best approach is to use an automated method to scale the hardware capacity. Option B, 'Use direct scaling to implement the Autoscaler-based architecture,' is correct because direct scaling allows for immediate adjustments to the instance's node count, which is ideal for handling traffic spikes efficiently. Option A, 'Use linear scaling to implement the Autoscaler-based architecture,' is not as effective for occasional spikes since linear scaling adjusts capacity gradually over time. Option C, 'Upgrade the Cloud Spanner instance on a periodic basis during the scheduled maintenance window,' is not automated and may not respond quickly enough to unexpected spikes. Option D, 'Set up alerts that are triggered when Cloud Spanner utilization metrics breach the threshold, and then schedule an upgrade during the scheduled maintenance window,' involves manual intervention and delays, which are not ideal for handling immediate spikes in traffic. Therefore, the correct answer is B.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
How can you implement an automated solution to scale up hardware capacity in Cloud Spanner to handle increased concurrency for a financial services company with growing and occasionally spiking traffic?
A
Use linear scaling to implement the Autoscaler-based architecture
B
Use direct scaling to implement the Autoscaler-based architecture.
C
Upgrade the Cloud Spanner instance on a periodic basis during the scheduled maintenance window.
D
Set up alerts that are triggered when Cloud Spanner utilization metrics breach the threshold, and then schedule an upgrade during the scheduled maintenance window.