GoogleGoogle
PROFESSIONAL-CLOUD-DEVELOPER · Question #115
PROFESSIONAL-CLOUD-DEVELOPER Question #115: Real Exam Question with Answer & Explanation
The correct answer is A: Run gcloud builds submit in the directory that contains the application source code.. https://cloud.google.com/build/docs/building/build-containers#store-images
Implementing CI/CD and DevOps Practices
Question
You have decided to migrate your Compute Engine application to Google Kubernetes Engine. You need to build a container image and push it to Artifact Registry using Cloud Build. What should you do? (Choose two.)
Options
- ARun gcloud builds submit in the directory that contains the application source code.
- BRun gcloud run deploy app-name --image gcr.io/$PROJECT_ID/app-name in the directory that
- CRun gcloud container images add-tag gcr.io/$PROJECT_ID/app-name gcr.io/$PROJECT_ID/app-
- DIn the application source directory, create a file named cloudbuild.yaml that contains the following
- EIn the application source directory, create a file named cloudbuild.yaml that contains the following
Explanation
https://cloud.google.com/build/docs/building/build-containers#store-images
Topics
#Cloud Build#Container Images#Artifact Registry#gcloud CLI
Community Discussion
No community discussion yet for this question.