Limited-Time Offer: Enjoy 50% Savings! Ends in 00h 00m 00s Coupon code: 50OFF
Skip to content

Free Databricks Certified Context Engineer Associate Context-Engineer-Associate Exam Questions

Page: 1 / 9 Total 50 questions

Want more questions? Get Premium Access.

Question 1

A context engineer is building an AI application that tracks every prompt sent to a large language model, the retrieved context chunks passed to it, and the final generated response. The application must capture token usage, latency metrics, and user feedback scores associated with each inference run. The engineer needs a unified system that versions prompt templates alongside model artifacts, links evaluation results to specific runs, and provides a query interface so downstream dashboards can compare performance across experiment iterations, all without building a custom logging backend.

Which Databricks product should the context engineer use to meet these requirements?

Correct Answer: C. MLflow 3, to log full inference traces, version prompt templates as registered model artifacts, and query evaluation results across experiment runs without a custom logging backend.
Explanation:

MLflow 3 provides an integrated observability, experiment tracking, prompt management, and evaluation environment for generative AI applications developed on Databricks.

The application requires end-to-end visibility into inference operations, including prompts, retrieved passages, model responses, token usage, latency, and feedback.

MLflow Tracing records individual execution spans associated with model invocations, retrievers, tools, and other agent components. These traces enable engineers to reconstruct the execution path and investigate failures or performance bottlenecks.

MLflow's Prompt Registry provides centralized prompt-template versioning, while experiment tracking associates application configurations with their observed performance.

The evaluation framework supports automated scoring, human feedback, and comparisons between application versions.

Option A describes governance capabilities associated with Unity Catalog but does not independently provide the complete MLflow evaluation workflow. Option B would require implementing application-specific logging and analysis functionality. Option D concerns tool interoperability rather than experiment observability.

Option C is therefore the appropriate selection.

One technical distinction is that MLflow manages prompt versions through its Prompt Registry, not simply by storing them as conventional model artifacts. The registry can track lineage between prompts and logged application or model versions.

Together, these capabilities support reproducible experimentation, operational monitoring, and performance analysis without requiring a custom tracking backend.

Official Databricks reference: Tracing overview, Prompt Registry, Evaluate and improve, and Track prompt versions alongside application versions.

Question 2

A context engineer is debugging a Databricks agent that supports a multi-turn customer support application. The agent keeps a running summary of all conversation history across every user session in a single vector index and retrieves it on every turn through semantic search. Users report that the agent loses track of facts stated earlier in the same session, while unrelated details from other users' past sessions appear unexpectedly. Latency has also increased as conversation volume grows.

Which storage configuration correctly resolves the memory type mismatch that is causing this degraded behavior?

Correct Answer: B. Use a session-scoped short-term buffer to retain all within-session conversation turns, and reserve the vector store for durable cross-session user facts retrieved by semantic search.
Explanation:

The application incorrectly combines short-term conversational memory and long-term semantic memory within a single vector retrieval mechanism.

Short-term memory must preserve the sequence of messages, recent user statements, intermediate decisions, and tool interactions within an active session.

Semantic vector retrieval does not guarantee chronological completeness. It retrieves information based on relevance scores, potentially omitting earlier conversation details that remain essential for the current interaction.

Furthermore, storing all users' conversation summaries in a shared index without appropriate access boundaries can cause unrelated information to appear in generated responses.

Option B separates these responsibilities.

A session-scoped short-term buffer maintains the active conversation context, preserving continuity across turns. A separate persistent vector store retains durable information such as confirmed preferences, customer-specific facts, and significant decisions that should remain accessible across sessions.

Databricks provides this architectural distinction through Agent Sessions and Agent Memory, both of which can use Lakebase-backed persistence.

Option A improves retrieval isolation but continues using semantic search as the primary mechanism for session continuity. Option C does not properly distinguish durable memory from session history. Option D continues accumulating redundant summaries and increases retrieval overhead.

Production implementations should also enforce user-scoped access controls, bounded session histories, and relevance-based long-term memory retrieval.

Official Databricks reference: Agent memory and sessions, Agent sessions, and Agent state and memory.

Question 3

