Automate uploading new on-premises medical images to Cloud Storage for archival. What should you do?
Choose an answer
Tap an option to check your answer.
Correct answer: Create a script that uses the gcloud storage commands to synchronize the on-premises storage with Cloud Storage, and schedule the script as a cron job..
Why this is the answer
The most straightforward and automated solution for regularly transferring on-premises data to Cloud Storage for archival is to use a scheduled script. The gcloud storage rsync command efficiently synchronizes directories, only transferring new or changed files, making it ideal for this use case. Scheduling this script as a cron job ensures regular, automated uploads without manual intervention. The other options are less suitable: Pub/Sub with an application publishing images is overly complex for a simple file transfer and requires building and maintaining a custom application. Pub/Sub with a Cloud Function is also overly complex and introduces unnecessary latency and cost for a bulk archival task; Cloud Functions are better suited for event-driven processing of individual objects rather than bulk synchronization. Manually uploading images is not an automated solution and is impractical for ongoing archival.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed