ASSOCIATE-CLOUD-ENGINEER · Question #273
You are working for a hospital that stores its medical images in an on-premises data room. The hospital wants to use Cloud Storage for archival storage of these images. The hospital wants an…
The correct answer is B. Create a script that uses the gcloud storage command to synchronize the on-premises storage. To automate the upload of new medical images from on-premises storage to Cloud Storage for archival, a script utilizing gcloud storage rsync (or gsutil rsync) is the most suitable solution for efficient synchronization.
Question
Options
- ACreate a Pub/Sub topic, and enable a Cloud Storage trigger for the Pub/Sub topic. Create an
- BCreate a script that uses the gcloud storage command to synchronize the on-premises storage
- CCreate a Pub/Sub topic, and create a Cloud Function connected to the topic that writes data to
- DIn the Google Cloud console, go to Cloud Storage. Upload the relevant images to the appropriate
How the community answered
(30 responses)- A13% (4)
- B77% (23)
- C3% (1)
- D7% (2)
Why each option
To automate the upload of new medical images from on-premises storage to Cloud Storage for archival, a script utilizing `gcloud storage rsync` (or `gsutil rsync`) is the most suitable solution for efficient synchronization.
A Pub/Sub topic with a Cloud Storage trigger is designed to react to events within Cloud Storage (e.g., object creation), not to initiate uploads from on-premises to Cloud Storage.
Creating a script that uses the `gcloud storage` command (specifically `gcloud storage rsync` or `gsutil rsync`) provides an effective and automated way to synchronize new and modified files from an on-premises directory to a Cloud Storage bucket.
While a Cloud Function can write data to Cloud Storage, triggering it via Pub/Sub would still require an on-premises mechanism to publish messages for each new file, making a direct synchronization tool more appropriate.
Manually uploading files through the Google Cloud console does not meet the requirement for an 'automated process'.
Concept tested: Data transfer from on-premises to Cloud Storage
Source: https://cloud.google.com/storage/docs/gsutil/commands/rsync
Topics
Community Discussion
No community discussion yet for this question.