
Explanation:
To improve the build speed in Cloud Build, it's effective to use a .gcloudignore file to exclude unneeded files and select a virtual machine with a higher CPU. Larger base images (Option D) can slow down builds, and adding more permissions to the Cloud Build Service Account (Option C) does not affect build speed. While a .gitignore file (Option E) can exclude files, it's not as effective as .gcloudignore for Cloud Build. For more details, refer to Google Cloud's documentation on speeding up builds.
Ultimate access to all questions.
No comments yet.
As the person in charge of setting up 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 to accelerate the build process.
B
Incorporate a .gcloudignore file to omit files unnecessary for your build, thereby improving speed.
C
Enhance the Cloud Build Service Account with additional permissions, though this does not impact build speed.
D
Choose larger base images for your builds, which may not necessarily speed up the process.
E
Utilize a .gitignore file to exclude files not required by your build, which is less effective than .gcloudignore for Cloud Build.