ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 215 - Associate Cloud Engineer discussion

Report
Export

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
Answers
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
Answers
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
Answers
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
Answers
D.
Run gcloud builds submit --tag gcr.io/prod-278986/acme_track_n_trace:v1
Suggested 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

asked 18/09/2024
Abdullah Mousa
45 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first