Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Professional Cloud Developer All Questions

View all questions & answers for the Professional Cloud Developer exam

Exam Professional Cloud Developer topic 1 question 64 discussion

Actual exam question from Google's Professional Cloud Developer
Question #: 64
Topic #: 1
[All Professional Cloud Developer Questions]

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?

  • A. manual_scaling: instances: 5 min_pending_latency: 30ms
  • B. manual_scaling: max_instances: 5 idle_timeout: 10m
  • C. basic_scaling: instances: 5 min_pending_latency: 30ms
  • D. basic_scaling: max_instances: 5 idle_timeout: 10m
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
thewalker
4 months, 1 week ago
Selected Answer: B
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.
upvoted 2 times
thewalker
4 months, 1 week ago
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.
upvoted 1 times
...
...
santoshchauhan
8 months, 3 weeks ago
Selected Answer: D
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.
upvoted 1 times
...
__rajan__
1 year, 2 months ago
D is correct.
upvoted 1 times
...
maxdanny
1 year, 3 months ago
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
upvoted 1 times
...
omermahgoub
1 year, 10 months ago
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.
upvoted 1 times
omermahgoub
1 year, 10 months ago
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.
upvoted 1 times
...
omermahgoub
1 year, 10 months ago
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.
upvoted 1 times
...
omermahgoub
1 year, 10 months ago
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.
upvoted 1 times
...
...
tomato123
2 years, 3 months ago
Selected Answer: D
D is correct
upvoted 4 times
...
nehaxlpb
2 years, 4 months ago
Selected Answer: D
https://cloud.google.com/appengine/docs/legacy/standard/python/how-instances-are-managed#scaling_types
upvoted 2 times
...
maxdanny
2 years, 4 months ago
Selected Answer: C
C because the question says limit to 5 instances, not at max 5 instance
upvoted 1 times
kchp
1 year ago
but seems no min_latency_instance for basic scaling https://cloud.google.com/appengine/docs/standard/reference/app-yaml?tab=python#basic_scaling
upvoted 1 times
kchp
1 year ago
sorry, no option min_pending_latency for basic scaling i mean
upvoted 1 times
...
...
...
[Removed]
2 years, 6 months ago
Selected Answer: D
Option D - Max of 5
upvoted 2 times
...
ParagSanyashiv
2 years, 10 months ago
Selected Answer: D
D is the correct answer
upvoted 1 times
...
syu31svc
3 years, 4 months ago
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
upvoted 3 times
...
StelSen
3 years, 9 months ago
Option: D is correct. Link: https://cloud.google.com/appengine/docs/standard/python/how-instances-are-managed
upvoted 2 times
...
Dinit
3 years, 9 months ago
Ya Answer is D https://cloud.google.com/appengine/docs/standard/python/config/appref#scaling_elements
upvoted 1 times
...
saurabh1805
4 years ago
D is correct answer here.
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.

SaveCancel
Loading ...