Technical practice
How would you design state management, memory handling, and retry logic for a multi-step LangGraph workflow?
What to coverSource-backed topic (LangGraph state, retries, memory). Explain how you structure typed graph state, separate short-term thread checkpointing from long-term memory, and bound retry loops with exponential backoff or fallback edges when an LLM or tool step fails.
How do you architect a scalable FastAPI service that streams responses from a multi-step agentic workflow?
What to coverSource-backed topic (FastAPI, streaming responses, async programming). Discuss using asynchronous endpoints with Server-Sent Events (SSE) or streaming generators, propagating cancellation on client disconnect, and emitting structured intermediate status events alongside final token streams.
What mechanisms ensure secure tool calling when an LLM agent integrates with external systems?
What to coverSource-backed topic (secure tool calling, safe tool execution). Cover strict schema validation on model-generated arguments, least-privilege authentication scoped to the requesting user, allowlisting permissible actions, and human-in-the-loop approval gates for state-mutating calls.
How do you design an end-to-end RAG ingestion and retrieval pipeline to prevent stale data and poor recall?
What to coverSource-backed topic (RAG, document ingestion, embeddings, vector databases, reliable data pipelines). Address document parsing and chunking boundaries, metadata filtering, incremental re-indexing or upsert strategies, and trade-offs between dense vector similarity and hybrid keyword retrieval.
How do you layer guardrails against prompt injection and PII leakage without adding prohibitive latency?
What to coverSource-backed topic (prompt injection, PII detection, latency reduction). Explain defending against both direct user injections and indirect injections hidden in retrieved RAG documents, masking PII prior to external LLM calls, and running lightweight classifiers concurrently with primary requests.
What telemetry and tracing signals are essential for debugging and monitoring multi-step LLM applications in production?
What to coverSource-backed topic (observability tools, error handling). Detail capturing hierarchical trace spans per graph node and tool call, logging token usage, latency breakdowns, retrieval scores, and structured error classifications to isolate where reasoning or external integrations degrade.
How do you combine caching, model routing, and concurrency to reduce LLM latency and token costs?
What to coverSource-backed topic (caching, model routing, concurrency). Contrast exact-match versus semantic caching (and cache invalidation risks), discuss routing simple intents to smaller, faster models while reserving larger models for complex reasoning, and explain parallelizing independent sub-tasks.
How do you structure A/B testing to validate quality improvements in non-deterministic Gen AI workflows?
What to coverSource-backed topic (A/B testing for quality improvements). Address consistent traffic splitting by user or session, pairing automated offline evaluation datasets with online business metrics, latency, and cost per task, and handling non-deterministic output variance before promoting changes.
Behavioural practice
Tell me about a time you collaborated across product, data, and platform teams to move an AI or backend service into production.
What to coverSource-backed context (cross-functional collaboration with product, data, and platform teams). Using Situation, Action, and Result, describe how you aligned ambiguous problem statements with data availability, API contracts, and infrastructure constraints to ship a reliable service.
Describe a production incident or reliability failure in a data pipeline or API service and how you resolved it.
What to coverSource-backed context (reliable data pipelines, observability, error handling). Using Situation, Action, and Result, explain how you detected the issue through monitoring, mitigated downstream impact, and implemented structural safeguards such as retries, validation, or alerts.
Share an example where you had to balance system latency or operating cost against output quality.
What to coverSource-backed context (latency/token reduction vs. quality improvements). Using Situation, Action, and Result, highlight the concrete trade-offs you evaluated—such as caching, routing, or architectural changes—and how you measured the resulting impact.
Tell me about a time you identified and mitigated a security, privacy, or data-safety risk in an application before or after launch.
What to coverInferred seniority scenario grounded in stated guardrail duties (prompt injection, PII detection, safe tool execution). Using Situation, Action, and Result, show how you assessed the risk boundary, implemented controls without breaking legitimate user workflows, and verified effectiveness.