Limited-Time Offer: Enjoy 50% Savings! - Ends In 0d 00h 00m 00s Coupon code: 50OFF
Welcome to QA4Exam

Practice questions demo

Context-Engineer-Associate Exam Dumps and Practice Questions

Questions 1 to 5 of the 50-question Context-Engineer-Associate bank, each with its correct answer and an explanation. 1 of 5 ask for more than one answer. This is page 1 of 10.

1 / 10

Actual Databricks Context-Engineer-Associate Exam Questions

Question 1

A context engineer is building a multi-agent Databricks workflow where an orchestrating agent coordinates five sub-agents, each performing document analysis, entity extraction, and summarization tasks. The orchestrator receives the complete raw output from each sub-agent, including intermediate reasoning chains, extracted entity lists, and status messages, and appends all of it to its running context window before issuing follow-up instructions. After scaling to production document volumes, the orchestrator's context window consistently saturates before all sub-agent results are processed, causing truncation errors and a loss of task coherence.

Which two changes to sub-agent output design would reduce the orchestrator's context load while preserving the information it needs to continue coordinating tasks?

Choose two

Correct answer: A, E

The orchestrator is suffering from context saturation because sub-agents return excessive intermediate information rather than concise, actionable results.

Option A introduces structured output contracts that restrict each sub-agent's response to essential coordination information. These records should include execution status, extracted entities, confidence scores, and relevant task identifiers.

Removing verbose intermediate reasoning and redundant status messages substantially reduces the context consumed by each agent response.

Option E complements this approach by moving complete sub-agent outputs into persistent storage backed by Lakebase. Instead of transferring large documents and intermediate results through the orchestrator's prompt, sub-agents can return identifiers referencing their stored outputs.

A practical implementation combines both approaches: the orchestrator receives a concise structured summary and a reference to the complete underlying result.

When additional evidence is required, the orchestrator can retrieve the relevant stored information selectively.

Databricks supports multi-agent orchestration and Lakebase-backed persistent agent state. These capabilities enable application-specific designs that separate active context from durable execution artifacts.

Option B reduces available specialization, while Option C merely increases capacity without resolving inefficient information transfer. Option D abandons the existing multi-agent architecture and may recreate the original context-saturation problem.

The selected design improves scalability while maintaining access to detailed results and supporting evidence.

Official Databricks reference: Build a multi-agent system on Databricks Apps, Agent state and memory, and Tracing overview.

Question 2

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?

Correct answer: B

Conservative compaction is appropriate when the agent must preserve exact source evidence while reducing the amount of contextual information passed into subsequent model calls.

The critical requirement is citation traceability. Every claim in the analyst report must remain linked to the precise original text supporting that claim.

Option B retains retrieved snippets verbatim while reducing redundant explanatory material and intermediate reasoning records.

This distinction is important because model-generated paraphrases may omit qualifiers, alter terminology, or introduce subtle changes in meaning. Such modifications can compromise the reliability of source citations.

By retaining the original snippets, the agent preserves the evidence necessary for subsequent verification.

The reasoning records can be compressed into concise summaries containing conclusions, source identifiers, and unresolved questions, rather than preserving verbose intermediate deliberation.

Option A removes the exact source passages while retaining excessive reasoning. Option C may discard evidence required for earlier findings. Option D maximizes compression but risks losing the textual fidelity required for verifiable citations.

Databricks MLflow Tracing records retrieval outputs and associated execution steps, providing an independent mechanism for inspecting source evidence.

For additional efficiency, the engineer could retain source identifiers within active context and use governed storage for on-demand retrieval, provided exact source text remains accessible during verification.

Official Databricks reference: Tracing overview, Span concepts, and AI Search retrieval quality guide. These support source-preserving retrieval and traceability; the conservative compaction choice is an architectural inference from the stated citation requirement.

Question 3

A context engineer is preparing to deploy a per-tenant Databricks agent for a SaaS retail analytics platform. Each platform customer is provisioned with their own Unity Catalog catalog, retail_<customer>, and within each tenant catalog, data is organized by business domain rather than by origin.

The sales schema contains the customer's POS transaction and returns tables, which the customer's source systems write to throughout the day, alongside the daily_sales_by_store, hourly_revenue_by_category, and top_skus_weekly summary tables that a nightly Lakeflow Jobs pipeline produces by reading those POS tables. The inventory schema contains stock-level and inbound-shipment tables written continuously by ingestion, alongside demand_forecast_7d and reorder_suggestions tables produced by the SaaS's ML pipelines. The customer schema contains customer master records and contact tables, all populated by ingestion.

The SaaS deploys one agent per customer through Model Serving, and each agent has its own service principal. Before any agent endpoint is registered, the governance requirements are that an agent for a given customer must be able to retrieve data only from that customer's catalog and never from another customer's catalog, and that within its own customer's catalog, the agent must be able to retrieve only from tables populated directly by the customer's ingestion pipelines, never from nightly summaries, forecasts, or other tables produced by SaaS pipelines.

Which governance approach should the context engineer implement for each tenant's agent before registration?

Correct answer: D

Option D implements least-privilege access control at both the tenant and table levels, satisfying the two independent governance requirements.

Unity Catalog uses a hierarchical permission model involving catalogs, schemas, and individual data objects.

To query a table, a principal normally requires USE CATALOG on the parent catalog, USE SCHEMA on the parent schema, and SELECT on the table.

The engineer should assign each tenant's agent a dedicated service principal and restrict that identity to its corresponding customer catalog.

Within the authorized catalog, the principal should receive USE SCHEMA permissions for the required business-domain schemas.

