AZ-203 Exam QuestionsBrowse all questions from this exam

AZ-203 Exam - Question 43


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?

Show Answer
Correct Answer: C

To copy specific blobs in real time from Container1 to Container2, you should use the Put Blob operation of the Blob Service REST API. This approach allows for programmatic control and immediate copying of blobs upon meeting specific requirements. Using the REST API ensures that the operation can be integrated directly into your application's existing upload process, maintaining real-time performance. While other methods such as PowerShell commands can start a copy operation, they do not inherently guarantee real-time execution as effectively as directly using the REST API for blob operations.

Discussion

7 comments
Sign in to comment
chaudh
Jul 12, 2020

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.

Bluediamond
Jul 17, 2020

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.

rrongcheng
Jul 22, 2020

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'

xsify
Jul 22, 2020

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

rrongcheng
Jul 29, 2020

B doesn't meet the 'real-time' requirement. It has to be done by code.

Kobee
Dec 2, 2020

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)

kirannep
Oct 12, 2020

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.

Larry616
Aug 23, 2020

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

altafpatel1984
Nov 24, 2021

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/

Chilred
Jan 6, 2021

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

Chilred
Jan 6, 2021

Sorry, my fault. This are different questions....

Mehabooba
Jan 13, 2021

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