Bird
0
0

Given this command:

medium📝 service behavior Q13 of 15
GCP - Cloud Run
Given this command:
gcloud run deploy myservice --image=gcr.io/myproj/app:v1 --region=us-east1
What happens after running it?
AThe container image is deployed as a Cloud Run service named 'myservice' in us-east1 region
BA virtual machine named 'myservice' is created in us-east1
CThe image is uploaded to Google Container Registry only
DThe command fails because region must be us-central1
Step-by-Step Solution
Solution:
  1. Step 1: Understand the deploy command effect

    The command deploys the container image as a Cloud Run service with the given name and region.
  2. Step 2: Evaluate other options

    B is wrong because no VM is created. C is wrong because deployment runs the image, not just upload. A is wrong because us-east1 is a valid region.
  3. Final Answer:

    The container image is deployed as a Cloud Run service named 'myservice' in us-east1 region -> Option A
  4. Quick Check:

    Deploy command = service deployment [OK]
Quick Trick: Deploy runs container as service, not VM or just upload [OK]
Common Mistakes:
  • Thinking deploy creates VM
  • Confusing upload with deploy
  • Assuming region must be us-central1

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes