Professional Cloud Developer Exam QuestionsBrowse all questions from this exam

Professional Cloud Developer Exam - Question 64


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?

Show Answer
Correct Answer: CD

To limit the application to 5 instances with basic scaling, you should configure the App Engine with 'basic_scaling: max_instances: 5 idle_timeout: 10m'. The 'basic_scaling' setting allows you to specify the maximum number of instances that can be created to handle request load using the 'max_instances' parameter. The 'idle_timeout' parameter determines how long an idle instance remains active before being shut down, which helps manage instance costs. Therefore, option D is the correct choice.

Discussion

14 comments
Sign in to comment
saurabh1805Option: D
Nov 11, 2020

D is correct answer here.

tomato123Option: D
Aug 20, 2022

D is correct

syu31svcOption: D
Jul 10, 2021

https://cloud.google.com/appengine/docs/standard/python/how-instances-are-managed: "A service with basic scaling is configured by setting the maximum number of instances in the max_instances parameter of the basic_scaling setting. The number of live instances scales with the processing volume." Answer is D

StelSenOption: D
Feb 20, 2021

Option: D is correct. Link: https://cloud.google.com/appengine/docs/standard/python/how-instances-are-managed

[Removed]Option: D
May 25, 2022

Option D - Max of 5

nehaxlpbOption: D
Jul 29, 2022

https://cloud.google.com/appengine/docs/legacy/standard/python/how-instances-are-managed#scaling_types

DinitOption: D
Feb 19, 2021

Ya Answer is D https://cloud.google.com/appengine/docs/standard/python/config/appref#scaling_elements

ParagSanyashivOption: D
Jan 8, 2022

D is the correct answer

maxdannyOption: C
Jul 25, 2022

C because the question says limit to 5 instances, not at max 5 instance

kchp
Nov 15, 2023

but seems no min_latency_instance for basic scaling https://cloud.google.com/appengine/docs/standard/reference/app-yaml?tab=python#basic_scaling

kchp
Nov 15, 2023

sorry, no option min_pending_latency for basic scaling i mean

omermahgoubOption: D
Jan 8, 2023

The correct answer is D, which specifies the max_instances parameter of the basic_scaling configuration to limit the application to a maximum of 5 instances. The basic_scaling configuration is used for applications that are driven by user activity, and it allows you to specify the maximum number of instances that you want to run using the max_instances parameter.

omermahgoub
Jan 8, 2023

C is not a good solution because the min_pending_latency parameter is used to specify a minimum amount of time that a request should take before an instance is started, but it has no effect on the maximum number of instances.

omermahgoub
Jan 8, 2023

B is not a good solution because the manual_scaling configuration is not being used, and the idle_timeout parameter has no effect on the maximum number of instances.

omermahgoub
Jan 8, 2023

A is not a good solution because the manual_scaling configuration is not being used, and the min_pending_latency parameter has no effect on the maximum number of instances.

maxdannyOption: D
Aug 25, 2023

The correct answer is D, only configuration permitted and lawful according to documentation: https://cloud.google.com/appengine/docs/standard/reference/app-yaml?tab=python#manual_scaling

RajanOption: D
Sep 20, 2023

D is correct.

santoshchauhanOption: D
Mar 8, 2024

Basic Scaling with max_instances (Option D): Basic scaling is suitable for applications that do not need to keep instances running all the time but may require instances to handle requests and then shut down when idle. The max_instances parameter sets the maximum number of instances, and idle_timeout specifies the amount of time that an instance can stay idle before it is shut down.

thewalkerOption: B
Jul 17, 2024

The correct answer is B. manual_scaling: max_instances: 5 idle_timeout: 10m . Here's why: manual_scaling : You're using App Engine Standard, which requires you to explicitly define the scaling method. manual_scaling is the correct choice for limiting the number of instances. max_instances: 5 : This setting directly limits the maximum number of instances to 5, fulfilling your requirement. idle_timeout: 10m : This setting defines how long an idle instance will remain active before being shut down. It's optional but helps manage costs by automatically shutting down unused instances.

thewalker
Jul 17, 2024

Let's break down why the other options are incorrect: A. manual_scaling: instances: 5 min_pending_latency: 30ms : While instances: 5 sets the number of instances, min_pending_latency is used for automatic scaling, which is not applicable in this case. C. basic_scaling: instances: 5 min_pending_latency: 30ms : basic_scaling is for automatic scaling based on request rate. You want manual scaling, so this is incorrect. D. basic_scaling: max_instances: 5 idle_timeout: 10m : Similar to option C, basic_scaling is not the correct scaling method for this scenario. In summary: Option B provides the correct configuration for limiting your App Engine Standard application to 5 instances using manual scaling.