Bird
0
0

Given this API change: adding a new required field to the user creation endpoint without versioning, what is the likely result for existing clients?

medium📝 Predict Output Q13 of 15
Rest API - Versioning Strategies
Given this API change: adding a new required field to the user creation endpoint without versioning, what is the likely result for existing clients?
AThe API will automatically update clients to send the new field.
BExisting clients will continue working without any issues.
CThe API will ignore the missing field and use a default silently.
DExisting clients will break because they don't send the new required field.
Step-by-Step Solution
Solution:
  1. Step 1: Understand impact of adding required fields without versioning

    Adding a required field means clients must send it or the API rejects the request.
  2. Step 2: Predict behavior for old clients

    Old clients don't send the new field, so their requests fail, causing breakage.
  3. Final Answer:

    Existing clients will break because they don't send the new required field. -> Option D
  4. Quick Check:

    Adding required field breaks old clients = D [OK]
Quick Trick: New required fields break old clients without versioning [OK]
Common Mistakes:
  • Assuming API auto-fills missing required fields
  • Thinking old clients keep working unchanged
  • Believing API updates clients automatically

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes