An AI engineer is auditing a Databricks compliance agent that has handled 65 conversation turns for a quarterly financial audit. The context window is at 92% capacity, and several audit findings remain open. The engineer wants to recover space by clearing specific raw tool outputs from the message history without compacting the conversation, and is reviewing four tool_result blocks. They also want to minimize the risk of losing information the agent still relies on.
The history contains:
A ledger reconciliation output at turn 7 returning 8,800 tokens of raw transaction rows from a read-only general ledger. The agent calculated aggregated taxable and non-taxable totals from these rows and passed them to the tax classification call at turn 10. The agent’s later replies and tool calls do not quote any underlying transaction rows.
A tax classification output at turn 10 returning 5,200 tokens of per-line bucket breakdowns across 312 transaction lines. The agent extracted the bucket totals and passed them to the compliance flag call at turn 13. The agent’s later replies and tool calls do not quote any per-line bucket assignments.
A compliance flag output at turn 13 returning 95 tokens with three flag codes and one-sentence explanations. The agent quotes specific flag codes and explanations from this output in turns 24, 38, and 61, incorporating them into the audit findings it is currently drafting.
A vendor master lookup output at turn 19 returning 3,400 tokens of supplier records and tax IDs from a read-only vendor master database. The agent quotes a vendor name and tax ID from this output in turns 41 and 57.
Which tool outputs should the engineer clear?
A context engineer is configuring a Databricks agent for an automotive service center platform. The agent must serve service center staff who submit a vehicle identification number (VIN) and a reported symptom. The agent is expected to return a summary of the vehicle’s operating profile, identify the applicable SOP procedure code for the symptom, and retrieve the narrative step-by-step service instructions for that procedure. The engineer has access to these data sources:
Unity Catalog Delta table named vehicle_profiles with columns vin, engine_type, and operating_spec.
Unity Catalog Delta table named symptom_sop_map with columns symptom_code and sop_procedure_code.
Unity Catalog Delta table named service_history with columns vin, service_date, and technician_id.
Databricks AI Search index built from scanned OEM service manuals containing narrative SOP instructions and safety warnings.
Which combination of context elements correctly supports the agent’s task?
A context engineer is troubleshooting a Databricks agent responsible for a multi-month clinical trial data processing pipeline. The agent uses a fixed sequential chaining strategy, running each processing stage in a predetermined order regardless of which stages have already completed successfully. When upstream data sources are delayed or partially available, the agent restarts the entire chain from the beginning, discarding all previously completed stage outputs. Logs show that stages with no dependency on the delayed source are being blocked unnecessarily, and total pipeline runtime has grown to an unacceptable length because of repeated full restarts on partial failures.
Which two changes should the context engineer make to resolve the observed failure pattern?
Choose two
A context engineer is developing a Databricks agent for a financial research platform that answers analyst queries using a vector search index over earnings reports. The agent uses a 180-token system prompt, a 250-token conversation history window, and a RAG pipeline that retrieves 8 document chunks at runtime. Each chunk contains 550 tokens, contributing 4,400 tokens of retrieved context. The model’s context window is 8,192 tokens, leaving just 3,362 tokens for the analyst query and model response. Profiling shows that the retrieved chunks consistently contain repetitive regulatory boilerplate and duplicated table headers that are rarely cited in the model’s final answers.
Which two changes should the context engineer make to reduce the token footprint of retrieved context without discarding relevant financial content?
Choose two
A context engineer is building a Databricks research agent that produces analyst reports where every claim must cite a verifiable source: a reviewer must be able to trace each citation back to its exact original source text. At each step, the agent calls a retrieval tool that returns several short source snippets, writes a reasoning trace explaining how those snippets support its conclusions, and appends both the snippets and the reasoning to a running context reused by later steps. As the run grows, the accumulated context pushes per-step token cost above the team’s budget, so the context must be compacted to reduce token spend.
Which compaction strategy meets both the citation requirement and the need to reduce tokens?
|
PDF + Testing Engine
|
|---|
|
$42.5 |
|
Testing Engine
|
|---|
|
$32.5 |
|
PDF (Q&A)
|
|---|
|
$26.25 |
Databricks Free Exams |
|---|
|