Developing Solutions for Microsoft Azure (AZ-204) Practice Exam

Disable ads (and more) with a membership for a one time $2.99 payment

Developing Solutions for Microsoft Azure Exam. Prepare with flashcards and multiple choice questions, get hints and explanations for each question. Ace your test prep!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


Which standard HTTP header is supported for both containers and blobs when setting properties using REST?

  1. Content-Length

  2. Last-Modified

  3. Origin

  4. Authorization

The correct answer is: Last-Modified

The correct choice is based on the fact that the Last-Modified HTTP header is used to indicate the last time a resource was modified. This header is supported for both Azure Blob Storage and Azure Container instances. When dealing with REST APIs for these services, tracking when the data was last changed is essential for caching, synchronization, and avoiding data inconsistency issues. In Azure Blob Storage, the Last-Modified header is automatically set when a blob is created or updated, allowing clients to determine if they have the latest version of a resource. Similarly, for container-level operations, the Last-Modified header provides information about the last time the container's properties were modified. While the other headers listed have their own specific use cases, they do not share broad applicability for both containers and blobs in the same manner as the Last-Modified header does. Content-Length pertains more to the size of the payload being transferred, while Origin is primarily used for cross-origin requests, and Authorization is related to security aspects for accessing resources. Thus, the Last-Modified header is the one that aligns with both containers and blobs regarding property management in RESTful interactions.