Topic 1 Question 248
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?
Remove the step that pushes the container to Artifact Registry.
Deploy a new Docker registry in a VPC, and use Cloud Build worker pools inside the VPC to run the build pipeline.
Store image artifacts in a Cloud Storage bucket in the same region as the Cloud Run instance.
Add the --cache-from argument to the Docker build step in your build config file.
ユーザの投票
コメント(3)
- 正解だと思う選択肢: D👍 1TNT872023/01/31
- 正解だと思う選択肢: D
Option D, adding the --cache-from argument to the Docker build step in the build config file, would be the best option to optimize deployment times.
The --cache-from argument allows you to specify a list of images that Docker should use as a cache source when building the image. If a layer in the current build matches a layer in one of the cache source images, Docker uses the cached layer instead of building it again, reducing the build time.
Options A and C may not have a significant impact on deployment times, and option B would likely add complexity and increase deployment times, as it would require deploying and managing a new Docker registry and using a VPC-based Cloud Build worker pool.
👍 1mrvergara2023/02/04 - 正解だと思う選択肢: D👍 1Pime132023/02/27
シャッフルモード