All jobs / Full-stack developer / DevOps Basics
Full-stack developer interview question · 3–5 years
A feature flag has been on for everyone for four months. Both code paths are still there.
When is the flag done?
The strongest answer
When the new path is default, the old path is deleted on both sides, and the flag key is gone from the catalogue — a permanent flag is a second codebase
Why it works
Exactly. Flags are rental. The ticket is not done at 100% — it is done when the dead branch is gone from JS and API.
What a good answer covers
- Launch, soak, delete both sides.
- 100% is the start of cleanup.
- A flag in only one layer is a trap.
- Catalogue hygiene is part of the feature.
Answers that fall short
- Close, but not the strongest: When we turn it on for 100% and leave the key 'in case'
'In case' is how you get eight ways to render checkout. - Weak: When the UI stops reading it; the API can keep the branch
A server branch nobody can turn off is still a landmine. - Red flag: Never; flags are documentation
Flags that never die are the opposite of documentation.
Who gets asked this
More DevOps Basics questions
- Every PR gets a preview URL. The default env still has the production API base. What must a preview deploy…
- Prod: 'submit does nothing'. API dashboards look calm. The SPA error rate ticked up after a mixed deploy…
- API 5xx is 0.1%. Users still report 'save failed' because the SPA cannot reach a new path. Which errors go in…
- Platform wants daily UI deploys and weekly API deploys from the same repo. When may UI and API ship on…
- 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?