Easy1 markMultiple Choice
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?
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
Q01What is the primary purpose of a Google Cloud project?EasyQ02Your development team needs to manage Compute Engine instances in a specific project. They need t...MediumQ03You are automating the setup of a new Google Cloud project using a bash script. You need to enabl...EasyQ04Your startup has a strict monthly cloud budget of $500. You want to be notified immediately if yo...MediumQ05Your finance team wants to perform granular analysis of your Google Cloud spending using SQL. The...Hard
Expert