AZ-204 – Question 38

0
503
​DRAG-DROP –
You have an application that uses Azure Blob storage.
You need to update the metadata of the blobs.
Which three methods should you use to develop the solution? To answer, move the appropriate methods from the list of methods to the answer area and arrange them in the correct order.
Select and Place:
Correct Answer: 
Since we’re talking about updating the metadata,

– first we need to fetch it, to populate blob’s properties and metadata (we want to update it – without fetching we would just set the new metadata):
FetchAttributesAsync
– second, we need to manipulate the metadatas to update them and the best fitting is
Metadata.Add
– third, we have to persist our changes. We can use a method that initiates an asynchronous operation to update the blob’s metadata, which is

SetMetadataAsync