A context engineer supports a research agent at a financial services firm that operates across multiple sessions over several days to compile competitor profiles. Within a single session, conversation compaction is configured and functions as expected. However, MLflow traces show that whenever one session ends and another begins for the same task, the agent loses progress: it re-explores companies that previous sessions already analyzed, and it re-derives the same research framework from scratch. The team has determined that no single session should contain the entire multi-day workload in its own context window.

How should the engineer enable the agent to resume coherent work across sessions under this constraint?

Correct Answer: C. Have the agent, at the end of each session, write structured progress notes to a durable external memory store, then reload those notes into the context window at the start of each subsequent session.
Explanation:

The failure results from treating session-level context compaction as a substitute for persistent, cross-session task memory.

Compaction reduces the amount of information maintained within an active context window. However, a compacted conversation does not automatically become available to subsequent, independently initialized sessions.

Option C addresses this limitation by introducing a durable external memory mechanism for preserving task progress.

At the end of each research session, the agent should persist structured records containing completed competitor analyses, unresolved research questions, important findings, source references, and the next required actions.

When the next session begins, the agent retrieves these records and reconstructs the relevant working state without replaying the entire conversation.

Databricks provides Lakebase-backed Agent Memory for persisting information across conversations. Application-managed storage can also retain structured workflow checkpoints associated with a particular research task.

Option A affects compaction timing but does not create durable persistence. Option B increases context consumption and eventually violates the stated context-window constraint. Option D stores extensive transcripts without efficiently distinguishing completed work from incidental conversation.

For reliable long-horizon execution, memory records should include task identifiers, completion status, timestamps, and references to supporting evidence.

This design enables continuation across sessions while maintaining predictable context consumption and minimizing redundant research.

Official Databricks reference: Agent memory and sessions, Agent memory, and Develop agents on Databricks.

Question 4

A context engineer is tuning a compaction prompt for a Databricks agent that summarizes customer support ticket histories before sending them to a downstream LLM. The trace being compacted spans 40 turns, and the compacted output must fit within the downstream LLM's context window. During initial evaluation against a benchmark of escalated support cases, the engineer observes that the compaction output consistently omits several prior resolutions and key escalation events, even though it fits well within the downstream LLM's context window.

What tuning step should the engineer take next?

Correct Answer: C. Broaden the compaction prompt's retention rules to capture all events, resolutions, and escalation signals, accepting a longer summary for now and tightening verbosity in a later iteration.
Explanation:

The evaluation indicates that the compaction process is losing important information despite producing summaries comfortably within the available context budget.

This is primarily a context-retention failure rather than a token-efficiency problem.

Option C correctly prioritizes improving information recall before attempting further compression.

The engineer should revise the compaction instructions to explicitly preserve previous resolutions, escalation decisions, unresolved issues, ownership changes, customer commitments, and significant troubleshooting events.

These details may remain important even when they occurred many turns earlier.

For example, an escalation decision made at turn 8 may determine how a support case should be handled at turn 40. A summarizer that prioritizes recent messages may incorrectly omit that earlier decision.

Option A would make summaries shorter and potentially worsen information loss. Option B assumes recent events are always more important. Option D changes both retention and pruning behavior simultaneously, making it harder to identify which modification improves performance.

A disciplined optimization process should first establish adequate coverage of important facts, then remove redundant language while preserving that coverage.

Databricks MLflow evaluation supports testing application behavior against representative datasets and comparing quality across configurations.

The engineer should use a benchmark containing expected escalation events and resolutions to assess completeness before optimizing summary length.

Official Databricks reference: Tracing overview, MLflow API Reference, and Debug and analyze your app with tracing.

Question 5

A context engineer is developing a Databricks legal research agent for an international financial services organization. The agent uses a DELTA_SYNC Databricks AI Search index containing regulatory compliance documents for the United States, United Kingdom, and European Union.

Each document chunk includes the following metadata:

jurisdiction: The regulatory jurisdiction to which the document applies.

document_status: Whether the document is active, superseded, or archived.

effective_date: The date on which the regulatory provision became effective.

document_id: The unique identifier of the source document.

The agent uses semantic similarity search with num_results=10 to retrieve regulatory evidence.

