Bird
0
0

Which of the following is the correct syntax to specify a container image when deploying with gcloud run?

easy📝 Syntax Q3 of 15
GCP - Cloud Run
Which of the following is the correct syntax to specify a container image when deploying with gcloud run?
A--image-url=gcr.io/image-name
B--container-image=project-id/image-name
C--deploy-image=image-name:latest
D--image=gcr.io/project-id/image-name:tag
Step-by-Step Solution
Solution:
  1. Step 1: Recall gcloud run deploy syntax

    The correct flag is --image followed by the full container image path.
  2. Step 2: Validate option format

    --image=gcr.io/project-id/image-name:tag matches the correct syntax with registry, project, image, and tag.
  3. Final Answer:

    --image=gcr.io/project-id/image-name:tag -> Option D
  4. Quick Check:

    Correct flag for image = --image [OK]
Quick Trick: Use --image= with full container path [OK]
Common Mistakes:
  • Using incorrect flag names like --container-image
  • Omitting registry or tag in image path
  • Using incomplete or wrong syntax

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes