System Prompt and Instruction Design: 5 DBX-CEA Questions with Full Explanations
5 questions, one domain: System Prompt and Instruction Design from the Databricks Context Engineer Associate (DBX-CEA) exam. It carries about 9% of the exam score. Pick your answer, then check it against the explanation.

Databricks Context Engineer Associate (DBX-CEA) · System Prompt and Instruction Design · 5 questions with answers and explanations
📊 About this set
Exam: DBX-CEA · 45 questions · 90 minutes
This set: 4 applied, 1 advanced · 2 troubleshooting, 1 concept check, 1 scenario, 1 trade-off
Topics: MLflow evaluation, Genie spaces, MLflow Tracing
Question 1 of 5
A support agent's prompt has 12 few-shot examples of about 150 tokens each. In an MLflow evaluation on a fixed dataset, correctness is 0.61 with no examples, 0.82 with three, 0.83 with six and 0.83 with twelve. Token cost matters. Which set should the team keep?
Show answer
✅ Answer: B
Difficulty: advanced · Topic: MLflow evaluation
Marginal contribution under a token budget
Every few-shot example is paid for on every request. The useful measure is the marginal contribution: how much the score rises when one more example is added. "Marginal contribution" and "token budget" are the exam guide's vocabulary for this trade-off, not terms the Databricks docs define.
Reading the numbers
• 0 to 3 examples: a large gain (0.21), worth the tokens.
• 3 to 6 and 6 to 12: gains near zero, but the cost per request doubles and quadruples.
Run the comparison as separate MLflow evaluation runs with the same dataset and scorers, then keep the smallest set that holds the gain.
Why each option works or fails
• ✗ A. Keeping twelve: "at least as high" ignores that the extra nine examples add about 1,350 tokens per call for a 0.01 change.
• ✓ B. Keep three (correct): they deliver almost all of the improvement, and the further examples cost tokens on each request for no measurable gain.
• ✗ C. Six similar examples: similarity adds redundancy, not coverage, and doubles the example cost without the evidence of a gain.
• ✗ D. Dropping all examples: it throws away the large 0.21 gain, which is worth far more than the 450 tokens spent.
Question 2 of 5
A reviewer wants to estimate what v2's extra 400 system-prompt tokens cost per task in an agent whose MLflow 3 traces show six LLM spans per task. The system prompt is sent with every LLM call. Which estimate uses the experiment data correctly?
Show answer
✅ Answer: C
Difficulty: applied
Where prompt tokens are paid
LLM APIs are stateless: every call receives the full prompt, so the system prompt is part of the input of each call in an agent loop. An agent that calls the model six times per task pays for the system prompt six times (this is a generally accepted property of LLM APIs, not a Databricks-specific rule).
MLflow Tracing records the inputs, outputs, latency, token usage and cost of every intermediate step, so you can read input tokens on each LLM span and sum them. That is how to check the arithmetic: 400 extra tokens times six calls is about 2,400 extra input tokens per task, before any caching effects.
This is why a seemingly small prompt addition deserves scrutiny in multi-step agents.
Why each option works or fails
• ✗ A. Counted once: the prompt is resent with each stateless call, so counting it once underestimates the cost by a factor equal to the number of calls.
• ✗ B. Root span only: input tokens on intermediate LLM spans are part of the task's consumption; looking at the root's output alone ignores where the added prompt is actually paid.
• ✓ C. Multiply by LLM calls (correct): because the system prompt is part of each call's input, the added 400 tokens recur on all six spans, and per-span token usage in the traces shows the real total instead of an assumption.
• ✗ D. Character length: characters are a rough proxy at best, and traces record actual token usage per step, which is the measurement the cost decision needs.
Question 3 of 5
A new Genie space for support operations is shared with a wide audience. Users drift to topics the agent was never set up for (HR, finance) and get weak answers. The curator wants the first screen to steer users to what the agent handles well. Which configuration fits?
Show answer
✅ Answer: A
Difficulty: applied · Topic: Genie spaces
Sample questions steer users
The Genie documentation says sample questions configured in the agent settings appear in the chat window, and Genie can also generate sample questions from the agent's context. They are the first thing a user sees, so they signal scope.
Curating them
• Write them the way users actually ask.
• Choose questions the agent answers well; test each one yourself.
• Keep the agent's purpose narrow: the best-practices page says an agent should answer questions for a particular topic and audience, not general questions across domains.
Current name: Genie spaces (now Genie Agents). The exam guide and this question keep the older name.
Why each option works or fails
• ✓ A. Curated sample questions (correct): they show the supported scope on the first screen, and since the curator verified each one, users start with questions that work.
• ✗ B. Refusal instruction: a text rule does not narrow the data, and the unrelated tables still add confusion; the docs prefer a focused agent to a refusing one.
• ✗ C. No sample questions: users lose guidance on scope, and the docs state the agent should be focused on a specific topic.
• ✗ D. Adding every table: it widens scope and clutters the agent's context, which the docs warn against in favor of a focused set of tables.
Question 4 of 5
A system prompt includes the line "Format dates correctly." Traces show the agent writing dates in several formats, which breaks a downstream parser. The team wants the fix that adds the fewest tokens. Which revision is best?
Show answer
✅ Answer: D
Difficulty: applied · Topic: MLflow Tracing
Replace vague instructions with checkable ones
A vague instruction leaves the model to guess what "correctly" means. A rule that names the exact format and gives one example removes the guess in a dozen tokens, which is less than most alternatives. Rewriting a vague line into a specific one is the cheapest revision, and it keeps the prompt as short as before.
Cost and maintenance
• Same token count, clearer behavior.
• Easy to maintain: one line holds the format, and a downstream change means editing that line.
The principle is generally accepted prompt-design practice (the Genie best-practices page applies the same idea: replace vague guidance with specific wording and a concrete example).
Why each option works or fails
• ✗ A. Sample dialogues: they might demonstrate the format but cost far more tokens than a one-line rule, and each must be maintained.
• ✗ B. Capitalized repetition: it triples a vague instruction, so the ambiguity is still there at higher cost.
• ✗ C. Explanatory paragraph: it adds tokens about why and never states the required format.
• ✓ D. Specific rule with an example (correct): it tells the model the exact format and shows it, replacing guesswork at almost no extra token cost.
Question 5 of 5
An email-drafting agent's prompt has three examples that all mention a customer called "Acme" and a refund of $45. Production outputs for unrelated customers keep mentioning Acme or $45. Which change corrects this?
Show answer
✅ Answer: C
Difficulty: applied · Topic: MLflow Tracing
Examples can leak their details
A model imitates what examples show, including incidental details. If every example has the same name and amount, those details look like part of the pattern. In the exam's vocabulary this is context pollution from the examples themselves. The standard remedy (generally accepted prompt-design practice) is to make examples diverse and to separate the structure to imitate from the details to replace.
Fix
• Vary the incidental values across examples.
• Use placeholders or obviously synthetic values.
• Keep the structure you want copied consistent.
Why each option works or fails
• ✗ A. Moving to the user turn: it only changes where the same leaking text sits and may make it look like the current request.
• ✗ B. Capital-letter instruction: the examples still show Acme and $45 in every case, and the model weighs what it sees in the demonstrations more than a general ban.
• ✓ C. Varied examples with placeholders (correct): the model sees that names and amounts change while the structure stays, so it stops carrying the details into new emails.
• ✗ D. Repeating the examples: it increases tokens and strengthens the association with Acme and $45.
🎯 Takeaways
• Keep the smallest few-shot set that captures the measured gain.
• A system prompt is paid on every LLM call, so multiply its added tokens by calls per task and verify with per-span token usage.
• Use sample questions to show scope, and keep the agent focused on its topic.
• Make a vague rule specific with a concrete example, rather than adding emphasis or bulk.
• Vary incidental details across examples so the model copies the structure, not the facts.
🔗 More from this exam
• Databricks Context Engineer Associate (DBX-CEA): 5 Practice Questions on Foundations of Context Engineering
• Can You Answer These 5 DBX-CEA Questions on System Prompt and Instruction Design?
• 5 Questions to Test Your Foundations of Context Engineering Knowledge (DBX-CEA)
• All DBX-CEA practice sets
• Every exam on this blog
📚 More DBX-CEA practice
More DBX-CEA questions: https://hyunhp.github.io/cert-bank/#exam=DBX-CEA
Study guide: https://hyunhp.github.io/cert-bank/study.html#exam=DBX-CEA
These are original practice questions, not real exam questions, and cert-bank is not affiliated with any certification vendor.
Original practice questions written for this blog, not exam dumps.
Comments
Post a Comment