Bird
0
0

A developer deploys a 2nd generation Cloud Function but it fails with an error about unsupported runtime. What is the likely cause?

medium📝 Debug Q7 of 15
GCP - Cloud Functions
A developer deploys a 2nd generation Cloud Function but it fails with an error about unsupported runtime. What is the likely cause?
ADeploying without specifying a region
BMissing --trigger-http flag
CNot specifying --gen 1 flag
DUsing a runtime not supported in 2nd generation
Step-by-Step Solution
Solution:
  1. Step 1: Understand runtime support

    2nd generation Cloud Functions support a subset of runtimes; unsupported runtimes cause deployment failure.
  2. Step 2: Check other flags

    Missing trigger or region flags cause different errors, not runtime unsupported.
  3. Final Answer:

    Using a runtime not supported in 2nd generation -> Option D
  4. Quick Check:

    Unsupported runtime causes deployment failure [OK]
Quick Trick: Check runtime compatibility with 2nd gen before deploying [OK]
Common Mistakes:
  • Assuming missing trigger causes runtime error
  • Confusing generation flags

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes