You are deploying an application to App Engine. You want the number of instances to scale based on request rate. You need at least 3 unoccupied instances at all times. Which scaling type should you use?
A.
Manual Scaling with 3 instances.
B.
Basic Scaling with min_instances set to 3.
C.
Basic Scaling with max_instances set to 3.
D.
Automatic Scaling with min_idle_instances set to 3.
D is correct.
App Engine supports the following scaling types, which controls how and when instances are created:
Automatic
Basic
Manual
You specify the scaling type in your app's app.yaml.
Automatic scaling
Automatic scaling creates instances based on request rate, response latencies, and other application metrics. You can specify thresholds for each of these metrics, as well as a minimum number instances to keep running at all times.
D is correct : https://cloud.google.com/appengine/docs/standard/go/config/appref
"App Engine calculates the number of instances necessary to serve your current application traffic based on scaling settings such as target_cpu_utilization and target_throughput_utilization. Setting min_idle_instances specifies the number of instances to run in addition to this calculated number. For example, if App Engine calculates that 5 instances are necessary to serve traffic, and min_idle_instances is set to 2, App Engine will run 7 instances (5, calculated based on traffic, plus 2 additional per min_idle_instances)."
Answer D is correct
min_idle_instances set to 3: Setting the min_idle_instances to 3 ensures that there are always at least 3 instances ready and waiting to handle incoming requests. This setting helps in managing sudden spikes in traffic by reducing latency, as these instances do not require any spin-up time
The correct answer is Option D.
To scale the number of instances based on request rate and ensure that there are always at least 3 unoccupied instances, you should use Automatic Scaling with min_idle_instances set to 3.
Automatic Scaling automatically scales the number of instances based on request rate and other metrics, such as CPU and memory utilization. By setting min_idle_instances to 3, you can ensure that the instance group maintains at least 3 idle instances at all times, ready to handle incoming requests.
The correct answer is D. Automatic Scaling with min_idle_instances set to 3. By setting min_idle_instances to 3, you can ensure that there are always at least 3 instances available to handle new requests. The other options are not as good:
A. Manual Scaling requires you to manually adjust the number of instances running your application.
B. Basic Scaling is a simpler version of Automatic Scaling. It automatically scales the number of instances based on request rate, but it does not allow you to specify the minimum number of idle instances. This means that there is no guarantee that there will always be at least 3 instances available to handle new requests.
C. The max_instances setting specifies the maximum number of instances to keep running. By setting max_instances to 3, you are limiting the number of instances that your application can scale to. This is not ideal, especially if your application experiences sudden spikes in traffic.
D. Automatic Scaling with min_idle_instances set to 3.
Automatic scaling adjusts the number of instances based on the request rate, while maintaining a minimum number of instances available. By setting min_idle_instances to 3, you ensure that at least 3 instances are running and available to handle requests, even when the request rate is low.
Manual scaling allows you to set a fixed number of instances, but does not automatically adjust based on the request rate. Basic scaling adjusts the number of instances based on the request rate, but does not allow you to set a minimum number of idle instances.
In order to keep at least 3 instances running and ready to handle requests, Automatic scaling with min_idle_instances set to 3 is the correct option.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
zukko78
Highly Voted 4 years, 6 months agovincent2023
1 year, 2 months agoFinger41
Highly Voted 3 years, 6 months agoMakar
Most Recent 2 weeks, 4 days agoBuruguduystunstugudunstuy
2 months agoYourCloudGuru
2 months agoJoniMONI
2 months agosubha.elumalai
6 months, 1 week agothewalker
1 year agoBAofBK
1 year agoEvan7557
1 year, 1 month agoCaptain1212
1 year, 2 months agoglanshima
1 year, 11 months agocslince
1 year, 11 months agojrisl1991
1 year, 10 months agoSammydp202020
1 year, 10 months agoleogor
2 years, 1 month agoAzureDP900
2 years, 5 months agoharoldbenites
2 years, 6 months agoshawnkkk
3 years ago