Bird
0
0

You want to deploy a Cloud Function that requires up to 4 CPUs and 8 GB memory, and must scale automatically with high concurrency. Which generation should you choose and why?

hard📝 Application Q8 of 15
GCP - Cloud Functions
You want to deploy a Cloud Function that requires up to 4 CPUs and 8 GB memory, and must scale automatically with high concurrency. Which generation should you choose and why?
A2nd generation, because it supports custom CPU and memory and concurrency
B2nd generation, but it does not support CPU or memory customization
C1st generation, because it supports concurrency control
D1st generation, because it supports high CPU and memory scaling
Step-by-Step Solution
Solution:
  1. Step 1: Identify resource requirements

    Function needs up to 4 CPUs, 8 GB memory, and high concurrency scaling.
  2. Step 2: Match generation capabilities

    2nd generation supports custom CPU, memory, and concurrency settings; 1st gen does not.
  3. Final Answer:

    2nd generation supports custom CPU, memory, and concurrency -> Option A
  4. Quick Check:

    Custom resources and concurrency = 2nd gen [OK]
Quick Trick: Use 2nd gen for custom CPU, memory, and concurrency [OK]
Common Mistakes:
  • Assuming 1st gen supports custom CPU/memory
  • Confusing concurrency support

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes