Topic 1 Question 219
2 つ選択You recently developed a new application. You want to deploy the application on Cloud Run without a Dockerfile. Your organization requires that all container images are pushed to a centrally managed container repository. How should you build your container using Google Cloud services?
Push your source code to Artifact Registry.
Submit a Cloud Build job to push the image.
Use the pack build command with pack CLI.
Include the --source flag with the gcloud run deploy CLI command.
Include the --platform=kubernetes flag with the gcloud run deploy CLI command.
ユーザの投票
コメント(10)
C and D.
C: Google Cloud for buildpacks—an open-source technology that makes it fast and easy for you to create secure, production-ready container images from source code and without a Dockerfile. https://cloud.google.com/blog/products/containers-kubernetes/google-cloud-now-supports-buildpacks (also mentioned by TNT87)
D: Deploying from source code. "This page describes how to deploy new services and new revisions to Cloud Run directly from source code using a single gcloud CLI command, gcloud run deploy with the --source flag." https://cloud.google.com/run/docs/deploying-source-code
A is incorrect because Artifact Registry is for container images, not source code. B is incorrect because only the built image is needed to be deployed to Cloud Run. "A centrally managed container repository" can be somewhere outside of Google, so as the build tool. It doesn't necessary to be built on Cloud Build. E is irrelevant in this case, as K8S is not involved in this question.
👍 2x_cath2022/12/12- 正解だと思う選択肢: CD
C & D are correct
👍 2jcataluna2022/12/13 - 正解だと思う選択肢: AC👍 1TNT872022/12/02
シャッフルモード