During MLflow evaluation, the engineer discovers that questions about current UK financial reporting obligations frequently retrieve superseded UK regulations and highly relevant US regulatory documents. The resulting answers are technically plausible but cite requirements that do not apply to the user's jurisdiction or requested reporting period.

The embedding model produces accurate semantic similarity scores, and increasing num_results does not improve regulatory correctness.

The engineer must preserve semantic retrieval while ensuring that only regulations applicable to the requested jurisdiction and reporting date are considered.

Which retrieval configuration should the context engineer implement?

Correct Answer: B. Apply metadata filters for the requested jurisdiction, active regulatory status, and applicable effective-date conditions as part of the AI Search query, then rank the eligible documents by semantic relevance.
Explanation:

The observed failure results from a mismatch between semantic relevance and regulatory applicability.

Semantic similarity measures how closely document content relates to a query. It does not independently establish whether a regulatory document applies to a specific jurisdiction, reporting period, or effective date.

Consequently, a highly relevant US regulation may rank above an applicable UK regulation when both discuss similar financial reporting obligations.

Option B resolves this problem through metadata-constrained retrieval.

Databricks AI Search supports query filters that restrict results according to indexed metadata fields. The engineer can filter documents by jurisdiction and applicable regulatory status before incorporating their contents into the agent's context.

Effective-date filtering should account for the requested reporting date and the organization's regulation-versioning rules. A document marked active today is not necessarily the regulation that governed an earlier reporting period.

After applying the eligibility constraints, semantic retrieval can identify the most relevant passages from the remaining documents.

Option A increases candidate volume without correcting applicability. Option C sacrifices valuable semantic matching. Option D relies on generation-time instructions to compensate for incorrect retrieval.

The engineer should also enforce access permissions independently; metadata filters improve retrieval correctness but are not a substitute for authorization.

Official Databricks reference: AI Search filtering guide and Improve RAG chain quality --- Metadata Filtering.

Question 6

A context engineer is building a regulatory compliance agent on Databricks that connects to an external compliance management platform through an MCP Service registered in Unity Catalog.

The MCP server exposes the following tools:

search_compliance_records: Retrieves existing compliance records without modifying them.

get_submission_status: Checks the status of previously submitted reports.

submit_regulatory_report: Sends a finalized regulatory report to an external authority.

delete_compliance_record: Permanently deletes an existing compliance record.

The agent serves compliance officers who are authorized to retrieve records and submit reports. However, organizational policy requires explicit human approval before every regulatory report submission.

The agent must continue executing read-only tools without interruption. It must also prevent unauthorized destructive operations and maintain an auditable record of tool invocations.

The engineering team has confirmed that the MCP tools function correctly. The remaining requirement is to enforce the approval and authorization rules at the platform governance layer rather than relying exclusively on instructions inside the agent's system prompt.

Which approach should the context engineer implement?

Correct Answer: C. Configure the MCP Service with appropriate Unity Catalog permissions and tool restrictions, and attach an input-phase service policy that requires approval for submit_regulatory_report while allowing authorized read-only calls.
Explanation:

Option C provides governance enforcement at the service boundary rather than depending on probabilistic agent behavior.

Databricks supports registering external MCP servers as Unity Catalog securable objects. This allows administrators to control which principals may access the service and which tools are exposed.

For this scenario, the engineer should grant the appropriate service permissions to authorized compliance officers and restrict the exposed tool set to approved operations.

Databricks service policies can inspect MCP requests before execution through the ON CALL evaluation phase.

A policy can return an ASK decision, requiring user approval before the requested operation proceeds.

The engineer should configure this behavior specifically for submit_regulatory_report, while permitting authorized read-only operations without unnecessary approval prompts.

The destructive delete_compliance_record operation should be excluded or denied according to the organization's authorization requirements.

Option A depends entirely on instruction following and cannot reliably enforce privileged operations. Option B changes reasoning behavior without adding authorization controls. Option D unnecessarily removes the legitimate report-submission capability.

Databricks also supports auditing MCP activity, enabling administrators to review tool usage and investigate unauthorized or unexpected actions.

Service policies are currently documented as a Beta capability, so the relevant preview must be enabled before this mechanism can be used.

Official Databricks reference: Service policies for AI securables, Connect agents to third-party tools with MCP Services, and AI governance guide.