What should you do?
You have been asked to migrate a docker application from datacenter to cloud. Your solution architect has suggested uploading docker images to GCR in one project and running an application in a GKE cluster in a separate project. You want to store images in the project img-278322 and run the application in the project prod-278986. You want to tag the image as acme_track_n_trace:v1. You want to follow Google-recommended practices.
What should you do?
A . Run gcloud builds submit –tag gcr.io/img-278322/acme_track_n_trace
B . Run gcloud builds submit –tag gcr.io/img-278322/acme_track_n_trace:v1
C . Run gcloud builds submit –tag gcr.io/prod-278986/acme_track_n_trace
D . Run gcloud builds submit –tag gcr.io/prod-278986/acme_track_n_trace:v1
Answer: B
Explanation:
✑ Run gcloud builds submit tag gcr.io/img-278322/acme_track_n_trace:v1. is the right answer.
This command correctly tags the image as acme_track_n_trace:v1 and uploads the image to the img-278322 project.
Ref: https://cloud.google.com/sdk/gcloud/reference/builds/submit
Latest Associate Cloud Engineer Dumps Valid Version with 181 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund