Recall & Review
beginner
What is a key difference between 1st and 2nd generation Cloud Functions in GCP?
1st generation Cloud Functions run in a sandboxed environment with limited control, while 2nd generation functions run on Cloud Run, offering more control, scalability, and support for more languages.
Click to reveal answer
beginner
Which generation of Cloud Functions supports longer execution times?
2nd generation Cloud Functions support longer execution times (up to 60 minutes), compared to 1st generation which has shorter limits (typically 9 minutes).
Click to reveal answer
intermediate
How does scaling differ between 1st and 2nd generation Cloud Functions?
1st generation scales automatically but with some cold start delays; 2nd generation uses Cloud Run's advanced scaling, including concurrency and faster cold starts.
Click to reveal answer
intermediate
Which generation allows you to use custom runtimes or bring your own runtime?
2nd generation Cloud Functions allow custom runtimes because they run on Cloud Run, while 1st generation only supports predefined runtimes.
Click to reveal answer
advanced
What networking features are improved in 2nd generation Cloud Functions compared to 1st?
2nd generation supports VPC connectors with egress control, allowing better network security and private resource access, unlike 1st generation which has limited networking options.
Click to reveal answer
Which Cloud Functions generation runs on Cloud Run?
✗ Incorrect
2nd generation Cloud Functions run on Cloud Run, providing more features and flexibility.
What is the maximum execution time for 1st generation Cloud Functions?
✗ Incorrect
1st generation Cloud Functions have a maximum execution time of about 9 minutes.
Which generation supports custom runtimes?
✗ Incorrect
2nd generation Cloud Functions support custom runtimes because they run on Cloud Run.
Which generation offers better cold start performance?
✗ Incorrect
2nd generation Cloud Functions have improved cold start times due to Cloud Run's architecture.
Which generation allows more advanced VPC networking features?
✗ Incorrect
2nd generation Cloud Functions support advanced VPC networking with egress control.
Explain the main differences between 1st and 2nd generation Cloud Functions in GCP.
Think about how the underlying platform changed and what new features that enabled.
You got /5 concepts.
Describe scenarios where you would choose 2nd generation Cloud Functions over 1st generation.
Consider limitations of 1st generation and how 2nd generation addresses them.
You got /5 concepts.