Bird
0
0

Given this deployment command:

medium📝 service behavior Q13 of 15
GCP - Cloud Functions
Given this deployment command:
gcloud functions deploy myFunc --runtime nodejs18 --trigger-http
What runtime environment will the function use?
ANode.js version 16
BNode.js version 18
CPython version 3.8
DGo version 1.18
Step-by-Step Solution
Solution:
  1. Step 1: Identify the runtime flag value

    The command uses --runtime nodejs18, which specifies Node.js version 18.
  2. Step 2: Confirm the runtime matches the version

    Node.js 18 is the environment set, not Node.js 16 or other languages.
  3. Final Answer:

    Node.js version 18 -> Option B
  4. Quick Check:

    nodejs18 means Node.js 18 runtime [OK]
Quick Trick: Runtime name includes language and version [OK]
Common Mistakes:
  • Assuming nodejs18 means version 16
  • Confusing Node.js with Python or Go runtimes
  • Ignoring the runtime flag value

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes