Complete the code to specify the runtime environment for a Google Cloud Function.
gcloud functions deploy my-function --runtime=[1] --trigger-httpThe --runtime flag sets the runtime environment. Here, python39 specifies Python 3.9, a supported runtime.
Complete the code to deploy a Node.js function with the correct runtime.
gcloud functions deploy my-node-function --runtime=[1] --trigger-topic=my-topicThe nodejs18 runtime specifies Node.js version 18, which is supported for Google Cloud Functions.
Fix the error in the runtime specification to deploy a Go function.
gcloud functions deploy go-function --runtime=[1] --trigger-httpThe correct supported Go runtime is go116. Other versions may be deprecated or unsupported.
Fill both blanks to specify a Java function runtime and memory allocation.
gcloud functions deploy java-function --runtime=[1] --memory=[2] --trigger-http
java17 is the runtime for Java 17, and 256MB sets the memory allocation for the function.
Fill all three blanks to deploy a Python function with environment variables and timeout.
gcloud functions deploy py-func --runtime=[1] --set-env-vars=[2] --timeout=[3] --trigger-http
python39 is a supported Python runtime. ENV=prod sets an environment variable. 60s sets the timeout to 60 seconds.