exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 6 question 51 discussion

Actual exam question from Microsoft's AZ-204
Question #: 51
Topic #: 6
[All AZ-204 Questions]

HOTSPOT
-

You are developing an application to store millions of images in Azure blob storage.

The application has the following requirements:

• Store the Exif (exchangeable image file format) data from the image as blob metadata when the application uploads the image.
• Retrieve the Exif data from the image while minimizing bandwidth and processing time.
• Utilizes the REST API.

You need to use the image Exif data as blob metadata in the application.

Which HTTP verbs should you use? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Show Suggested Answer Hide Answer
Suggested Answer:

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
oCaio
Highly Voted 1 year, 8 months ago
Retrieve via HEAD because "For example, if your application needs the Exif (exchangeable image format) data from a photo, it can retrieve the photo and extract it. To save bandwidth and improve performance, your application can store the Exif data in the blob's metadata when the application uploads the photo. You can then retrieve the Exif data in metadata using only a HEAD request." Ref: https://learn.microsoft.com/en-us/azure/storage/blobs/storage-performance-checklist#use-metadata
upvoted 8 times
...
Fabiann
Highly Voted 1 year, 8 months ago
we want to store as Metadata : so PUT for set and GET/HEAD to retrieve. https://learn.microsoft.com/en-us/training/modules/work-azure-blob-storage/6-set-retrieve-properties-metadata-rest?ns-enrollment-type=learningpath&ns-enrollment-id=learn.wwl.develop-solutions-that-use-blob-storage
upvoted 7 times
the_odd_one
1 year, 6 months ago
I see where you come from on the link, however generally POST is for new data and PUT is for overriding existing data. When the question is phrased "Store the Exif (exchangeable image file format) data from the image as blob metadata when the application uploads the image." I lean towards using POST and not PUT
upvoted 2 times
...
...
overhill
Most Recent 5 months, 1 week ago
POST on the first box might made the most sense for most people but the right answer is PUT And HEAD for the second one to get the metadata
upvoted 1 times
...
yusuf_eb
8 months, 3 weeks ago
why PUT? While you might think POST sounds more logical, using PUT instead of POST is generally preferred for storing or updating data in Azure Blob Storage, and here's why: PUT: The PUT method is idempotent, meaning that making the same PUT request multiple times will result in the same outcome. This is ideal for uploading a file or setting metadata because it ensures consistency—if you PUT the same data again, it will simply overwrite the previous version. as for retrieval i would also say GET
upvoted 1 times
yusuf_eb
8 months, 3 weeks ago
For the second one i'm not sure tho
upvoted 1 times
...
...
sky_may
1 year, 3 months ago
answers are correct: https://learn.microsoft.com/en-us/rest/api/storageservices/get-blob-metadata?tabs=microsoft-entra-id#authorization https://learn.microsoft.com/en-us/rest/api/storageservices/set-blob-metadata?tabs=microsoft-entra-id#authorization https://learn.microsoft.com/en-us/azure/storage/blobs/storage-blob-properties-metadata
upvoted 2 times
...
130nk3r5
1 year, 4 months ago
To store Exif data, you should use the PUT verb. To retrieve Exif data, you should use the HEAD verb. Explanation: PUT is used to upload the blob to Azure Storage and set the blob's metadata at the same time. The metadata is sent in the headers of the PUT request. HEAD is used to retrieve the metadata of a blob without downloading the blob itself. This minimizes bandwidth and processing time as only the headers of the response (which contain the metadata) are sent.
upvoted 4 times
...
danisancho
1 year, 6 months ago
According to ChatGPT, first answer is correct: "When storing Exif data from an image as blob metadata in Azure Blob Storage, you can use the HTTP `PUT` method. This method is commonly used for uploading a resource to the specified URI, which in this case would be the URL of your Azure Blob Storage container. When making the `PUT` request, you can include the Exif data as metadata headers in the request to associate the metadata with the uploaded blob."
upvoted 1 times
...
Ciupaz
1 year, 7 months ago
Strange question and answers. The response should be POST and GET.
upvoted 2 times
...
kvtborad
1 year, 8 months ago
I got this question on 6th August 2023. chose highly voted first box: PUT, Second Box: POST. passed with 904. I got a Case study: city and Lights. All questions are from ExamTopics.
upvoted 4 times
...
NguyenDo
1 year, 9 months ago
Store can be PUT or POST, make no sense, I think Head for store and retrieve.
upvoted 3 times
...
Firo
1 year, 9 months ago
Store: Head (not sure) Retrieve: Head https://learn.microsoft.com/en-us/azure/storage/blobs/storage-performance-checklist#use-metadata
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago