Bird
0
0

Given the following REST API response headers, which constraint is being applied?

medium📝 Predict Output Q13 of 15
Rest API - REST API Fundamentals
Given the following REST API response headers, which constraint is being applied?
Cache-Control: max-age=3600
ETag: "abc123"
ACacheability
BUniform Interface
CStatelessness
DClient-Server
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the headers Cache-Control and ETag

    Cache-Control and ETag headers control how responses are cached by clients or intermediaries.
  2. Step 2: Identify the REST constraint related to caching

    Cacheability means responses can be stored and reused to improve performance.
  3. Final Answer:

    Cacheability -> Option A
  4. Quick Check:

    Cache headers = Cacheability [OK]
Quick Trick: Cache headers indicate cacheability constraint [OK]
Common Mistakes:
  • Confusing cache headers with statelessness
  • Thinking uniform interface relates to headers
  • Assuming client-server means caching

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes