Bird
0
0

You want to inform clients that an API endpoint is deprecated since March 1, 2024, and will be removed on June 1, 2024. Which headers should you include?

hard📝 Application Q8 of 15
Rest API - Versioning Strategies
You want to inform clients that an API endpoint is deprecated since March 1, 2024, and will be removed on June 1, 2024. Which headers should you include?
ADeprecation: true and Sunset: 2024-06-01
BDeprecation: 2024-03-01T00:00:00Z and Sunset: 2024-06-01T00:00:00Z
CSunset: 2024-03-01T00:00:00Z and Deprecation: 2024-06-01T00:00:00Z
DRetry-After: 2024-03-01 and Cache-Control: no-cache
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct header usage for deprecation and removal

    Deprecation header must have the date when deprecation started; Sunset header must have removal date.
  2. Step 2: Verify option correctness

    Deprecation: 2024-03-01T00:00:00Z and Sunset: 2024-06-01T00:00:00Z correctly assigns March 1 to Deprecation and June 1 to Sunset with proper ISO 8601 format.
  3. Final Answer:

    Deprecation: 2024-03-01T00:00:00Z and Sunset: 2024-06-01T00:00:00Z -> Option B
  4. Quick Check:

    Deprecation = start date, Sunset = removal date [OK]
Quick Trick: Deprecation date first, Sunset date second [OK]
Common Mistakes:
  • Swapping Deprecation and Sunset dates
  • Using boolean instead of date
  • Using unrelated headers for deprecation

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes