exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 3 question 30 discussion

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

HOTSPOT -
You are developing a web application by using the Azure SDK. The web application accesses data in a zone-redundant BlockBlobStorage storage account.
The application must determine whether the data has changed since the application last read the data. Update operations must use the latest data changes when writing data to the storage account.
You need to implement the update operations.
Which values should you use? To answer, select the appropriate option in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

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
tcybu
Highly Voted 2 years, 8 months ago
I think it should be: - ETag - server returns this tag for a resource to ensure we operate on the same version of the resource in subsequent API calls - If-Match - update is processed by the server only if the ETag provided matches the latest resource version ETag The reason for that is we want to make sure we update the latest version of a resource: "Update operations must use the latest data changes when writing" So, when using Last-Modified with If-Modified-Since, the operation executes only when another client modifies the resource between our READ and WRITE operations. If we wanted to use Last-Modified instead, we would need If-Unmodified-Since instead.
upvoted 45 times
Christian_garcia_martin
9 months, 3 weeks ago
i agree , good explanation.
upvoted 1 times
...
Tenk14
2 years, 8 months ago
I agree with you. (ETag + If-Match) https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match
upvoted 4 times
...
...
[Removed]
Highly Voted 2 years, 7 months ago
I referred to the documentation also and I cannot convince my mind I care enough to even understand this because there is no chance I will ever have to know these options in details unless I have to use it. Who reads and understands all these information when this is available as documentation and with Microsoft documentation it is all about trial and error and hoping for the best
upvoted 23 times
...
ns4098
Most Recent 7 months, 3 weeks ago
Based on the scenario where you need to implement update operations for a web application accessing data in a zone-redundant BlockBlobStorage storage account, the application must ensure it uses the latest data by checking whether the data has changed since it was last read. Here are the appropriate choices: 1. HTTP Header value: ETag Reason: The ETag (Entity Tag) is a unique identifier assigned to a specific version of a resource. It is used to determine if the data has changed since the last request. When you read the data, you get the ETag, and when performing update operations, you can compare the ETag to ensure you are working with the latest version of the data. 2. Conditional header: If-Match Reason: The If-Match header is used to perform operations only if the ETag of the resource matches the one specified in the request. This ensures that updates happen only if the resource hasn't been modified since it was last read, preventing overwrites of more recent updates.
upvoted 2 times
...
richardc7
1 year, 7 months ago
Got examn 28/09/23
upvoted 4 times
...
Nitin23
1 year, 7 months ago
both are wrong in given solution. Correct anser - etag and If-match
upvoted 2 times
...
LxstInNxght
1 year, 9 months ago
It's ETag and If-Match. The ETag (Entity Tag) is an HTTP header that represents a unique identifier for a version of the resource. When sending an update request, you can include the If-Match header with the ETag value of the data you previously read. If the current ETag of the resource matches the provided ETag, it means the data hasn't changed.
upvoted 2 times
...
[Removed]
1 year, 10 months ago
Correct answer
upvoted 1 times
...
calmriver44
2 years ago
It is Etag and If-Match check this page https://learn.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations for conditional header "If-Match" - We can specify ETag value. Specify this header to perform the operation only if the resource's ETag matches the value specified.
upvoted 2 times
...
adilkhan
2 years, 1 month ago
Etag and if-match ChatGPT
upvoted 1 times
...
kandrew5
2 years, 2 months ago
Since we also need the update to work which is a PUT operation the correct answer is ETag/If-Match
upvoted 1 times
...
mmdex
2 years, 2 months ago
ETag If-Match There are 2 possible options to validate an update against unwanted changes: - ETag + If-Match - Last-Modified + If-Unmodified-Since The second option is not available here, so it must be the first one. Besides, even if it was available, it would still be better to check ETag, because Last-Modified is weaker (it has only 1-second resolution, so it does not detect 2 changes within 1 second, so you cannot ensure you have the latest version) and I guess the zone-redundancy may also play some role in how Last-Modified is handled.
upvoted 3 times
...
tmndungu
2 years, 2 months ago
For those who have taken AZ-204 test, should I trust ExamTopics answers or the Community's answers?
upvoted 5 times
rgullini
2 years, 1 month ago
You should trust the discussions and other users experiencies. The default answers in the questions might be right or wrong.
upvoted 7 times
...
...
Esward
2 years, 3 months ago
Etag, If-Match are correct answers as per MS docs Optimistic concurrency: An application performing an update will, as part of its update, determine whether the data has changed since the application last read that data. For example, if two users viewing a wiki page make an update to that page, then the wiki platform must ensure that the second update does not overwrite the first update. It must also ensure that both users understand whether their update was successful. This strategy is most often used in web applications. https://learn.microsoft.com/en-us/azure/storage/blobs/concurrency-manage?tabs=dotnet
upvoted 4 times
...
Dotar
2 years, 4 months ago
I think it should be E-tag and if-none-match. See the following source on how e-tag works: https://en.wikipedia.org/wiki/HTTP_ETag
upvoted 1 times
...
Skelletcz
2 years, 4 months ago
I think the answer is correct. The question is asking explicitly if "data changed since the application last read the data", so we must evaluate against the date, hence If-Modified-Since.
upvoted 2 times
...
AsuraX
2 years, 4 months ago
Answer is correct - in my opinion. - ETag - The ETag (or entity tag) HTTP response header is an identifier for a specific version of a resource. (Version!) - Last-Modified - The Last-Modified response HTTP header contains a date and time when the origin server believes the resource was last modified. (Date and Time!) (Source: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers) In Question: The application must determine whether the data has changed since the application last read the data. My understanding: We are working on dates, not versions! So, Last-Modified and If-Modified-Since are better options. PS: I honestly have no idea why I need to know this for Azure Certification Exam :((
upvoted 7 times
...
capable
2 years, 5 months ago
Got this question in the exam 27/11/2022, anyone, please mention the correct answer and explain
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