0
0
GCPcloud~5 mins

Cloud Functions generations (1st vs 2nd) in GCP - Quick Revision & Key Differences

Choose your learning style9 modes available
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?
A1st generation
B2nd generation
CBoth generations
DNeither generation
What is the maximum execution time for 1st generation Cloud Functions?
A9 minutes
B15 minutes
C60 minutes
DUnlimited
Which generation supports custom runtimes?
ABoth generations
B1st generation only
C2nd generation only
DNeither generation
Which generation offers better cold start performance?
ACold starts do not apply
B1st generation
CBoth are the same
D2nd generation
Which generation allows more advanced VPC networking features?
A2nd generation
B1st generation
CBoth generations equally
DNeither generation
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.