Intrigued by the art of cloud architecture? Discover how to design, develop, and manage robust, secure, scalable, and dynamic solutions on Google Cloud as you prepare for the Professional Cloud Architect exam!
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
A DevOps engineer is optimizing an automated migration pipeline that uses the gsutil CLI to synchronize a large on-premises directory structure (/data/reports) containing hundreds of thousands of files to a destination bucket named gs://company-reports-archive.
The synchronization routine must satisfy the following technical requirements:
Which command should the engineer execute?
gsutil -m rsync isThe gsutil rsync command synchronizes the contents between two directories, buckets, or a combination of local filesystems and cloud buckets. When combined with the top-level -m option, gsutil executes multi-threaded and multi-process operations concurrently across multiple worker processes, drastically decreasing overall data transfer time for directories containing high file volumes.
-m flag directly after gsutil enables parallel processing across available CPU cores and network threads.-r flag instructs gsutil rsync to recursively traverse and process all child directories within /data/reports.-d flag directs rsync to delete any objects in the destination (gs://company-reports-archive) that are not present in the local source directory.gsutil rsync compares only file sizes and modification timestamps to determine if a file has changed. The -c flag forces gsutil to calculate and compare object checksums (MD5/CRC32c), ensuring modified files with identical sizes or timestamps are accurately updated.This command correctly uses the top-level -m flag prior to the subcommand, pairs it with rsync, and specifies all required synchronization modifier flags (-r, -d, and -c), fulfilling all scenario requirements in a single operation.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.