Bird
0
0

Which is the correct syntax to specify the runtime when deploying a function using gcloud CLI?

easy📝 Syntax Q3 of 15
GCP - Cloud Functions
Which is the correct syntax to specify the runtime when deploying a function using gcloud CLI?
Agcloud functions deploy myFunc -runtime python310
Bgcloud functions deploy myFunc --runtimes=python310
Cgcloud functions deploy myFunc --runtime=python3.10
Dgcloud functions deploy myFunc --runtime python310
Step-by-Step Solution
Solution:
  1. Step 1: Recall correct gcloud CLI syntax for runtime

    The correct flag is --runtime followed by the runtime name without '='.
  2. Step 2: Identify incorrect syntax

    Options with '=' or misspelled flags are invalid.
  3. Final Answer:

    gcloud functions deploy myFunc --runtime python310 -> Option D
  4. Quick Check:

    Correct flag is --runtime without '=' [OK]
Quick Trick: Use --runtime without '=' to specify function runtime [OK]
Common Mistakes:
  • Using '=' after --runtime
  • Misspelling the flag as -runtime or --runtimes

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes