All jobs / Full-stack developer / DevOps Basics
Full-stack developer interview question · 3–5 years
APM shows fast API spans. Users still wait two seconds after click.
How do you see one click in the tracer?
The strongest answer
The browser starts or continues a W3C `traceparent`; the BFF and API create child spans; the UI error shows the trace id
Why it works
Exactly. User-perceived latency is a frontend span plus everything after. Breaking the parent at the edge is how you never see the join.
What a good answer covers
- Propagate `traceparent` from the click.
- One trace, many spans, including the BFF.
- Surface the id to support.
- Do not start a fresh root on every hop.
Answers that fall short
- Close, but not the strongest: The API starts a new trace per hop so services stay 'decoupled'
Decoupling is not deleting the parent id. You still propagate context. - Weak: We log the user agent and guess
User-Agent is not a trace. - Red flag: We only trace the backend; frontend time is a Chrome problem
If the spinner is the complaint, a backend-only trace is a partial answer.
Who gets asked this
More DevOps Basics questions
- 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…
- 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…