Bird
0
0

Given this Cloud Run service configuration snippet, what happens when traffic increases?

medium📝 service behavior Q13 of 15
GCP - Cloud Run
Given this Cloud Run service configuration snippet, what happens when traffic increases?
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
  name: hello-service
spec:
  template:
    spec:
      containers:
      - image: gcr.io/my-project/hello-image
        resources:
          limits:
            cpu: 1
            memory: 512Mi
ACloud Run automatically creates more instances to handle the traffic.
BThe service crashes because CPU is limited to 1.
CYou must manually add more instances in the config.
DTraffic is rejected when CPU limit is reached.
Step-by-Step Solution
Solution:
  1. Step 1: Understand Cloud Run scaling behavior

    Cloud Run automatically scales container instances based on incoming traffic.
  2. Step 2: Analyze resource limits

    CPU and memory limits set max per instance but do not prevent scaling.
  3. Final Answer:

    Cloud Run automatically creates more instances to handle the traffic. -> Option A
  4. Quick Check:

    Auto scaling = more instances on traffic rise [OK]
Quick Trick: Cloud Run scales instances automatically with traffic [OK]
Common Mistakes:
  • Thinking CPU limit stops scaling
  • Believing manual scaling is required
  • Assuming traffic is rejected on resource limits

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes