From an on-premises server that contains D:\\Folder1, you need to copy the contents to the public container in the Azure Storage account contosodata. Which command should you run?
Choose an answer
Tap an option to check your answer.
Correct answer: azcopy copy D:\\folder1 https://contosodata.blob.core.windows.net/public --recursive.
Why this is the answer
The azcopy copy command is the correct choice for transferring files and directories to Azure Storage. The --recursive flag is essential here because D:\Folder1 represents a directory, and this flag ensures that all its contents, including subdirectories and files, are copied. The first option is just a URL and not a command. The azcopy sync command with --snapshot is used for synchronizing source and destination, which is not the primary goal here; sync also has different behavior regarding deletions. az storage blob copy start-batch is an Azure CLI command for copying blobs between storage accounts or within the same account, not directly from a local file system.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed