Context-Engineer-Associate Practice questions
Databricks Certified Context Engineer Associate
0/5 checked
- free questions
- 5
- with answers
- in the full set
- 50
- question types
- 2
Updated
-
Question 1
Single answer
A context engineer is debugging a Databricks customer support agent that manages complex billing escalations.
The system prompt instructs the agent to:
Strictly apply the company’s official refund policy.
Treat entries from the “Billing-Policies” tool as authoritative.
Treat FAQ snippets and prior chat history as non-binding guidance only.
In one multi-step trace, the engineer observes the following:
Step 1: The agent calls the “Billing-Policies” tool and retrieves the official refund policy, which clearly states that chargebacks filed more than 90 days after purchase are not eligible for refunds.
Step 2: The agent calls a “Customer-FAQ-Search” tool that returns a community-authored FAQ thread. A top-voted but outdated and unofficial answer incorrectly claims that chargebacks are fully refundable regardless of when they are filed, and the agent summarizes this in the running conversation as an established fact.
Step 3: In a later turn, the customer describes a chargeback dispute from 18 months ago. The agent reasons from its own earlier summary, approves a full refund, and makes no reference to the official policy section excluding cases older than 90 days, even though that policy text remains in the context.
Step 4: In subsequent similar cases, the agent repeatedly approves refunds for old chargebacks, citing its prior summary as justification each time.
Which context failure mode describes what is occurring in this trace?
Show answer
Correct answer
-
D
Context poisoning, because a mistaken statement about refund eligibility enters the context as ground truth and is repeatedly reused in downstream steps, overriding the correct policy that is also present.
Explanation
Context poisoning occurs when erroneous or untrustworthy information becomes incorporated into an agent's working context and subsequently influences its decisions as though it were established truth.
In this scenario, the failure originates at Step 2. The agent encounters an outdated, community-authored FAQ that contradicts the authoritative Billing-Policies tool. Rather than preserving the distinction between authoritative and non-authoritative information, the agent incorporates the incorrect refund statement into its conversation summary.
At Step 3, the agent relies on that contaminated summary to approve an ineligible refund. Step 4 establishes the defining characteristic of context poisoning: the incorrect information is repeatedly reinforced through subsequent decisions.
Context distraction would involve excessive context degrading attention. Context confusion would arise from irrelevant material being misapplied. Context clash concerns conflicting information or instructions. Although contradictory information exists here, repeated reliance on an established false statement makes poisoning the more precise diagnosis.
The appropriate remediation is to enforce source-authority rules during context construction, prevent unverified statements from being promoted into persistent summaries, and validate refund decisions against the authoritative policy.
Databricks MLflow Tracing supports this investigation by recording intermediate retrieval operations, tool responses, and model decisions, allowing engineers to identify where incorrect information entered and propagated through the workflow.
Official Databricks Databricks MLflow 3 — Tracing overview and Debug and analyze your app with tracing.
────────────────────────────────────────────────────
No comments yet. Start the discussion.
-
D
-
Question 2
Multiple answer
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
Show answer
Correct answer
-
A
Reduce retrieved chunks from 8 to 3 and apply a reranker to select the highest-relevance chunks, preserving pertinent financial content while cutting injected tokens by over 60%.
-
C
Reduce each chunk from 550 tokens to 150-200 tokens by splitting at semantic boundaries and stripping repeated regulatory boilerplate and duplicate headers before indexing.
Explanation
The optimal approach combines retrieval-result reduction with improved document preprocessing, directly addressing the two factors responsible for excessive context consumption.
Option A reduces the number of retrieved chunks from eight to three. At 550 tokens per chunk, this decreases the retrieved context from 4,400 tokens to 1,650 tokens, representing a 62.5% reduction.
Applying a reranker helps identify which retrieved passages are most relevant to the analyst's question, improving precision when fewer chunks are included in the generation prompt.
Option C targets unnecessary information within individual chunks. Semantic chunking preserves meaningful financial passages, while removing duplicated headers and repetitive regulatory text improves information density.
With eight chunks averaging 150–200 tokens, retrieval would contribute approximately 1,200–1,600 tokens rather than 4,400.
Option B can increase result diversity through maximal marginal relevance, but maintaining the same number and size of chunks does not directly reduce token consumption. Option D improves retrieval representations without necessarily reducing injected context. Option E increases rather than reduces context usage.
Databricks recommends optimizing retrieval counts, reranking, chunk boundaries, and source-document preparation. Both selected changes should be evaluated for answer correctness and evidence recall, ensuring that compression does not eliminate relevant financial disclosures.
Official Databricks Databricks — AI Search retrieval quality guide, Build an unstructured data pipeline for RAG, and Improve RAG application quality.
────────────────────────────────────────────────────
No comments yet. Start the discussion.
-
A
-
Question 3
Single answer
A context engineer is evaluating a Databricks agent deployed for a manufacturing company’s field service team. The agent uses a DELTA_SYNC Databricks AI Search index to search a knowledge base of equipment troubleshooting guides. The product line includes closely related models (CX-400, CX-410, CX-420) whose guides use similar procedural language but specify different part numbers, torque values, and calibration sequences for each model. The index uses databricks-gte-large-en embeddings with a chunk_size of 512 tokens and a chunk_overlap of 50 tokens. Evaluation shows that when a technician queries for a specific model, such as “CX-400 belt tensioner replacement procedure,” the agent frequently returns procedures for a different model in the same product family. The returned content appears relevant but contains incorrect part numbers and specifications for the queried model.
Which Databricks AI Search configuration change directly addresses this retrieval pattern?
Show answer
Correct answer
-
A
Set query_type to HYBRID so that the search combines semantic matching with keyword matching, merging both result sets with Reciprocal Rank Fusion.
Explanation
The retrieval failure results from excessive reliance on semantic similarity when documents contain nearly identical terminology but differ in critical identifiers.
The CX-400, CX-410, and CX-420 service manuals may describe the same general maintenance operations. Consequently, their embedding vectors can occupy nearby positions in vector space despite containing different specifications and procedures.
Approximate nearest-neighbor retrieval may therefore return passages that are semantically relevant but factually inappropriate for the requested equipment model.
Databricks AI Search supports hybrid retrieval through the query_type="HYBRID" setting.
Hybrid search combines approximate nearest-neighbor semantic retrieval with full-text keyword retrieval. The results are merged using Reciprocal Rank Fusion, allowing both conceptual similarity and exact terminology to influence ranking.
This is particularly effective when queries contain product identifiers, model numbers, technical codes, or other distinguishing terms.
Option B changes the embedding representation without explicitly addressing exact-token matching. Option C reduces chunk size but may remove necessary procedural context. Option D can improve relevance ordering, but reranking alone may not recover a correctly identified document absent from the initial candidate set.
For safety-critical maintenance procedures, hybrid retrieval should ideally be supplemented by model-specific metadata filtering and evaluation against known correct procedures.
Official Databricks Databricks — Query an AI Search index, especially Retrieval Algorithms, Full-Text Search, Hybrid Search, and Reciprocal Rank Fusion.
────────────────────────────────────────────────────
No comments yet. Start the discussion.
-
A
-
Question 4
Single answer
A data analyst is creating a Genie space for a hospital operations team that needs to analyze emergency department wait times, patient discharge rates, and nurse-to-patient ratios. The engineer has added the relevant tables, written general instructions describing the hospital operations domain, and configured sample questions. Stakeholders require any metric involving nurse-to-patient ratios to use the official staffing calculation defined by the compliance team, but Genie should still answer free-form questions about discharge rates and wait times using ad hoc SQL when no trusted asset covers the question.
Which approach should the engineer use to meet both requirements?
Show answer
Correct answer
-
D
Register an example SQL query containing the compliance-approved nurse-to-patient ratio calculation as a trusted asset, and leave discharge rate and wait time queries unregistered so Genie generates ad hoc SQL for those questions.
Explanation
Databricks Genie supports trusted assets to improve reliability for business-critical questions requiring predefined, validated calculation logic.
In this scenario, the nurse-to-patient ratio is a compliance-sensitive staffing metric. Allowing Genie to reconstruct its calculation from general instructions introduces the possibility of inconsistent denominators, incorrect aggregation, or improper handling of staffing periods.
Option D addresses this requirement by associating the compliance-approved calculation with a trusted SQL asset.
The calculation should be validated against the compliance team's official definition, including patient census, nurse eligibility, shift boundaries, and any exclusions required by the organization.
Databricks documentation identifies parameterized example SQL queries and Unity Catalog SQL functions as trusted-asset mechanisms. The engineer should therefore implement the example as an appropriate parameterized SQL query, or use a registered SQL function when the logic requires that approach.
Discharge rates and emergency department wait times can remain available for exploratory questions through Genie's normal SQL generation capabilities.
Option A relies on natural-language instructions without enforcing an exact query. Option B unnecessarily attempts to make every operational metric trusted. Option C supplies an example rather than establishing the required trusted calculation.
The distinction is between deterministic, approved calculations and flexible, exploratory analytical queries.
Official Databricks Databricks — Tune Genie Agent quality, particularly Trusted Assets, Parameterized Example SQL Queries, and SQL Functions.
────────────────────────────────────────────────────
No comments yet. Start the discussion.
-
D
-
Question 5
Single answer
A context engineer manages a Genie space for a finance team. Users repeatedly ask the same shape of QUESTION NO: with different fiscal periods: “What is the total open pipeline by region for FY26 Q1?”, “...for FY26 Q2?” “...for the last quarter?”. The SQL pattern Genie generates is identical across these questions (same JOIN, GROUP BY, and aggregation, with only the fiscal-period filter changing), and the team requires that responses to these recurring questions be labeled Trusted in the chat UI. The engineer must register an asset that reuses the same vetted SQL pattern with the user-supplied fiscal period.
Which curation choice should the engineer make?
Show answer
Correct answer
-
A
A parameterized example SQL query with a typed (Date or String) fiscal-period parameter, so Genie can reuse the SQL pattern with the user-supplied value each time the QUESTION NO: is asked.
Explanation
A parameterized example SQL query is the appropriate choice when users repeatedly request the same analytical calculation with different filter values.
The finance team's requests share the same SQL structure, including table joins, regional grouping, pipeline aggregation, and relevant business filters. Only the fiscal-period value changes.
Rather than requiring Genie to regenerate this SQL independently for every question, the engineer can register a validated example query containing a typed parameter, such as :fiscal_period.
Databricks Genie supports query parameters with defined data types, including String, Date, Date and Time, Decimal, and Integer.
When a question supplies a fiscal period, Genie can associate the input with the parameter while preserving the approved SQL structure.
This approach also supports trusted responses when Genie uses the exact registered parameterized query in chat mode.
Option B allows Genie to compose surrounding SQL dynamically, meaning the complete query structure is not necessarily preserved. Option C relies on generated SQL derived from textual instructions. Option D requires maintaining separate static examples and does not generalize well to additional fiscal periods.
A parameterized example therefore provides stronger consistency, simpler maintenance, and controlled reuse of a verified calculation.
The engineer should validate fiscal-period formats and ensure that relative expressions such as "last quarter" resolve to the correct accounting period.
Official Databricks Databricks — Tune Genie Agent quality, particularly Add Query Parameters and Trusted Assets.
────────────────────────────────────────────────────
No comments yet. Start the discussion.
-
A
- Unlock to see this question
- Unlock to see this question
45 questions locked
Unlock all 50 Context-Engineer-Associate questions
You’ve had 5 for free. The other 45 work just like them: pick an answer, then check it.
- Questions
- 50, each with its answer
- Explanations
- 100% of questions explained
- Formats
- Single answer, Multiple answer
- Version
- 6.0
- Access
- 3 months from purchase
One-time payment
$49.00
Secure checkout