All jobs / Full-stack developer / DevOps Basics
Full-stack developer interview question · 1–3 years
A user says 'save failed'. You have UI logs and API logs and no join.
How do you trace one click?
The strongest answer
A request id (or `traceparent`) the UI sends or echoes, the API logs, and the error screen can show — one string across browser, gateway and service
Why it works
Exactly. Correlation is a header, not a hunt. W3C Trace Context is the 2026 default; a UUID you log both sides is the minimum.
What a good answer covers
- One id on the way in, the same id in every log.
- Prefer `traceparent`; accept a `X-Request-Id`.
- Show it on the error screen so support can search.
- Do not debug prod with email and a clock.
Answers that fall short
- Close, but not the strongest: Ask the user for a screenshot of the Network tab
Screenshots do not reach server spans. - Weak: Grep production logs for the user's email around that minute
Time-plus-email is how you page the wrong row and leak PII in Slack. - Red flag: Add more `console.log` in React and ship it
Browser logs are not your production backend.
Who gets asked this
More DevOps Basics questions
- 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…
- 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…