Table-level SELECT grants should then be limited to ingestion-fed tables, excluding nightly aggregates, demand forecasts, and other derived datasets.

This design enforces access boundaries through Databricks authorization rather than relying exclusively on agent-generated SQL or prompt instructions.

Option A creates unnecessary cross-tenant exposure by sharing a principal across customers. Options B and C grant SELECT at the schema level, which permits access to current and future tables within those schemas.

A source-classification tag alone does not revoke privileges already granted through schema inheritance.

Databricks explicitly documents the required privilege combination and recommends least-privilege grants. The engineer should also review inherited privileges and verify the endpoint's effective execution identity.

Official Databricks reference: Unity Catalog privileges reference, Unity Catalog permissions model concepts, and Create custom model serving endpoints.

Question 4

A context engineer is debugging a Databricks agent that staffs an internal IT help desk. The agent is already connected to a retrieval pipeline over a live, continuously updated knowledge base, and relevant KB passages are retrieved and placed in its context on every request. Its system prompt has three parts: a 400-token persona preamble, a 600-token list of every supported software title, and a 200-token closing instruction block. None of these parts explains how to weigh retrieved passages against the model's own training knowledge.

Observed behavior: the agent correctly identifies the user's intent, and the correct KB passages are present in context. However, for version-specific questions, it answers from its training knowledge and recommends releases that the knowledge base marks as deprecated. The team will accept only a change that does not rewrite the full prompt and does not add or modify retrieval infrastructure.

Which system-prompt revision addresses the version-accuracy behavior?

Correct answer: B

The observed failure concerns source prioritization rather than information retrieval. The agent already receives the correct knowledge-base passages, but it does not consistently treat that retrieved information as authoritative when its pretrained knowledge suggests a different answer.

Option B directly addresses this defect by establishing an explicit instruction hierarchy for conflicting information.

In retrieval-augmented generation, the prompt must explain how retrieved evidence should influence the generated response. For information that changes frequently, such as supported software releases, configuration requirements, and deprecation status, current authoritative documentation should generally supersede historical information learned during model training.

Adding this instruction to the existing closing block requires minimal modification and satisfies the restriction against rebuilding the prompt or retrieval infrastructure.

Option A merely communicates potential staleness without changing the agent's decision process. Option C modifies prompt ordering but does not establish source authority. Option D standardizes version formatting without improving factual accuracy.

The engineer should additionally test conflicting version scenarios and evaluate whether responses consistently follow the current knowledge base. Databricks guidance identifies prompt augmentation, factual grounding, and evaluation as central components of reliable RAG applications.

Official Databricks reference: Databricks --- Improve RAG chain quality, particularly Prompt Augmentation, LLM Configuration, and Factual Consistency Guardrails.

Question 5

A context engineer is developing a Databricks agent for a retail inventory management system. The system prompt and tool descriptions consume 1,800 tokens of a 4,096-token context window, and the engineer reserves 1,000 tokens for the user turn and model response. The remaining tokens are used for few-shot examples, each costing approximately 250 tokens, so the engineer includes exactly five examples.

The agent uses three tools: inventory_lookup, reorder_check, and supplier_lead_time.

Six candidate examples are available:

Example 1: A warehouse manager asks whether a depleted SKU needs reordering; the agent calls inventory_lookup, confirms depletion, calls reorder_check, and returns a binary reorder decision.

Example 2: A procurement officer asks when a low-stock item can be replenished; the agent calls reorder_check, calls supplier_lead_time, and returns a replenishment recommendation.

Example 3: A store associate asks for the current stock count of a single product; the agent calls inventory_lookup and returns a scalar quantity.

Example 4: A store associate asks for the current stock count of a single product; the agent calls inventory_lookup and returns a structured status object containing the quantity and a restocking flag.

Example 5: A store associate asks whether a forecasted shortfall requires immediate action; the agent calls inventory_lookup, compares against minimums, calls reorder_check, and returns a binary reorder decision.

Example 6: A logistics coordinator asks how long a specific supplier takes to fulfill an order; the agent calls supplier_lead_time and returns a scalar lead-time value.

Which example should the engineer omit to preserve the token budget while maximizing behavioral coverage?

Correct answer: C

Example 3 is the strongest candidate for removal because it substantially overlaps with Example 4 in user intent, user role, and tool invocation.

Both examples involve a store associate requesting inventory information for a single product. Both invoke inventory_lookup. The primary difference is the response representation: Example 3 returns a scalar quantity, whereas Example 4 demonstrates a structured status containing quantity and a restocking flag.

Retaining Example 4 provides broader instructional coverage because it illustrates both inventory retrieval and a richer response structure. The agent can still learn the simpler lookup operation from that example, although scalar-only response formatting would need separate instruction if it were a mandatory output requirement.

Examples 1 and 5 retain distinct business scenarios: depleted inventory versus forecasted shortages. Example 2 illustrates a multi-tool replenishment workflow, while Example 6 independently demonstrates a direct supplier lead-time lookup.

The available token capacity is 1,296 tokens after reserving 1,800 tokens for instructions and 1,000 tokens for interaction. Five examples at approximately 250 tokens each require 1,250 tokens, satisfying the stated budget.

Databricks recommends representative few-shot examples that cover diverse expected queries rather than consuming context with substantially redundant demonstrations.

Official Databricks reference: Databricks --- Improve RAG chain quality, particularly Prompt Augmentation and Few-Shot Examples.

Unlock all Databricks Context-Engineer-Associate questions

Full exam access, validated answers, and unlimited practice with no download limits.