nerdexam
Google

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.

Submitted by kim_seoul· Mar 30, 2026Deploying and implementing a cloud solution

Question

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 automated process to upload any new medical images to Cloud Storage. You need to design and implement a solution. What should you do?

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)
  • A
    13% (4)
  • B
    77% (23)
  • C
    3% (1)
  • D
    7% (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.

ACreate a Pub/Sub topic, and enable a Cloud Storage trigger for the Pub/Sub topic. Create an

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.

BCreate a script that uses the gcloud storage command to synchronize the on-premises storageCorrect

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.

CCreate a Pub/Sub topic, and create a Cloud Function connected to the topic that writes data to

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.

DIn the Google Cloud console, go to Cloud Storage. Upload the relevant images to the 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

#Cloud Storage#gcloud storage sync#on-premises migration#automated upload

Community Discussion

No community discussion yet for this question.

Full ASSOCIATE-CLOUD-ENGINEER Practice