{ "query": "Which command copies all files from the local folder D:\\DataArchive to the public blob container in the mcnzdata storage account?", "options": [ { "text": "az storage blob copy start https://mcnzdata.blob.core.windows.net/public D:\\\\DataArchive", "explanation": "The storage blob copy start command initiates a server side copy and it is used for copying existing blobs rather than uploading local files.", "correct": false, "selected": false }, { "text": "azcopy copy D:\\\\DataArchive https://mcnzdata.blob.core.windows.net/public --recursive", "explanation": "AzCopy copy transfers files from a local folder to a blob container and the recursive flag includes subfolders.", "correct": true, "selected": false }, { "text": "az storage blob upload-batch D:\\\\DataArchive https://mcnzdata.blob.core.windows.net/public", "explanation": "The Azure CLI upload batch command sends multiple local files to a container in a single operation.", "correct": false, "selected": false } ], "answer": "

The correct answer is azcopy copy D:\\\\DataArchive https://mcnzdata.blob.core.windows.net/public --recursive.

azcopy copy D:\\\\DataArchive https://mcnzdata.blob.core.windows.net/public --recursive is correct because AzCopy is the high performance tool designed for bulk transfers and the command accepts a local source and a container URL as the destination. The --recursive flag causes all files and subfolders under the local folder to be copied. You may need to authenticate or append a SAS token to the destination URL before running the command.

az storage blob copy start https://mcnzdata.blob.core.windows.net/public D:\\DataArchive is incorrect because the storage copy start command is intended to initiate a server side copy from a source URL to a destination blob and it does not accept a local path as the source. The command is not the right choice for uploading local files into a container.

az storage blob upload-batch D:\\DataArchive https://mcnzdata.blob.core.windows.net/public is incorrect because the upload-batch syntax expects a container name as the destination or use of the -d parameter rather than a full container URL in that position. The Azure CLI upload commands also require appropriate account context or credentials and for large bulk uploads AzCopy is typically preferred for speed and reliability.

", "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/public
B. azcopy copy D:\\folder1 https://contosodata.blob.core.windows.net/public --recursive
C. azcopy sync D:\\folder1 https://contosodata.blob.core.windows.net/public --snapshot
D. az storage blob copy start-batch D:\\Folder1 https://contosodata.blob.core.windows.net/public", "domain": "Implement and manage storage", "hasImage": false, "queryImage": "", "queryImages": [], "deprecatedReference": false, "deprecatedMatches": {}, "qid": "71s", "tip": "

On the exam look for the tool that explicitly matches a local folder to a container URL and includes --recursive for directories. Remember that AzCopy is the preferred utility for high throughput uploads.

", "references": [ "https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-v10", "https://learn.microsoft.com/en-us/cli/azure/storage/blob?view=azure-cli-latest#az_storage_blob_upload_batch", "https://learn.microsoft.com/en-us/cli/azure/storage/blob?view=azure-cli-latest#az_storage_blob_copy_start" ], "video_url": "https://certificationation.com/videos/azure/az-104-admin-associate/azure-that-contains-a-folder-named-exam-071.html", "url": "https://certificationation.com/questions/azure/az-104-admin-associate/azure-that-contains-a-folder-named-exam-071.html" }