Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
Databricks · Databricks Context Engineer Associate

Proactive Strategies, Length Limits, Reasoning

Databricks Context Engineer Associate · Lesson 3 of 18 · 14:49

YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗

Learning with these videos? Subscribe for new courses and exam-style questions.

In this lesson

Prepare for the Databricks Certified Context Engineer Associate exam. In this lesson: proactive strategies that keep the window light (minimal tools, just-in-time retrieval, scoped tool results), why quality declines long before the context limit and how to find the working limit, restoring performance with compaction and tool result clearing, and choosing a reasoning mode within a token budget. Includes three original practice questions.

Study notes

The text of this lesson, to read at your own pace. Information as of November 2026.

Long sessions, slow answers

Thistledown's renewal agent helps tenants through long renewal sessions, and after many turns, it forgets a budget limit the tenant gave at the start. Meanwhile, the same agent thinks hard for twenty seconds before answering a simple question about a due date. This lesson shows how to keep the window light before trouble starts, how to spot the point where length hurts, and how to choose a reasoning mode.

Proactive context management

Proactive strategies keep the context window light, before compaction becomes necessary. A minimal tool set gives the agent only the tools its task needs, with no overlap between them. Just in time retrieval keeps lightweight references, like a lease ID or a stored query, and loads the data with a tool only when a step needs it. Tool result scoping makes each tool return only the fields, rows, or pages that matter, instead of a raw dump. Together, they slow the growth of the context, so the agent stays focused for longer.

When length starts to hurt

Quality does not fall off a cliff at the context limit: it declines gradually, often long before the window is full. In MLflow traces, the signs are an agent that cites the wrong tool result, recalls the wrong document from earlier in the session, or ignores a constraint the user stated before. To find the point, rerun evaluation conversations at growing lengths, and track judge scores against the number of tokens in context. The point where scores drop is your working limit, whatever the window size says.

Restoring performance

Once you know the point, act before the agent reaches it. Compaction summarizes the history into a faithful summary, and the agent continues with that summary plus the most recent items. Clearing raw tool results that were already used is an even lighter step. A larger window alone does not help, since attention is still spread thin, and blindly dropping the oldest messages can delete constraints that still apply.

Reasoning modes

Reasoning models can think before they answer, and on Databricks, you control how much with a reasoning effort setting, or by turning thinking off on hybrid models. Standard mode answers directly, which suits simple lookups and short, well defined tasks. Extended thinking spends more tokens on reasoning, which pays off for multi step planning, ambiguous requests, and decisions that combine several tool results. Reduced thinking, with a low effort or thinking turned off, suits high volume tasks where speed and cost matter more than depth. Reasoning tokens are billed, add latency, and can fill the window in long sessions, so choose the lowest mode that meets the quality bar, and measure it.

Recap

Let's recap. Minimal tools, just in time retrieval, and scoped tool results keep the window light. Quality declines gradually, long before the hard limit of the window. Find the working limit by tracking judge scores against context length. Restore performance with compaction, or by clearing used tool results. And pick the lowest reasoning mode that meets the quality bar, since reasoning tokens count against the token budget, and add time.

Quick checks for this lesson

The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.

  1. Every chat starts by loading the full history of the tenant’s building, thousands of rows, but most questions are about one open request. Which proactive strategy fits best?

    • Fetch the open request by its ID only when a step needs it
    • Compact the history once the window is full
    • Move to a model with a larger window
    • Add instructions to ignore the older rows
    Show the answer

    Fetch the open request by its ID only when a step needs it

    Keep the request ID, and fetch that request with a tool only when a step needs it, which is just in time retrieval. “Compact the history once the window is full” is wrong, since compaction reacts once the window is full, while this load should never happen. “Move to a model with a larger window” is wrong, since a larger window would still spend attention on thousands of useless rows. And “Add instructions to ignore the older rows” would add instructions, while the thousands of rows stay in the context.

  2. The renewal agent seems to get worse in long sessions, but nobody knows when. How should the team find the point where length starts to hurt?

    • Wait until the agent hits the hard token limit
    • Track the response latency of each turn
    • Replay evaluation chats at growing lengths and track judge scores
    • Ask one tenant to run a very long chat
    Show the answer

    Replay evaluation chats at growing lengths and track judge scores

    Rerun evaluation conversations at growing lengths, and track judge scores against the tokens in context, to see where quality drops. “Wait until the agent hits the hard token limit” is wrong, since the hard limit comes much later than the decline. “Track the response latency of each turn” is wrong, since latency says nothing about whether answers are correct. And “Ask one tenant to run a very long chat” is wrong, since a single long chat is one anecdote, not a measurement.

  3. An agent sorts thousands of maintenance requests per hour into ten categories. Extended thinking is slow and costly, and an evaluation shows the same accuracy at low effort. Which mode fits?

    • Extended thinking, for safety
    • Reduced thinking, with a low effort
    • Extended thinking with a larger budget
    • One sub-agent per category
    Show the answer

    Reduced thinking, with a low effort

    Reduced thinking keeps the measured accuracy, and cuts latency and token cost on a high volume task. “Extended thinking, for safety” is wrong, since extended thinking adds cost here, for no gain in accuracy. “Extended thinking with a larger budget” is wrong, since a reasoning budget higher still would make the cost even worse. And “One sub-agent per category” is wrong, since splitting the request into sub-agents adds calls and tokens for a simple classification.