exam questions

Exam Professional Cloud Developer All Questions

View all questions & answers for the Professional Cloud Developer exam

Exam Professional Cloud Developer topic 1 question 248 discussion

Actual exam question from Google's Professional Cloud Developer
Question #: 248
Topic #: 1
[All Professional Cloud Developer Questions]

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?

  • A. Remove the step that pushes the container to Artifact Registry.
  • B. Deploy a new Docker registry in a VPC, and use Cloud Build worker pools inside the VPC to run the build pipeline.
  • C. Store image artifacts in a Cloud Storage bucket in the same region as the Cloud Run instance.
  • D. Add the --cache-from argument to the Docker build step in your build config file.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
__rajan__
7 months, 1 week ago
Selected Answer: D
D is correct.
upvoted 1 times
...
purushi
8 months, 3 weeks ago
Selected Answer: D
Use local cached image to save build time.
upvoted 1 times
...
Pime13
1 year, 2 months ago
Selected Answer: D
https://cloud.google.com/build/docs/optimize-builds/speeding-up-builds#using_a_cached_docker_image
upvoted 1 times
...
mrvergara
1 year, 2 months ago
Selected Answer: 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.
upvoted 1 times
...
TNT87
1 year, 2 months ago
Selected Answer: D
https://cloud.google.com/build/docs/optimize-builds/speeding-up-builds#using_a_cached_docker_image
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago