All jobs / Full-stack developer / DevOps Basics
Full-stack developer interview question · 0–1 years
A new developer spends two days getting the API, the database and the web client running on their laptop.
What would you set up so that the next one does not?
The strongest answer
A compose file that starts the database, the API and the client with one command and a little seed data, with versions pinned, so everybody runs the same stack
Why it works
Exactly — one command, real dependencies, pinned versions. Onboarding becomes a check that the stack starts, not a treasure hunt.
What a good answer covers
- One command to the whole stack.
- Real database, seeded data.
- Pin versions for everyone.
- Never pass .env files around.
Answers that fall short
- Close, but not the strongest: A written setup guide in the repository with the exact versions and the commands to install them
A guide rots quietly, and every manual step is a chance to install a different version from everyone else. - Weak: A shared development server that everybody connects to instead of running things locally
A shared environment means one person’s broken migration blocks the team, and nobody can experiment or work offline. - Red flag: Copy my .env file and my database dump over to them; that is the fastest way to a working laptop
Passing .env files around spreads credentials with no rotation and no record, and the dump may carry real customer data.
Who gets asked this
More DevOps Basics questions
- 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…
- Every PR gets a preview URL. The default env still has the production API base. What must a preview deploy…