LeetQuiz Logo
Privacy Policy•contact@leetquiz.com
© 2025 LeetQuiz All rights reserved.
Google Professional Cloud Developer

Google Professional Cloud Developer

Get started today

Ultimate access to all questions.


How can you store a flat file generated in one Cloud Build step to make it accessible to all subsequent builders in the same CI/CD pipeline?

(Note: The original question implied copying files to Compute Engine VMs, but the core focus is on inter-step file sharing within Cloud Build.)

# Example Cloud Build step referencing the shared file
steps:
- name: 'gcr.io/cloud-builders/gcloud'
  args: ['compute', 'scp', '${_SHARED_FILE}', 'instance-name:~']
  volumes:
  - name: 'shared-vol'
    path: '/workspace/shared'

(Code block corrected to use proper Cloud Build syntax with volumes for file sharing.)

Exam-Like



Powered ByGPT-5