Bird
0
0

If a Cloud Run service has max concurrency set to 1 and max instances set to 5, what happens when 10 requests arrive simultaneously?

medium📝 Predict Output Q5 of 15
GCP - Cloud Functions
If a Cloud Run service has max concurrency set to 1 and max instances set to 5, what happens when 10 requests arrive simultaneously?
AAll 10 requests are handled simultaneously
BRequests are dropped after 5
COnly 1 request is handled, others fail
D5 requests are handled immediately, 5 wait in queue
Step-by-Step Solution
Solution:
  1. Step 1: Understand concurrency and instances

    Max concurrency 1 means each instance handles 1 request at a time; max instances 5 means 5 instances available.
  2. Step 2: Calculate handling capacity and queuing

    5 instances x 1 request = 5 requests handled immediately; remaining 5 requests wait in queue.
  3. Final Answer:

    5 requests are handled immediately, 5 wait in queue -> Option D
  4. Quick Check:

    Requests handled = concurrency x instances; excess queue [OK]
Quick Trick: Requests beyond capacity wait, not all handled at once [OK]
Common Mistakes:
  • Assuming all requests handled simultaneously
  • Thinking requests fail or drop immediately
  • Confusing concurrency with total requests

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes