
Answer-first summary for fast verification
Answer: Azcopy copy with a recursive flag to include all files in the directory.
The correct command to copy the contents of D:\Folder1 to the public container in the Azure Storage account 'contosodata' is 'azcopy copy D:\folder1 https://contosodata.blob.core.windows.net/public --recursive'. This command will copy the directory and all of its files to the blob container, ensuring the structure is preserved. Options A, B, and D are incorrect for the following reasons: A is just a URL and not a command; B is an azcopy sync command which replicates the source to the destination but skips files based on modification times; D uses az storage blob copy start-batch which is meant for copying multiple blobs rather than a directory. Therefore, option C is the correct answer.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Which command should be used to copy the contents of an on-premises folder D:\Folder1 to a public container in an Azure Storage account named 'contosodata'?
A
A URL link to the Azure Storage account.
B
Azcopy sync with a flag that skips files if the destination's last modified time is more recent.
C
Azcopy copy with a recursive flag to include all files in the directory.
D
Az storage blob copy start-batch for copying multiple blobs to a container.
No comments yet.