AZ-104 Question 90
Single answerYou are the Azure Administrator for Contoso. You need to move tens of thousands of backup files from an on-premises server to an Azure Blob storage container. The solution must preserve the folder structure, handle the large volume of data efficiently, and provide transfer logs for auditing. Which approach should you choose?
- A
Use Azure Storage Explorer in GUI mode without generating any logs
- B
Use AzCopy with the sync command, specifying recursive parameters and a log file path
- C
Use AzCopy with the copy command and limit the upload to a single file at a time
- D
Use a custom script that invokes Azure CLI, avoiding any log generation to reduce disk usage
Show answer and explanation
Correct answer: B
Explanation
AzCopy is a specialized command-line tool optimized for bulk data movement. Its sync command supports recursive uploads, preserving subfolders and file paths, while the --log-file parameter generates logs for auditing and troubleshooting, making this the most suitable option.
- A. Incorrect.
Azure Storage Explorer can upload files, but if you do not configure specific options, it won't preserve detailed logs automatically. It also may not be as efficient for a large volume of data compared to AzCopy.
- B. Correct.
The AzCopy sync command with a log file path and recursive parameters is designed for bulk transfers, preserves directory structures, and creates logs for auditing and troubleshooting.
- C. Incorrect.
Using AzCopy with the copy command but limiting transfers to a single file at a time is highly inefficient for tens of thousands of files and does not necessarily guarantee full directory structure preservation without recursive flags.
- D. Incorrect.
A custom script leveraging the Azure CLI without logs might simplify code, but it would not provide the required file-level auditing and tracking features.