
Answer-first summary for fast verification
Answer: Opt for a virtual machine equipped with a higher CPU capacity., Incorporate a .gcloudignore file to omit unnecessary files from your build.
To accelerate build speeds, employing a .gcloudignore file to exclude non-essential files and choosing a virtual machine with a higher CPU are effective strategies. Options D and E are not advisable as larger base images can decelerate builds, and Service Account permissions do not influence build speed. Reference: [Speeding Up Builds](https://cloud.google.com/build/docs/speeding-up-builds).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
As the person in charge of establishing an automated CI/CD pipeline for building Docker images for application deployment to GKE, you've noticed a decline in the build speed of Cloud Build. Which TWO actions can you take to enhance the build speed?
A
Opt for a virtual machine equipped with a higher CPU capacity.
B
Incorporate a .gcloudignore file to omit unnecessary files from your build.
C
Grant additional permissions to the Cloud Build Service Account.
D
Use larger base images whenever possible.
E
Apply a .gitignore file to exclude files not required by your build.