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.
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
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
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
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
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.
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.
mlantonis
Highly Voted 2 years, 6 months agonaveener
Highly Voted 3 years, 5 months agoShailen
2 years, 5 months agoAniruddha_dravyakar
Most Recent 2 months, 2 weeks agoiamchoy
2 months, 3 weeks agoUmbongoDrink
10 months agozellck
10 months, 1 week agozellck
10 months, 1 week agoNaoVaz
1 year, 2 months agoEmnCours
1 year, 3 months agoLazylinux
1 year, 5 months agoepomatti
1 year, 7 months agotechie_11
1 year, 8 months agobenvdw
1 year, 9 months agoInvisibleShadow
1 year, 9 months ago[Removed]
1 year, 9 months agosid132
1 year, 9 months agoWS_21
1 year, 9 months ago