All jobs / Full-stack developer / End-to-End Architecture
Full-stack developer interview question · 1–3 years
The same `/projects` powers the website and a native app that ships through an app store.
How do you keep one API honest?
The strongest answer
Version or capability flags, additive fields, and contract tests for each client — never a web-only breaking change that 'mobile can catch up'
Why it works
Exactly. Two clients make compatibility a weekly job. Additive changes and consumer tests beat a second stack.
What a good answer covers
- One API, many consumers, additive by default.
- Capability flags beat silent User-Agent forks.
- Contract-test each client.
- A BFF is allowed when the shape truly splits — not as a tantrum.
Answers that fall short
- Close, but not the strongest: Ship whatever the web app needs this sprint; mobile will adapt
Mobile release trains are slower. A web-only break is an app-store incident. - Weak: A separate API per client from day one
Two APIs double the work you were trying to share. Split only when the shapes truly diverge (a BFF). - Red flag: Inspect the User-Agent and change the JSON shape
User-Agent branching is an untestable second contract.
Who gets asked this
More End-to-End Architecture questions
- The server needs to push status updates to the browser, and the client never sends anything back on that…
- You deploy API and UI. Support still sees errors from a field you renamed. What do you assume after a deploy?
- You need to change `amount` from a string to a number. How do you version without stranding the UI?
- You want to rename `title` to `headline` on a resource the SPA already ships. How do you roll the rename?
- What do you say, and when should the prompt appear?
- Every click on a table of 40 rows fires OPTIONS then GET, and it shows on slow networks. How do you stop the…
- You are tired of the form accepting a payload the API 400s. Where does the schema live?
- The marketing layout SSR-renders a 'Your workspace' header for logged-in people. How does the server render a…