nerdexam
Google

PROFESSIONAL-CLOUD-DEVELOPER · Question #376

You are deploying a containerized application to GKE. You have set up a build pipeline by using Cloud Build that builds a Java application and pushes the application container image to Artifact Regist

Sign in or unlock PROFESSIONAL-CLOUD-DEVELOPER to reveal the answer and full explanation for question #376. The question stem and answer options stay visible for context.

Building and Testing Applications

Question

You are deploying a containerized application to GKE. You have set up a build pipeline by using Cloud Build that builds a Java application and pushes the application container image to Artifact Registry. Your build pipeline executes multiple sequential steps that reference Docker container images with the same layers. You notice that the Cloud Build pipeline runs are taking longer than expected to complete. How should you optimize the Docker image build process?

Options

  • AAdd the --squash parameter to the Docker build steps to combine newly built layers into a single
  • BConfigure Cloud Build to use a private pool in your VPC for pipeline executions.
  • CSpecify the cached image by adding the --cache-from argument in your build config file with the
  • DStore container artifacts on Cloud Storage. Configure Cloud CDN on the Cloud Storage bucket to

Unlock PROFESSIONAL-CLOUD-DEVELOPER to see the answer

You've previewed enough free PROFESSIONAL-CLOUD-DEVELOPER questions. Unlock PROFESSIONAL-CLOUD-DEVELOPER for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Docker Build Optimization#Cloud Build#Containerization#CI/CD
Full PROFESSIONAL-CLOUD-DEVELOPER Practice