Prepare and test your skills

Prepare and test your skills

Free sample question with answers and detailed explanation below. The Associate Cloud Engineer practice bank has an additional 2,014 practice questions.Try 10 free realistic questions: instant score, no credit card, and no account required.
Your team has an on-premises server containing thousands of log files organized across multiple nested folders in a local directory named log-data. You need to upload the entire directory structure into a Cloud Storage bucket named gs://corporate-log-archive.
You want to follow Google Cloud recommended practices by using the modern command-line tool that automatically optimizes transfer speeds with multi-threaded parallel processing.
Which command should you execute?
gsutil cp Isgsutil cp is the legacy Python-based command-line tool historically used for uploading, downloading, and copying objects within Google Cloud Storage.
-r (recursive) flag, gsutil cp will fail when given a directory path because it does not traverse subdirectories by default.gsutil, operations run sequentially unless the top-level -m multi-threading/multi-processing flag is explicitly provided (e.g., gsutil -m cp -r ...).gsutil is no longer the recommended CLI tool for Cloud Storage operations and lacks support for newer Cloud Storage platform features.gsutil requires explicit -m configuration to enable multi-threaded transfers.gsutil to gcloud storage.You were maintaining an older legacy environment running existing gsutil automation where modifying the base tool was restricted, and the command included both -m and -r (gsutil -m cp -r log-data gs://corporate-log-archive).
gcloud storage rsync DoesThe gcloud storage rsync command synchronizes the contents between two directories or buckets by comparing file sizes and modification timestamps.
gs://corporate-log-archive and the destination is log-data. This would attempt to download objects from the cloud bucket down to the local file system instead of uploading local files to the bucket.rsync is ideal for delta synchronization of changed files, standard initial bulk directory ingestion is typically handled directly via cp.The arguments were flipped (gcloud storage rsync log-data gs://corporate-log-archive --recursive) and the scenario specifically called for synchronizing only modified or newly created files as part of an ongoing recurring sync routine.
gcloud storage cp IsThe gcloud storage cp command is the primary Google Cloud CLI utility used to copy data between local file systems and Cloud Storage buckets, as well as between different cloud storage locations.
gcloud storage) is Google's recommended command-line interface for Cloud Storage, replacing the legacy gsutil utility.--recursive (or -r) flag instructs the CLI to traverse all nested subdirectories inside log-data and upload the full folder tree structure.gcloud storage cp automatically performs multi-threaded and multi-processing parallel transfers by default to maximize throughput.
This approach adheres directly to Google Cloud best practices by utilizing gcloud storage rather than deprecated or specialized tools, providing maximum transfer performance out of the box with minimal syntax complexity.
gcloud storage objects compose DoesThe gcloud storage objects compose command is used to concatenate multiple existing Cloud Storage objects within a bucket into a single composite object without downloading the data locally.
compose operates on objects already located in Cloud Storage; it cannot be used to upload local files or directories from an on-premises workstation.compose stitches multiple source blobs together into a single combined file.You had already uploaded multiple split chunk files into Cloud Storage and needed to combine them into a single unified archive file directly within the bucket.
Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated