nerdexam
Google

PROFESSIONAL-CLOUD-DEVELOPER · Question #12

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 configurati

The correct answer is D. basic_scaling:. In App Engine standard, B-class instances (like B1) are intended for background or worker services that are not tied to incoming web requests. For these instance classes, automatic_scaling is not available; only manual_scaling and basic_scaling are supported. basic_scaling spins

Deploying applications

Question

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?

Options

  • Amanual_scaling:
  • Bmanual_scaling:
  • Cbasic_scaling:
  • Dbasic_scaling:

How the community answered

(55 responses)
  • A
    9% (5)
  • B
    5% (3)
  • C
    4% (2)
  • D
    82% (45)

Explanation

In App Engine standard, B-class instances (like B1) are intended for background or worker services that are not tied to incoming web requests. For these instance classes, automatic_scaling is not available; only manual_scaling and basic_scaling are supported. basic_scaling spins up instances as requests arrive and shuts them down when idle, and it accepts a max_instances parameter that hard-caps how many instances can run-making it the correct choice to 'limit the application to 5 instances.' The correct snippet is: basic_scaling: / max_instances: 5. manual_scaling (options A and B) keeps a fixed number of instances running permanently regardless of load; it doesn't dynamically scale up and down and uses instances: N rather than max_instances: N. Using basic_scaling with max_instances: 5 (option D) enforces the ceiling while still allowing the runtime to scale down to zero when there is no traffic.

Topics

#App Engine#Scaling#Instance management#Configuration

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVELOPER Practice