0
0
GCPcloud~10 mins

Function runtime environments in GCP - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to specify the runtime environment for a Google Cloud Function.

GCP
gcloud functions deploy my-function --runtime=[1] --trigger-http
Drag options to blanks, or click blank then click option'
Anodejs10
Bgo111
Cpython39
Druby27
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing an unsupported or deprecated runtime version.
Confusing runtime names with unrelated languages.
2fill in blank
medium

Complete the code to deploy a Node.js function with the correct runtime.

GCP
gcloud functions deploy my-node-function --runtime=[1] --trigger-topic=my-topic
Drag options to blanks, or click blank then click option'
Anodejs18
Bgo116
Cjava17
Dpython39
Attempts:
3 left
💡 Hint
Common Mistakes
Using a Python or Go runtime for a Node.js function.
Selecting an outdated Node.js version.
3fill in blank
hard

Fix the error in the runtime specification to deploy a Go function.

GCP
gcloud functions deploy go-function --runtime=[1] --trigger-http
Drag options to blanks, or click blank then click option'
Ago116
Bgo113
Cgo120
Dgo111
Attempts:
3 left
💡 Hint
Common Mistakes
Using deprecated Go runtime versions.
Typing incorrect runtime strings.
4fill in blank
hard

Fill both blanks to specify a Java function runtime and memory allocation.

GCP
gcloud functions deploy java-function --runtime=[1] --memory=[2] --trigger-http
Drag options to blanks, or click blank then click option'
Ajava17
B256MB
C512MB
Djava11
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing Java versions and memory sizes incorrectly.
Omitting memory allocation or using invalid units.
5fill in blank
hard

Fill all three blanks to deploy a Python function with environment variables and timeout.

GCP
gcloud functions deploy py-func --runtime=[1] --set-env-vars=[2] --timeout=[3] --trigger-http
Drag options to blanks, or click blank then click option'
Apython310
BENV=prod
C60s
Dpython39
Attempts:
3 left
💡 Hint
Common Mistakes
Using unsupported Python versions.
Incorrect format for environment variables or timeout.