
Answer-first summary for fast verification
Answer: Run `gcloud builds submit --tag gcr.io/img-278322/acme_track_n_trace:v1`
The correct command is `gcloud builds submit --tag gcr.io/img-278322/acme_track_n_trace:v1`. This command correctly tags the image as `acme_track_n_trace:v1` and uploads it to the `img-278322` project, adhering to Google's recommended practices. Other options either tag the image incorrectly (as `latest` instead of `v1`) or upload the image to the wrong project (`prod-278986`). For more details, refer to the [Google Cloud SDK documentation](https://cloud.google.com/sdk/gcloud/reference/builds/submit).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You are tasked with migrating a Docker application from a datacenter to the cloud. Your solution architect recommends uploading Docker images to Google Container Registry (GCR) in one project and running the application in a Google Kubernetes Engine (GKE) cluster in a separate project. Specifically, you need to store images in the project img-278322 and run the application in the project prod-278986. The image should be tagged as acme_track_n_trace:v1. Following Google's recommended practices, what is the correct action to take?
A
Run gcloud builds submit --tag gcr.io/prod-278986/acme_track_n_trace:v1
B
Run gcloud builds submit --tag gcr.io/img-278322/acme_track_n_trace
C
Run gcloud builds submit --tag gcr.io/prod-278986/acme_track_n_trace
D
Run gcloud builds submit --tag gcr.io/img-278322/acme_track_n_trace:v1
No comments yet.