
Answer-first summary for fast verification
Answer: Use Automatic Scaling and set `min_idle_instances` to 4.
**Correct Answer: B** - **A** is incorrect because setting `max_instances` to 4 with Basic Scaling limits the application to only 4 instances, regardless of the request rate, potentially leading to performance issues during high traffic. - **B** is correct because Automatic Scaling adjusts the number of instances based on the request rate and other metrics, ensuring at least 4 instances are always running (`min_idle_instances`), thus providing scalability and reliability. - **C** is incorrect because Manual Scaling does not automatically adjust the number of instances based on the request rate, making it unsuitable for applications with variable traffic. - **D** is incorrect because Basic Scaling with `min_instances` set to 4 does not provide automatic scaling based on the request rate, only ensuring a minimum number of instances without adjusting for increased load. For more details, refer to [Google Cloud's documentation on App Engine scaling](https://cloud.google.com/appengine/docs/standard/python/how-instances-are-managed).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
As an engineering manager at a company that sells educational courses online, your tech team is developing an application to be deployed on App Engine. The application must handle thousands of daily users, scaling instances based on the request rate, with a minimum of 4 instances always available. Which scaling configuration would you recommend?
A
Use Basic Scaling and set max_instances to 4.
B
Use Automatic Scaling and set min_idle_instances to 4.
C
Use Manual Scaling with 4 instances.
D
Use Basic Scaling and set min_instances to 4.
No comments yet.