nerdexam
GoogleGoogle

PROFESSIONAL-CLOUD-DEVELOPER · Question #182

PROFESSIONAL-CLOUD-DEVELOPER Question #182: Real Exam Question with Answer & Explanation

The correct answer is A: Build a new Docker container that examines the files in /workspace and then checks and adds a. https://cloud.google.com/build/docs/configuring-builds/pass-data-between- steps#passing_data_using_workspaces To pass data between build steps, store the assets produced by the build step in /workspace and these assets will be available to any subsequent build steps.

Implementing CI/CD Pipelines

Question

Your company's corporate policy states that there must be a copyright comment at the very beginning of all source files. You want to write a custom step in Cloud Build that is triggered by each source commit. You need the trigger to validate that the source contains a copyright and add one for subsequent steps if not there. What should you do?

Options

  • ABuild a new Docker container that examines the files in /workspace and then checks and adds a
  • BBuild a new Docker container that examines the files in /workspace and then checks and adds a
  • CBuild a new Docker container that examines the files in a Cloud Storage bucket and then checks
  • DBuild a new Docker container that examines the files in a Cloud Storage bucket and then checks

Explanation

https://cloud.google.com/build/docs/configuring-builds/pass-data-between- steps#passing_data_using_workspaces To pass data between build steps, store the assets produced by the build step in /workspace and these assets will be available to any subsequent build steps.

Topics

#Cloud Build#Custom Build Steps#Docker#CI/CD

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVELOPER PracticeBrowse All PROFESSIONAL-CLOUD-DEVELOPER Questions