exam questions

Exam AZ-203 All Questions

View all questions & answers for the AZ-203 exam

Exam AZ-203 topic 3 question 13 discussion

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

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?

  • 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.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
The Start-AzureStorageBlobCopy cmdlet starts to copy a blob.

Example 1: Copy a named blob -
C:\PS>Start-AzureStorageBlobCopy -SrcBlob "ContosoPlanning2015" -DestContainer "ContosoArchives" -SrcContainer "ContosoUploads"
This command starts the copy operation of the blob named ContosoPlanning2015 from the container named ContosoUploads to the container named
ContosoArchives.
References:
https://docs.microsoft.com/en-us/powershell/module/azure.storage/start-azurestorageblobcopy?view=azurermps-6.13.0

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
chaudh
Highly Voted 4 years, 10 months ago
why not C? The REST API for uploading is already supported. Also, coping with PowerShell or CLI seems not to be good choices for "real time" requirement.
upvoted 12 times
Bluediamond
4 years, 10 months ago
I tend to agree with you. Now if B said something like create a PS runbook that is set on a webhook connected to storage account then that would make sense.
upvoted 3 times
...
rrongcheng
4 years, 10 months ago
I think it's C too. As it uses storage REST API to upload to Container1, it's easy to do the same to put into Container2 at the same time to make it ' in real time'
upvoted 3 times
...
...
altafpatel1984
Most Recent 3 years, 6 months ago
If Start-AzureStorageBlobCopy is triggered by Event Grid then it make sense, which is not mentioned here so C is correct. For following question, since Event Grid is mentioned with Start-AzureStorageBlobCopy, that make sense: https://www.examtopics.com/discussions/microsoft/view/37714-exam-az-204-topic-3-question-24-discussion/
upvoted 2 times
...
Mehabooba
4 years, 4 months ago
The Put Blob operation creates a new block, page, or append blob, or updates the content of an existing block blob. Updating an existing block blob overwrites any existing metadata on the blob. The difference between the two is likely AzCopy is operating a bulk mode and Start-AzureStorageBlobCopy is operating serially due to piping the blobs in one by one, sending request to initiate the transfer
upvoted 1 times
...
Chilred
4 years, 5 months ago
There is a similar question in az204: https://www.examtopics.com/discussions/microsoft/view/37714-exam-az-204-topic-3-question-7-discussion/ In both the option C is available. So in choice between B and C, I would go with C
upvoted 1 times
Chilred
4 years, 5 months ago
Sorry, my fault. This are different questions....
upvoted 4 times
...
...
kirannep
4 years, 7 months ago
Anyone saying put, The Put Blob operation creates a new block, page, or append blob, or updates the content of an existing block blob. Answer is B because you want to copy in realtime even if it is ps script.
upvoted 3 times
...
Larry616
4 years, 9 months ago
Answer should be C B only makes sense if it was "Create a PS script and set it up by AZ Functions or Webjobs", but it's "Run PS ..." which means triggered manually and couldn't meet the "real time" requirement
upvoted 2 times
...
xsify
4 years, 10 months ago
Copy with Put Blob (C) requires more step, for example, Put Blob on page blob and append blob only initialize the blob, additional step is needed to copy the blob. So i think the answers is B. https://docs.microsoft.com/en-us/rest/api/storageservices/put-blob
upvoted 4 times
rrongcheng
4 years, 10 months ago
B doesn't meet the 'real-time' requirement. It has to be done by code.
upvoted 1 times
...
Kobee
4 years, 6 months ago
It uses a storage REST API to upload media, so the block type is a Block Blob, not a Page Blob (used for VM) and Append Blob (used to append data like logs) So I think the correct answer is C. For a block blob, the request body contains the content of the blob (see https://docs.microsoft.com/en-us/rest/api/storageservices/put-blob#request-body)
upvoted 1 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 ...