nerdexam
GoogleGoogle

PROFESSIONAL-CLOUD-DEVELOPER · Question #155

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

The correct answer is B: Output the file contents to a file in /workspace. Read from the same /workspace file in the. https://cloud.google.com/build/docs/build-config-file-schema

Implementing CI/CD Pipelines

Question

You are using Cloud Build for your CI/CD pipeline to complete several tasks, including copying certain files to Compute Engine virtual machines. Your pipeline requires a flat file that is generated in one builder in the pipeline to be accessible by subsequent builders in the same pipeline. How should you store the file so that all the builders in the pipeline can access it?

Options

  • AStore and retrieve the file contents using Compute Engine instance metadata.
  • BOutput the file contents to a file in /workspace. Read from the same /workspace file in the
  • CUse gsutil to output the file contents to a Cloud Storage object. Read from the same object in the
  • DAdd a build argument that runs an HTTP POST via curl to a separate web server to persist the

Explanation

https://cloud.google.com/build/docs/build-config-file-schema

Topics

#Cloud Build#CI/CD#Pipeline Data Sharing#Build Workspaces

Community Discussion

No community discussion yet for this question.

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