PROFESSIONAL-CLOUD-DEVELOPER · Question #236
PROFESSIONAL-CLOUD-DEVELOPER Question #236: Real Exam Question with Answer & Explanation
The correct answer is C: Use the pack build command with pack CLI.. For example, use buildpacks to build the source code of your Cloud Run service into a container https://cloud.google.com/docs/buildpacks/build-application https://cloud.google.com/blog/products/containers-kubernetes/google-cloud-now-supports- If no Dockerfile is present in the so
Question
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? (Choose two.)
Options
- APush your source code to Artifact Registry.
- BSubmit a Cloud Build job to push the image.
- CUse the pack build command with pack CLI.
- DInclude the --source flag with the gcloud run deploy CLI command.
- EInclude the --platform=kubernetes flag with the gcloud run deploy CLI command.
Explanation
For example, use buildpacks to build the source code of your Cloud Run service into a container https://cloud.google.com/docs/buildpacks/build-application https://cloud.google.com/blog/products/containers-kubernetes/google-cloud-now-supports- If no Dockerfile is present in the source code directory, Google Cloud's buildpacks automatically detects the language you are using and fetches the dependencies of the code to make a production-ready container image, using a secure base image managed by Google. https://cloud.google.com/run/docs/deploying-source-code
Topics
Community Discussion
No community discussion yet for this question.