0
0
GCPcloud~20 mins

Cloud Functions generations (1st vs 2nd) in GCP - Practice Questions

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Cloud Functions Generation Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Differences in scaling behavior between 1st and 2nd generation Cloud Functions
Which statement correctly describes the scaling behavior difference between 1st and 2nd generation Google Cloud Functions?
A1st gen functions scale automatically but only up to 1000 instances; 2nd gen functions can scale beyond this limit with concurrency support.
B1st gen functions support concurrency per instance; 2nd gen functions only allow one request per instance at a time.
CBoth 1st and 2nd gen functions have the same scaling limits and concurrency behavior.
D2nd gen functions do not scale automatically and require manual instance management.
Attempts:
2 left
💡 Hint
Think about how concurrency and instance limits differ between generations.
Architecture
intermediate
2:00remaining
Choosing Cloud Functions generation for event-driven architecture
You want to build an event-driven system that processes high volumes of messages with low latency and cost efficiency. Which generation of Cloud Functions is best suited and why?
AUse 2nd gen functions because they support concurrency, reducing cold starts and cost per request.
BUse 1st gen functions because they have faster cold starts and simpler billing.
CUse 1st gen functions because they support more runtime languages than 2nd gen.
DUse 2nd gen functions because they do not support event triggers, making them more flexible.
Attempts:
2 left
💡 Hint
Consider concurrency and cost efficiency in high volume scenarios.
Configuration
advanced
2:00remaining
Configuring concurrency in 2nd generation Cloud Functions
Given this 2nd generation Cloud Function deployment command, what is the effect of the concurrency setting? gcloud functions deploy my-function --gen=2 --runtime python39 --trigger-http --concurrency=10
GCP
gcloud functions deploy my-function --gen=2 --runtime python39 --trigger-http --concurrency=10
AConcurrency setting is ignored in 2nd gen functions and defaults to 1.
BEach instance of the function can handle up to 10 requests simultaneously, improving resource utilization.
CThe function will create 10 instances to handle requests in parallel, each handling one request at a time.
DThe function limits total concurrent requests across all instances to 10.
Attempts:
2 left
💡 Hint
Think about what concurrency means per instance.
security
advanced
2:00remaining
Security differences between 1st and 2nd generation Cloud Functions
Which security feature is available only in 2nd generation Cloud Functions but not in 1st generation?
AAutomatic HTTPS endpoint with TLS encryption.
BSupport for IAM-based invoker permissions controlling who can call the function.
CAbility to run functions inside a VPC connector with private IP access.
DIntegration with Cloud Audit Logs for function invocation tracking.
Attempts:
2 left
💡 Hint
Consider network security and private access.
service_behavior
expert
2:00remaining
Behavior of environment variables in 1st vs 2nd generation Cloud Functions
You deploy a Cloud Function with environment variables set. After deployment, you update an environment variable value and redeploy. What is the difference in environment variable update behavior between 1st and 2nd generation Cloud Functions?
AIn 1st gen, environment variable updates require redeploy and cause cold starts; in 2nd gen, updates can be applied without redeploy.
B1st gen environment variables are encrypted at rest; 2nd gen environment variables are stored in plaintext.
CIn 2nd gen, environment variables are immutable after deployment; in 1st gen, they can be updated live without redeploy.
DBoth generations require redeploy to update environment variables, but 2nd gen supports gradual rollout to reduce downtime.
Attempts:
2 left
💡 Hint
Think about deployment and update processes.