Google Cloud Professional Cloud Developer — Question 51

Your App Engine standard configuration is as follows:
service: production
instance_class: B1
You want to limit the application to 5 instances.
Which code snippet should you include in your configuration?

Answer options

Correct answer: D

Explanation

The correct answer is D because 'basic_scaling' with 'max_instances' allows you to set a maximum limit on the number of instances, which is what you need. Options A and B incorrectly use 'manual_scaling', which does not apply to your requirement of limiting instances effectively. Option C does not specify 'max_instances', which is essential for setting a cap on the number of instances.