Google Associate Cloud Engineer

Google Associate Cloud Engineer

Get started today

Ultimate access to all questions.


You have developed a Cloud Function that responds to HTTP triggers and returns data in JSON format. The code is tested and works locally. What command should you use to deploy this function to Google Cloud?




Explanation:

The correct answer is B because the gcloud functions deploy command is used to deploy Cloud Functions to Google Cloud. This command uploads your function's source code from your local machine or a source repository to a Google Cloud Storage bucket. The basic syntax for deploying a function is: gcloud functions deploy NAME --runtime RUNTIME TRIGGER [FLAGS…]. For more details, refer to the Google Cloud Functions documentation.