Google Cloud Professional Cloud DevOps Engineer — Question 56
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?
Answer options
- 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.
Correct answer: A
Explanation
Using Cloud Storage to cache intermediate artifacts helps to avoid rebuilding components that have not changed, thus significantly speeding up the build process and reducing costs. The other options either involve additional complexity, increased resource usage, or may not effectively minimize build time in the same way caching does.