New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Google Professional Cloud Developer Exam - Topic 14 Question 98 Discussion

Actual exam question for Google's Professional Cloud Developer exam
Question #: 98
Topic #: 14
[All Professional Cloud Developer Questions]

You are deploying a Python application to Cloud Run using Cloud Build. The Cloud Build pipeline is shown below:

You want to optimize deployment times and avoid unnecessary steps What should you do?

Show Suggested Answer Hide Answer

Contribute your Thoughts:

0/2000 characters
Stefany
3 months ago
Wait, can you really skip pushing to Artifact Registry? That sounds too good to be true!
upvoted 0 times
...
Leeann
3 months ago
I disagree with D, seems like overkill for most projects.
upvoted 0 times
...
Yvonne
3 months ago
Storing images in the same region makes sense, option C is solid.
upvoted 0 times
...
Helaine
4 months ago
Removing the push step? That sounds risky!
upvoted 0 times
...
Edna
4 months ago
I think option B is the best choice for caching.
upvoted 0 times
...
Lenna
4 months ago
I practiced a similar question where using a VPC for builds was suggested, but I wonder if that's overkill for just optimizing deployment.
upvoted 0 times
...
Kristin
4 months ago
I think storing artifacts in a Cloud Storage bucket could help with latency, but I'm not confident if it really speeds up deployment times.
upvoted 0 times
...
Breana
4 months ago
I'm not entirely sure, but removing the push step sounds risky. We need the image in Artifact Registry, right?
upvoted 0 times
...
Lindsey
5 months ago
I remember we discussed the importance of caching in Docker builds, so option B might be the right choice.
upvoted 0 times
...
Michal
5 months ago
Ah, the cache-from argument could be really helpful here. That might allow us to reuse cached layers from previous builds and cut down on build time. I'll take a closer look at option B.
upvoted 0 times
...
Martina
5 months ago
Okay, I think I've got a strategy here. Removing the Artifact Registry push step seems like the most straightforward way to speed things up, since we're already deploying to Cloud Run. I'll go with option A.
upvoted 0 times
...
Isabelle
5 months ago
Hmm, I'm a bit confused by the question. I'm not sure which step is causing the unnecessary delay. I'll need to do some research on Cloud Build and Cloud Run to figure this out.
upvoted 0 times
...
Lore
5 months ago
This looks like a tricky one. I'll need to carefully review the Cloud Build pipeline and think through the different options to optimize deployment times.
upvoted 0 times
...
Augustine
1 year ago
Haha, I bet the person who came up with option D was just trying to make the question more complex. Let's keep it simple and go with option B!
upvoted 0 times
Renay
1 year ago
User 4: Option B it is then, let's keep it simple.
upvoted 0 times
...
Floyd
1 year ago
User 3: Removing unnecessary steps is always a good idea.
upvoted 0 times
...
Sharika
1 year ago
User 2: Sounds good, that will help optimize deployment times.
upvoted 0 times
...
Fabiola
1 year ago
User 1: I agree, let's go with option B.
upvoted 0 times
...
...
Latrice
1 year ago
Option C is an interesting idea, but I'm not sure if storing the image artifacts in a Cloud Storage bucket will make a significant difference in deployment times.
upvoted 0 times
...
Louis
1 year ago
I agree with Daron. Storing image artifacts in a Cloud Storage bucket in the same region as the Cloud Run instance could also help optimize deployment times.
upvoted 0 times
...
Lai
1 year ago
I'm not a fan of option D. Creating a new Docker registry and VPC just for this build pipeline seems like overkill to me.
upvoted 0 times
Hyman
1 year ago
C) Store image artifacts in a Cloud Storage bucket in the same region as the Cloud Run instance.
upvoted 0 times
...
Alex
1 year ago
B) Add the --cache-from argument to the Docker build step in your build config file.
upvoted 0 times
...
Georgiann
1 year ago
A) Remove the step that pushes the container to Artifact Registry.
upvoted 0 times
...
...
Daron
1 year ago
I disagree. I believe adding the ---cache-from argument to the Docker build step would be more efficient.
upvoted 0 times
...
Cassie
1 year ago
Option B sounds like a good way to optimize deployment times. Caching the Docker build steps can definitely speed things up.
upvoted 0 times
Jeannine
1 year ago
User 4: Storing image artifacts in a Cloud Storage bucket can also help with optimization.
upvoted 0 times
...
Judy
1 year ago
User 3: Removing unnecessary steps can really make a difference in the pipeline.
upvoted 0 times
...
Pamella
1 year ago
User 2: I agree. It's important to optimize deployment times.
upvoted 0 times
...
Marilynn
1 year ago
User 1: Option B sounds like a good idea. Caching can definitely speed things up.
upvoted 0 times
...
...
Winifred
1 year ago
I think we should remove the step that pushes the container to Artifact Registry.
upvoted 0 times
...

Save Cancel