{ "query": "You have an on premise Windows server that contains a directory named D:\\DataArchive and you must transfer all of its files to the public container in an Azure Storage account called mcnzdata. Which command should you run?", "options": [ { "text": "az storage blob upload-batch D:\\DataArchive https://mcnzdata.blob.core.windows.net/public", "explanation": "This Azure CLI upload batch command sends multiple files from a local folder to a storage container in a single operation.", "correct": false, "selected": false }, { "text": "azcopy copy D:\\DataArchive https://mcnzdata.blob.core.windows.net/public --recursive", "explanation": "AzCopy copy moves files between a local folder and a blob container and the recursive flag causes it to include subfolders and their contents.", "correct": true, "selected": false }, { "text": "az storage blob copy start https://mcnzdata.blob.core.windows.net/public D:\\DataArchive", "explanation": "The storage blob copy start command triggers a server side copy that is intended for copying blobs within or between storage accounts.", "correct": false, "selected": false }, { "text": "azcopy sync D:\\DataArchive https://mcnzdata.blob.core.windows.net/public --snapshot", "explanation": "AzCopy sync is designed to make a destination match a source by copying changes and deletions rather than performing a simple one time upload.", "correct": false, "selected": false } ], "answer": "
The correct option is azcopy copy D:\\DataArchive https://mcnzdata.blob.core.windows.net/public --recursive.
azcopy copy is the right choice because AzCopy is the high performance tool designed for moving large sets of files from a local path to Azure Storage and the --recursive flag instructs it to transfer all files and subfolders under D:\\DataArchive. The command accepts a local directory as the source and a container URL as the destination which matches the requirement to upload everything to the public container.
az storage blob upload-batch D:\\DataArchive https://mcnzdata.blob.core.windows.net/public is incorrect because the Azure CLI batch upload command expects parameters like --source and --destination or a container name and account details rather than a bare URL in that position. The shown syntax would not be valid and the Azure CLI upload-batch is generally less optimized for very large high performance transfers than AzCopy.
az storage blob copy start https://mcnzdata.blob.core.windows.net/public D:\\DataArchive is incorrect because the copy start command performs a server side copy from a source URL to a specific blob in storage and it cannot read directly from a local file path. The command also expects a destination blob name rather than a local directory.
azcopy sync D:\\DataArchive https://mcnzdata.blob.core.windows.net/public --snapshot is incorrect because sync is intended to mirror differences between source and destination and the presented flag is not appropriate for a simple full upload. To copy an entire local directory tree the recommended and explicit command is the AzCopy copy form with the recursive option.
", "batch_id": "202", "answerCode": "2", "type": "multiple-choice", "originalQuery": "You have an on-premises server that contains a folder named D:\\Folder1. You need to copy the contents of D:\\Folder1 to the public container in an Azure Storage account named contosodata. Which command should you run?", "originalOptions": "A. az storage blob copy start D:\\Folder1 https://contosodata.blob.core.windows.net/publicWhen the question involves moving an entire local directory to a blob container look for AzCopy commands and the --recursive flag as strong indicators of the correct choice.
", "references": [ "https://learn.microsoft.com/azure/storage/common/storage-use-azcopy-v10", "https://learn.microsoft.com/azure/storage/common/storage-ref-azcopy-copy", "https://learn.microsoft.com/cli/azure/storage/blob?view=azure-cli-latest#az_storage_blob_upload_batch" ], "url": "https://certificationation.com/questions/azure/az-104-admin-associate/azure-that-contains-a-folder-named-exam-071.html", "video_url": "https://certificationation.com/videos/azure/az-104-admin-associate/azure-that-contains-a-folder-named-exam-071.html" }