All jobs / AI engineer / AI Observability
AI engineer interview question · 0–1 years
To debug a chatbot, a teammate adds a line that writes every full prompt and response into the general application log.
What concerns you, and what do you suggest?
The strongest answer
Prompts carry whatever users type — names, health details, pasted secrets — and that log is widely readable and kept a long time; I would mask sensitive fields, restrict access and set a retention period
Why it works
Exactly — a prompt log is a store of user data. Treat it like one: minimise, restrict, expire.
What a good answer covers
- Logged prompts are user data.
- Mask sensitive fields before storing.
- Restrict who can read traces.
- Set a retention period.
Answers that fall short
- Close, but not the strongest: Switch it off in production entirely and debug only on staging, where the data is fake
Safe, but you lose the ability to debug real failures. Masking, access control and retention let you keep traces without keeping everything. - Weak: The log files will grow quickly, so we should truncate each prompt to save disk space
Disk is the cheap problem. The costly one is personal data and secrets sitting in a log many people can read. - Red flag: Nothing — it is our own log on our own servers, so what users typed is ours to keep
Owning the server does not make the data yours to keep without limit. An interviewer hears a future incident report.
Who gets asked this
More AI Observability questions
- A user reports that your agent gave a confidently wrong answer yesterday. All you stored was the final…
- Your LLM bill doubled this month while the number of requests stayed flat. How do you find out why?
- Complaints about answer quality jumped this week, and your team deployed nothing. How does your observability…
- You have a few hundred traces that users marked as bad. How do you turn them into improvements?
- Error-rate and latency alerts are already in place for your LLM feature. What else do you monitor in…
- What do you record for each LLM call so that you can debug it later?