Developing Solutions for Microsoft Azure (legacy) — Question 20
You develop an app that allows users to upload photos and videos to Azure storage. The app uses a storage REST API call to upload the media to a blob storage account named Account1. You have blob storage containers named Container1 and Container2.
Uploading of videos occurs on an irregular basis.
You need to copy specific blobs from Container1 to Container2 in real time when specific requirements are met, excluding backup blob copies.
What should you do?
Answer options
- A. Download the blob to a virtual machine and then upload the blob to Container2.
- B. Run the Azure PowerShell command Start-AzureStorageBlobCopy.
- C. Copy blobs to Container2 by using the Put Blob operation of the Blob Service REST API.
- D. Use AzCopy with the Snapshot switch blobs to Container2.
Correct answer: B
Explanation
The correct answer is B because the Start-AzureStorageBlobCopy command is specifically designed to copy blobs between containers within Azure Blob Storage in an efficient and straightforward manner. Option A involves unnecessary steps of downloading and uploading, which is inefficient. Option C does not provide a real-time solution as it does not facilitate copying between containers directly. Option D is not suitable because the Snapshot switch is used for managing blob snapshots, not for real-time blob copying.