InterviewTreedInterviewTreed

The question library

Technical interview questions and answers

Explore practical questions, clear explanations, and code examples across developer technologies.

Showing 193–204 of 3610 questions

AI Application EngineeringIntermediate1 min read

How do you track LLM costs?

Track input and output tokens, model prices, retries, embedding calls, reranking, and background ingestion by feature or tenant.

AI Application EngineeringIntermediate1 min read

How do you debug a bad AI answer?

Inspect the full trace: user input, prompt version, retrieval candidates, context assembly, tool calls, model response, and validation.

AI Application EngineeringAdvanced1 min read

How do you reduce LLM latency?

Reduce latency by selecting an appropriate model, trimming prompts, limiting unnecessary retrieval and tool calls, using streaming where helpful, and parallelizing independent operations.

AI Application EngineeringAdvanced1 min read

When is response caching unsafe?

Caching is unsafe when answers depend on user identity, permissions, fresh data, random choices, or side effects that must execute each time.

AI Application EngineeringAdvanced1 min read

What is model routing?

Model routing sends different requests to different models based on capability, cost, latency, or policy.

AI Application EngineeringIntermediate1 min read

What is token streaming?

Token streaming sends partial model output to the client as it is generated, reducing perceived waiting time.