All jobs / Full-stack developer / Testing
Full-stack developer interview question · 5+ years
Every dashboard is green, and a customer emails to say sign-up has been broken since the morning.
What would you run against production itself, and what must such a check never do?
The strongest answer
A scripted journey — sign in, load the dashboard, complete the key action — run every few minutes from outside and alerting on failure or latency, on a dedicated test tenant, never real customers or payments
Why it works
Exactly — dashboards say the parts are alive; a synthetic journey says the product works, and the test tenant is what makes it safe.
What a good answer covers
- Watch the journey, not the process.
- Run it from outside, on a schedule.
- Alert on failure and on latency.
- Dedicated tenant; never real money.
Answers that fall short
- Close, but not the strongest: A health endpoint that checks the database and the queue, polled by the uptime monitor
A health check proves the process can reach its dependencies, not that a person can sign up. - Weak: More alerts on CPU and memory, so we know when the servers are unhappy
Infrastructure metrics stay green through most product outages; they are a symptom channel, not a user one. - Red flag: The full end-to-end suite after every deploy, so we know the real thing works
A full write suite in production creates real records, emails and charges; that is how a test becomes an incident.
Who gets asked this
More Testing questions
- You inherit a slow, flaky suite the team has learned to ignore. What is your strategy for the next quarter?
- You built a feature that touches a React screen and two API endpoints. Which tests do you write, and where?
- You are writing your first tests for a POST endpoint. What do you actually assert?
- How do you keep the real API out of a component test without the test drifting from the real thing?
- Do you test this against a real database or against a mocked repository?
- How do you test the parts that are not a request — an incoming webhook and a nightly job?
- Someone deleted a required field and merged because the unit tests still passed. What should CI do?
- The end-to-end suite passes alone and fails when it runs in parallel. What is wrong with the test data, and…