exam questions

Exam Professional Cloud DevOps Engineer All Questions

View all questions & answers for the Professional Cloud DevOps Engineer exam

Exam Professional Cloud DevOps Engineer topic 1 question 56 discussion

Actual exam question from Google's Professional Cloud DevOps Engineer
Question #: 56
Topic #: 1
[All Professional Cloud DevOps Engineer Questions]

You use Cloud Build to build your application. You want to reduce the build time while minimizing cost and development effort. What should you do?

  • A. Use Cloud Storage to cache intermediate artifacts.
  • B. Run multiple Jenkins agents to parallelize the build.
  • C. Use multiple smaller build steps to minimize execution time.
  • D. Use larger Cloud Build virtual machines (VMs) by using the machine-type option.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
TNT87
Highly Voted 3 years ago
Ans A https://cloud.google.com/storage/docs/best-practices
upvoted 14 times
...
bob_builder
Highly Voted 2 years, 10 months ago
A - https://cloud.google.com/build/docs/speeding-up-builds#caching_directories_with_google_cloud_storage
upvoted 8 times
...
jomonkp
Most Recent 11 months ago
Selected Answer: A
Option A
upvoted 2 times
...
calex1
1 year, 2 months ago
Selected Answer: A
Definitely A A. Use Cloud Storage to cache intermediate artifacts.
upvoted 1 times
...
jeffersonkozak
1 year, 4 months ago
Selected Answer: C
https://cloud.google.com/blog/products/containers-kubernetes/kubernetes-best-practices-how-and-why-to-build-small-container-images
upvoted 1 times
...
Greg123123
1 year, 9 months ago
IMO this question / options could be reported incorrectly. For A, according to the doc, we can only store the resulting image in cloud storage, not intermediate layer of the image. To do so, we should use Kaniko cache instead. So A isn't correct. For D, it works but it increases the cost which violates the requirement from the question.
upvoted 1 times
Feliphus
10 months, 1 week ago
I wonder if ans C is the correct, you can find the same answer: Use multiple smaller build steps to minimize execution time in Q-126 as well.
upvoted 1 times
...
...
zellck
2 years ago
Selected Answer: A
A is the answer. https://cloud.google.com/build/docs/optimize-builds/speeding-up-builds#caching_directories_with_google_cloud_storage To increase the speed of a build, reuse the results from a previous build. You can copy the results of a previous build to a Google Cloud Storage bucket, use the results for faster calculation, and then copy the new results back to the bucket.
upvoted 2 times
AzureDP900
2 years ago
Agree with A
upvoted 1 times
...
...
ssmb
2 years ago
Most likely A is correct, even after reading the suggested document at: https://cloud.google.com/build/docs/speeding-up-builds
upvoted 1 times
...
Ananda
2 years, 5 months ago
Selected Answer: A
Submitted A
upvoted 2 times
...
TNT87
2 years, 10 months ago
Selected Answer: A
Ans A and thats cheap and fast
upvoted 3 times
...
TNT87
2 years, 10 months ago
minimising costs...high virtual machines are expensive
upvoted 1 times
...
TNT87
2 years, 11 months ago
lets correct something fellows ok. A is not ok, why, we can ok only use intermediate artifacts in Kaniko cache, not in Cloud storage, in cloud storage we use results not intermediate artifacts "You can copy the results of a previous build to a Google Cloud Storage bucket, use the results for faster calculation, and then copy the new results back to the bucket." go re-read the best practices and you will see what im talking about, then this leaves D as the correct answer. https://cloud.google.com/build/docs/speeding-up-builds
upvoted 3 times
KyubiBlaze
2 years, 9 months ago
A is correct choice. Why D is not correct, because even if you break steps into small chunks, you are just increasing the number of steps, and not solving the actual problem of reducing execution time. If step 1 takes 5min it will take 5min, if you break it down into three steps, combined Step 1+2+3 = 5min again, and they don't run in parallel. What did you solve? Nothing. If you cache ie. store intermediate artefacts in cloud storage, you do not need to recompile it in next steps, saves time and cost.
upvoted 4 times
...
leandrojpg
1 year, 11 months ago
if you question and point out the error, don't just give your answer so you help the discussion
upvoted 1 times
leandrojpg
1 year, 11 months ago
if you question and point out the error, don't just give your answer so you help the discussion
upvoted 1 times
...
leandrojpg
1 year, 11 months ago
sorry not see ans
upvoted 1 times
...
...
...
ESP_SAP
2 years, 11 months ago
Correct Answer is (D): Using custom virtual machine sizes In addition to the standard machine type, Cloud Build provides four high-CPU virtual machine types to run your builds. To increase the speed of your build, select a virtual machine with a higher CPU. Requesting a high-CPU machine may increase the startup time of your build as Cloud Build only starts these machines on demand. https://cloud.google.com/build/docs/speeding-up-builds
upvoted 6 times
TNT87
2 years, 11 months ago
You are correct sir....
upvoted 1 times
...
TNT87
2 years, 11 months ago
in as much as D is correct A is also mentioned inthe Best practices
upvoted 1 times
...
...
Tire
2 years, 11 months ago
Selected Answer: A
Caching directories with Google Cloud Storage To increase the speed of a build, reuse the results from a previous build. You can copy the results of a previous build to a Google Cloud Storage bucket, use the results for faster calculation, and then copy the new results back to the bucket. Use this method when your build takes a long time and produces a small number of files that does not take time to copy to and from Google Cloud Storage.
upvoted 2 times
TNT87
2 years, 11 months ago
results not intermediate artifacts, ok
upvoted 1 times
...
...
muk5658
2 years, 11 months ago
Both A and D are valid options, but if we look in the question they are asking to Minimize Cost - Larger Compute Instances comes at price. So I will go with A (Caching from GCS bucket)
upvoted 3 times
...
Manh
2 years, 11 months ago
Ans is A
upvoted 1 times
...
Shasha1
2 years, 12 months ago
A https://cloud.google.com/build/docs/speeding-up-builds
upvoted 3 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