📁 Sangam Dhakal - Portfolio v2.0 - Netscape Navigator 4.0
_
□
×

📚 Interview question

How do you introduce a stricter validation rule on a live API without breaking existing clients?

Senior Theory Advanced

🎯 Key points

  • Log-only (shadow) mode with a metric per client
  • Identify affected clients from data
  • Notice period and direct contact
  • Enforce in a new version or after the date
  • Security fixes are the exception

⏱ 30-second answer

Ship the rule in log-only mode first: evaluate it, record a metric and log the client id when a request would fail, but still accept it. After a few weeks you know exactly which clients send non-conforming data. Contact them, give a date, optionally return a warning header, then enforce in the next major version or after the notice period. Security-driven rules are the exception and ship immediately with direct communication.

🔍 What the interviewer is checking

Checks practical migration technique: measure, communicate, enforce.

↩ Usually asked after

More in API Design

Last updated 23 Nov 2026.

🌐 Sangam's Webring

⏪ Previous 🏠 Main Next ⏩
💬 Chat with me