Bird
0
0

What does the ETag header represent in a REST API response?

easy📝 Conceptual Q1 of 15
Rest API - Caching Strategies

What does the ETag header represent in a REST API response?

AThe content type of the resource
BA unique identifier for a specific version of a resource
CThe date and time the resource was last modified
DThe size of the resource in bytes
Step-by-Step Solution
Solution:
  1. Step 1: Understand the role of ETag in REST APIs

    ETag is used to identify a specific version of a resource uniquely.
  2. Step 2: Compare options with ETag purpose

    Only A unique identifier for a specific version of a resource correctly describes ETag as a unique version identifier.
  3. Final Answer:

    A unique identifier for a specific version of a resource -> Option B
  4. Quick Check:

    ETag = Unique version ID [OK]
Quick Trick: ETag tags resource versions uniquely for caching [OK]
Common Mistakes:
MISTAKES
  • Confusing ETag with Last-Modified header
  • Thinking ETag is resource size
  • Mixing ETag with content type

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes