Google Professional Cloud DevOps Engineer

Google Professional Cloud DevOps Engineer

Get started today

Ultimate access to all questions.


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?





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.