AI Infra Interviews logo

Databricks LLM Inference & Serving interview questions

Databricks documents dedicated serving capacity in model units for provisioned foundation-model endpoints. Use the endpoint’s actual capacity model when translating a traffic forecast into a serving plan. Questions tagged to Databricks appear first, followed by additional practice from our LLM Inference & Serving track. Company tags indicate preparation relevance, not confirmed interview appearances. Confirm the current interview format with your recruiter.

Size an endpoint from a representative workload

  1. Measure the request mix. Record prompt lengths, output lengths, concurrency and the latency target. Compare capacity settings using that same mix; a count of model units is not a universal tokens-per-second conversion.
  2. Test the burst and the change. Measure queue growth during a burst and the behavior of a deployment update. Increase capacity when the service misses its target, then check whether a model or configuration change caused the regression first.

Sources: Databricks provisioned model serving. Reviewed .

Start with the first company-tagged practice question · Continue through the full topic track. Check each resource’s access level.

LLM Inference & Serving questions tagged to Databricks

1 questions · 0 unlocked for you

Additional LLM Inference & Serving practice

These questions cover the same topic and are not tagged to Databricks. Use them to practise applying the ideas in a different situation.

15 questions · 10 unlocked for you

Concepts for LLM Inference & Serving preparation

These concept explanations cover the ideas used in the questions. Check each card for its access level.

Foundational
Prefill vs DecodeFollow one prompt through its first prediction and later decode steps, then separate GPU work from the wait a user sees. Learn why batch size and context change the likely bottleneck.
Foundational
The KV CacheThe KV cache saves attention keys and values from processed tokens. Follow one decode step, calculate its memory cost, and see why longer conversations reduce the number of requests a GPU can hold.
Core
Sign in
Continuous BatchingContinuous batching changes which requests run between model iterations. Learn how a waiting request joins, why an empty slot is not enough, and how to balance throughput against each user’s token latency.
Advanced
🔒 Premium
PagedAttentionFollow a token position through a block table, watch a cache grow, and trace a shared tail through copy-on-write. Separate memory saved from throughput gained.
Advanced
🔒 Premium
Chunked PrefillFollow a long prompt through a shared token budget, including its final partial chunk. Learn why chunking can reduce stream pauses without guaranteeing a fixed token gap or a universal throughput gain.
Advanced
🔒 Premium
Speculative DecodingA draft proposes tokens; the target checks them with a sampling rule that preserves its distribution. Work through the correction after rejection, count accepted drafts separately from emitted tokens, and decide whether the measured round cost earns a speedup.
Advanced
🔒 Premium
Disaggregated Prefill and DecodeSeparate prefill and decode to control phase interference, then budget the KV handoff. A short isolated transfer can still overload a shared path; cancellation stops generation before it necessarily releases transfer buffers.
Advanced
🔒 Premium
Prefix Caching and KV ReusePrefix caching reuses compatible attention state for leading tokens. Calculate shared memory and token reuse, then weigh cache identity, block ownership and routing delay before expecting a latency gain.
DATABRICKS LLM INFERENCE & SERVING FAQ

This collection includes practice questions such as "How would you serve hundreds of LoRA adapters on one base model, and what does it cost in throughput?", "Why do prefill and decode behave so differently, and why does that matter for the hardware you serve on?", "What is the KV cache, and why does it keep growing while a request is being served?". Company tags describe relevance to preparation; they do not confirm that Databricks asked these questions. Check each question for answer access.

Other topics for Databricks preparation

Explore the other topics mapped to Databricks in our preparation guide.

Continue your Databricks interview preparation

Continue with related questions and the concept curriculum. Free questions are available in every track; check pricing for full access.

Independent and not affiliated with Databricks. All trademarks belong to their owners.