GoogleGoogle
PROFESSIONAL-CLOUD-DEVELOPER · Question #265
PROFESSIONAL-CLOUD-DEVELOPER Question #265: Real Exam Question with Answer & Explanation
The correct answer is D: Add the --cache-from argument to the Docker build step in your build config file.. https://cloud.google.com/build/docs/optimize-builds/speeding-up- builds#using_a_cached_docker_image
Implementing CI/CD
Question
You are deploying a Python application to Cloud Run using Cloud Source Repositories and Cloud Build. The Cloud Build pipeline is shown below: You want to optimize deployment times and avoid unnecessary steps. What should you do?
Options
- ARemove the step that pushes the container to Artifact Registry.
- BDeploy a new Docker registry in a VPC, and use Cloud Build worker pools inside the VPC to run
- CStore image artifacts in a Cloud Storage bucket in the same region as the Cloud Run instance.
- DAdd the --cache-from argument to the Docker build step in your build config file.
Explanation
https://cloud.google.com/build/docs/optimize-builds/speeding-up- builds#using_a_cached_docker_image
Topics
#Cloud Build#Docker#Build Optimization#CI/CD
Community Discussion
No community discussion yet for this question.