Bird
0
0

You attempt to deploy a Cloud Function using:

medium📝 Debug Q6 of 15
GCP - Cloud Functions
You attempt to deploy a Cloud Function using:
gcloud functions deploy analyzeData --runtime python310 --trigger-http
But receive an error stating the runtime is invalid. What is the most probable cause?
AThe runtime identifier 'python310' is incorrect; it should be 'python310x'.
BPython 3.10 is not supported by Google Cloud Functions.
CThe trigger type '--trigger-http' is incompatible with Python runtimes.
DThe function name 'analyzeData' is invalid.
Step-by-Step Solution
Solution:
  1. Step 1: Check runtime naming conventions

    Google Cloud Functions uses specific runtime identifiers like 'python310'. The error suggests the identifier is invalid.
  2. Step 2: Verify supported runtimes

    Python 3.10 is supported, but the exact runtime string must be correct.
  3. Step 3: Analyze options

    Python 3.10 is not supported by Google Cloud Functions. is the most probable cause if the runtime is invalid.
  4. Final Answer:

    Python 3.10 is not supported by Google Cloud Functions -> Option B
  5. Quick Check:

    Runtime string must match supported formats exactly [OK]
Quick Trick: Check exact runtime string spelling and format [OK]
Common Mistakes:
  • Assuming unsupported Python versions cause the error
  • Blaming trigger type for runtime errors
  • Ignoring runtime naming conventions

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes