Easy1 markMultiple Choice
Domain 3.3: Deploying Cloud Run and Cloud FunctionsgcloudCloud RunDeploymentContainers

GCP ACE · Question 25 · Domain 3.3: Deploying Cloud Run and Cloud Functions

You have built a container image for a simple web API and pushed it to Artifact Registry. You want to deploy this image to Cloud Run so that it can receive HTTPS requests from the public internet.

Which gcloud command should you use?

Answer options:

A.

gcloud compute instances create-container

B.

gcloud run deploy

C.

gcloud functions deploy

D.

gcloud app deploy

How to approach this question

Match the service (Cloud Run) with its corresponding gcloud command group.

Full Answer

B.gcloud run deploy✓ Correct
To deploy a containerized application to Cloud Run, you use the `gcloud run deploy` command. You typically provide the image URL from Artifact Registry. The command will handle creating the Cloud Run service, provisioning the HTTPS endpoint, and routing traffic to your container.

Common mistakes

Confusing `gcloud run deploy` with `gcloud app deploy` (App Engine) or `gcloud functions deploy`.

Practice the full GCP Associate Cloud Engineer Practice Exam 6

50 questions · hints · full answers · grading

More questions from this exam