What should you do?

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.

Answer: C

Explanation:

https://cloud.google.com/storage/docs/best-practices .

https://cloud.google.com/build/docs/speeding-up-builds#caching_directories_with_google_cloud_storage

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

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments