A developer wants to deploy an HTTP-triggered serverless function written in Python directly from source code using the Google Cloud CLI. Which gcloud command should the developer execute to perform this deployment?
- gcloud functions deploy FUNCTION_NAME --runtime=python311 --trigger-httpCevap
- Bgcloud run deploy FUNCTION_NAME --image=python311 --trigger-http
- Cgcloud compute instances create FUNCTION_NAME --runtime=python311
- Dgcloud serverless deploy FUNCTION_NAME --runtime=python311
Cevap
The command 'gcloud functions deploy FUNCTION_NAME --runtime=python311 --trigger-http' correctly deploys a Python function with an HTTP endpoint using the Cloud SDK.
The correct command 'gcloud functions deploy FUNCTION_NAME --runtime=python311 --trigger-http' specifies the correct command group ('functions'), action ('deploy'), function name, runtime environment, and HTTP trigger flag required for deploying a serverless Cloud Function.
Adım Adım Çözüm
Anahtar Kavram
Deploying Cloud Functions via gcloud CLI
Tahmini Süre:45s