Bird
0
0

You try to deploy a function with this command:

medium📝 Debug Q14 of 15
GCP - Cloud Functions
You try to deploy a function with this command:
gcloud functions deploy myFunc --runtime python39x --trigger-http
What is the most likely result?
ADeployment fails due to invalid runtime name
BDeployment succeeds with Python 3.9 runtime
CDeployment uses default runtime version
DDeployment succeeds but function crashes at runtime
Step-by-Step Solution
Solution:
  1. Step 1: Check the runtime flag value

    The runtime specified is python39x, which is not a valid runtime name.
  2. Step 2: Understand deployment validation

    Google Cloud validates runtime names and will reject invalid ones, causing deployment failure.
  3. Final Answer:

    Deployment fails due to invalid runtime name -> Option A
  4. Quick Check:

    Invalid runtime name causes deployment failure [OK]
Quick Trick: Invalid runtime names cause deployment errors [OK]
Common Mistakes:
  • Assuming deployment uses default runtime silently
  • Thinking deployment succeeds despite typo
  • Ignoring error messages during deployment

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes