Bird
0
0

You see this HTTP response header:

medium📝 Debug Q14 of 15
Rest API - Versioning Strategies
You see this HTTP response header:
Deprecation: 2024-05-01T00:00:00Z
Sunset: 2024-04-30T23:59:59Z

What is wrong with this deprecation communication?
AThe Sunset date is before the Deprecation date, which is illogical
BThe Deprecation header is missing a reason message
CThe Sunset header should not be used with Deprecation
DThe dates are in the wrong format
Step-by-Step Solution
Solution:
  1. Step 1: Compare the Deprecation and Sunset dates

    The Deprecation date is 2024-05-01, but the Sunset date is 2024-04-30, which is before deprecation starts.
  2. Step 2: Understand logical order

    Deprecation should start before Sunset (removal). Having Sunset before Deprecation is illogical and confusing.
  3. Final Answer:

    The Sunset date is before the Deprecation date, which is illogical -> Option A
  4. Quick Check:

    Sunset must be after Deprecation [OK]
Quick Trick: Sunset date must be after Deprecation date [OK]
Common Mistakes:
  • Ignoring date order
  • Thinking reason message is mandatory
  • Assuming Sunset and Deprecation can't coexist

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes