All jobs / Full-stack developer / DevOps Basics
Full-stack developer interview question · 5+ years
Platform wants daily UI deploys and weekly API deploys from the same repo.
When may UI and API ship on different clocks?
The strongest answer
When the contract is additive, the window is explicit, and each side can roll back alone — lockstep only when you are mid-contract
Why it works
Exactly. Independent deploys are earned by compatibility. A monorepo is a source layout, not a release train. Lockstep is a tool you pick for a breaking hour, not a lifestyle.
What a good answer covers
- Independent when the wire stays compatible.
- Lockstep for the breaking hour only.
- Monorepo ≠ monolith release.
- Rollback each side without the other when you can.
Answers that fall short
- Close, but not the strongest: Always independently; coupling is a mindset
Independence without a contract is two teams breaking each other at 4pm. - Weak: Never; a monorepo means one deploy artefact
One repo can still emit two artefacts with two rollback buttons. - Red flag: Independently, and the API may delete fields the same day — the UI will error and we will know
Using production errors as a deploy signal is a user-funded test.
Who gets asked this
More DevOps Basics questions
- What would you set up so that the next one does not?
- Someone wants to put the API URL and the database password in `.env` for Vite. What can go in the frontend…
- A user says 'save failed'. You have UI logs and API logs and no join. How do you trace one click?
- You are deploying a SPA and its API for the first time on the same domain. How do you host them?
- How do you make it smaller, and what should not be in it at all?
- APM shows fast API spans. Users still wait two seconds after click. How do you see one click in the tracer?
- The pipeline builds the client three times, once per environment, because the API URL is baked in at build…
- A feature flag has been on for everyone for four months. Both code paths are still there. When is the flag…