Bird
0
0

If a REST API response includes:

medium📝 Predict Output Q5 of 15
Rest API - Versioning Strategies
If a REST API response includes:
Deprecation: 2023-12-31T00:00:00Z
Sunset: 2024-01-31T00:00:00Z

What should a client ideally do after January 31, 2024?
AStop using the deprecated API and switch to the new version
BContinue using the API as usual
CIgnore the headers and retry later
DSend a request to extend the API usage
Step-by-Step Solution
Solution:
  1. Step 1: Understand the Sunset header meaning

    Sunset date indicates when the API will be removed and no longer supported.
  2. Step 2: Determine client action after Sunset date

    Clients should stop using the API after the Sunset date and migrate to alternatives.
  3. Final Answer:

    Stop using the deprecated API and switch to the new version -> Option A
  4. Quick Check:

    After Sunset date = stop using API [OK]
Quick Trick: After Sunset date, stop using deprecated API [OK]
Common Mistakes:
  • Continuing to use removed API
  • Ignoring Sunset header
  • Assuming Sunset means temporary downtime

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes