Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam AZ-104 topic 3 question 45 discussion

Actual exam question from Microsoft's AZ-104
Question #: 45
Topic #: 3
[All AZ-104 Questions]

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?

  • A. https://contosodata.blob.core.windows.net/public
  • B. azcopy sync D:\folder1 https://contosodata.blob.core.windows.net/public --snapshot
  • C. azcopy copy D:\folder1 https://contosodata.blob.core.windows.net/public --recursive
  • D. az storage blob copy start-batch D:\Folder1 https://contosodata.blob.core.windows.net/public
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
The azcopy copy command copies a directory (and all of the files in that directory) to a blob container. The result is a directory in the container by the same name.
Incorrect Answers:
B: The azcopy sync command replicates the source location to the destination location. However, the file is skipped if the last modified time in the destination is more recent.
D: The az storage blob copy start-batch command copies multiple blobs to a blob container.
Reference:
https://docs.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-blobs https://docs.microsoft.com/en-us/azure/storage/common/storage-ref-azcopy-copy

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
mlantonis
Highly Voted 2 years, 11 months ago
Correct Answer: C A: URL of the Storage Account. B: The azcopy sync command replicates the source location to the destination location. However, the file is skipped if the last modified time in the destination is more recent. C: The azcopy copy command copies a directory (and all the files in that directory) to a blob container. The result is a directory in the container by the same name. D: The az storage blob copy start-batch command copies multiple blobs to a blob container. Reference: https://docs.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-blobs https://docs.microsoft.com/en-us/azure/storage/common/storage-ref-azcopy-copy
upvoted 134 times
...
naveener
Highly Voted 3 years, 9 months ago
copies a directory (and all of the files in that directory) to a blob container:- azcopy copy 'C:\myDirectory' 'https://mystorageaccount.blob.core.windows.net/mycontainer' --recursive To copy to a directory within the container :- azcopy copy 'C:\myDirectory' 'https://mystorageaccount.blob.core.windows.net/mycontainer/myBlobDirectory' --recursive
upvoted 40 times
Shailen
2 years, 9 months ago
Basically given answer is correct.
upvoted 4 times
...
...
tashakori
Most Recent 1 month ago
C is right
upvoted 1 times
...
Amir1909
1 month, 3 weeks ago
C is correct
upvoted 1 times
...
NU88
3 months, 3 weeks ago
I personally feel none of them is correct command. The C barely is close but can't run successfully. The Blob storage needs to be accessed with authentication. In this case a SAS string on the container needs to be attached to the command.
upvoted 1 times
mantik
3 months, 3 weeks ago
You can use env variable to auth with sas token ;-)
upvoted 1 times
...
...
Aniruddha_dravyakar
6 months, 4 weeks ago
Answer is C
upvoted 1 times
...
iamchoy
7 months ago
Selected Answer: C
The correct command to recursively copy all contents of `D:\Folder1` to the specified Azure Blob container is: C. `azcopy copy D:\folder1 https://contosodata.blob.core.windows.net/public --recursive` Here's the breakdown: - `azcopy copy`: This command is used to copy data. - `D:\folder1`: This is the source directory. - `https://contosodata.blob.core.windows.net/public`: This is the destination URL of the blob container. - `--recursive`: This flag ensures that the operation goes through all directories and subdirectories in the source to copy the data. Remember to make sure you are authenticated with `azcopy` (using `azcopy login` or another authentication method) and have the necessary permissions to access the target blob container.
upvoted 1 times
...
UmbongoDrink
1 year, 2 months ago
Selected Answer: C
C) " azcopy copy D:\folder1 https://contosodata.blob.core.windows.net/public --recursive" Reference: https://docs.microsoft.com/en-us/azure/storage/common/storage-ref-azcopy-copy
upvoted 4 times
...
zellck
1 year, 2 months ago
Same as question 51. https://www.examtopics.com/discussions/microsoft/view/93898-exam-az-104-topic-3-question-51-discussion
upvoted 1 times
...
zellck
1 year, 2 months ago
Selected Answer: C
C is the answer. https://learn.microsoft.com/en-us/azure/storage/common/storage-ref-azcopy-copy Copies source data to a destination location
upvoted 1 times
...
NaoVaz
1 year, 7 months ago
Selected Answer: C
C) " azcopy copy D:\folder1 https://contosodata.blob.core.windows.net/public --recursive" Reference: https://docs.microsoft.com/en-us/azure/storage/common/storage-ref-azcopy-copy
upvoted 2 times
...
EmnCours
1 year, 7 months ago
Selected Answer: C
Correct Answer: C
upvoted 1 times
...
Lazylinux
1 year, 10 months ago
Selected Answer: C
I C so i agree
upvoted 3 times
...
epomatti
1 year, 12 months ago
Selected Answer: C
azcopy recursive - C is correct
upvoted 2 times
...
techie_11
2 years ago
On exam 4/12/2022. Answer is correct
upvoted 2 times
...
benvdw
2 years, 1 month ago
on exam 13/3/2022
upvoted 3 times
...
InvisibleShadow
2 years, 1 month ago
This question came in the exam today 8/Mar/2022. I passed the exam, 95% questions came from here.
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...