Certified Generative AI Engineer Associate Practice Test 56
Question 550
An engineering review considers a safeguard for this situation: A searchable document includes hidden instructions embedded in markdown links. The proposed action is: Parse, label and isolate untrusted document instructions while preserving legitimate factual content. Which observed failure most strongly justifies that action?
- The assistant could disclose licensed material to users without viewing rights
- Developers assume technical download access means commercial redistribution permission
- The model treats those strings as trustworthy operational steps
- Sensitive identifiers appear in retrieved chunks and generated summaries
Explanation
Correct Answer
C:The model treats those strings as trustworthy operational steps. This observation motivates the specific control to Parse, label and isolate untrusted document instructions while preserving legitimate factual content. Source cleaning reduces accidental execution of embedded instructions. The follow-up evidence would be: Injection benchmark fails to redirect agent behavior but still retrieves relevant facts. The other symptoms may matter elsewhere but do not identify the particular mechanism at issue.
Incorrect Answers
A:“The assistant could disclose licensed material to users without viewing rights” is associated with this technical property: This observation motivates the specific control to Enforce entitlements and output-length constraints for licensed sources. The question instead turns on “The model treats those strings as trustworthy operational steps”: This observation motivates the specific control to Parse, label and isolate untrusted document instructions while preserving legitimate factual content.
B:“Developers assume technical download access means commercial redistribution permission” is associated with this technical property: This observation motivates the specific control to Check data provenance, license terms and documented permissible uses before training. The question instead turns on “The model treats those strings as trustworthy operational steps”: This observation motivates the specific control to Parse, label and isolate untrusted document instructions while preserving legitimate factual content.
D:“Sensitive identifiers appear in retrieved chunks and generated summaries” is associated with this technical property: This observation motivates the specific control to Mask or tokenize restricted fields before indexing and apply access-aware lookup where needed. The question instead turns on “The model treats those strings as trustworthy operational steps”: This observation motivates the specific control to Parse, label and isolate untrusted document instructions while preserving legitimate factual content.
Question 551
An engineering review considers a safeguard for this situation: A compliance agent needs approved prompt versions promoted through staging. The proposed action is: Track prompt versions and promote with a stable alias after evaluation. Which observed failure most strongly justifies that action?
- Engineers build redundant custom REST wrappers for services already managed
- Source rows have duplicate IDs and updates replace the wrong indexed record
- A developer edits the production prompt in place and loses previous behavior
- Directly passing raw request dictionaries causes downstream chain errors
Explanation
Correct Answer
C:A developer edits the production prompt in place and loses previous behavior. This observation motivates the specific control to Track prompt versions and promote with a stable alias after evaluation. Versioned prompts support audit, repeatability and rollback. The follow-up evidence would be: Production alias maps to approved version and can be restored to known-safe revision. The other symptoms may matter elsewhere but do not identify the particular mechanism at issue.
Incorrect Answers
A:“Engineers build redundant custom REST wrappers for services already managed” is associated with this technical property: This observation motivates the specific control to Prefer supported managed MCP servers when their existing tools fit the task. The question instead turns on “A developer edits the production prompt in place and loses previous behavior”: This observation motivates the specific control to Track prompt versions and promote with a stable alias after evaluation.
B:“Source rows have duplicate IDs and updates replace the wrong indexed record” is associated with this technical property: This observation motivates the specific control to Choose a stable unique primary key and valid text/embedding fields for the index. The question instead turns on “A developer edits the production prompt in place and loses previous behavior”: This observation motivates the specific control to Track prompt versions and promote with a stable alias after evaluation.
D:“Directly passing raw request dictionaries causes downstream chain errors” is associated with this technical property: This observation motivates the specific control to Implement deterministic input validation and normalization before invoking the model in a pyfunc wrapper. The question instead turns on “A developer edits the production prompt in place and loses previous behavior”: This observation motivates the specific control to Track prompt versions and promote with a stable alias after evaluation.
Question 552
A Databricks generative AI team is designing a solution with this requirement: A team needs grounded answers over indexed internal training PDFs with citations. Which engineering approach should it select first?
- Choose Agent Bricks Knowledge Assistant for managed document-grounded Q&A
- Require authenticated lookup before answer composition, with missing-data branch
- Connect retrieval to a deterministic aggregation tool before final narrative generation
- Supply the allowed label vocabulary and validate each response against its enum
Explanation
Correct Answer
A:Choose Agent Bricks Knowledge Assistant for managed document-grounded Q&A directly addresses the described Databricks GenAI architecture: A team needs grounded answers over indexed internal training PDFs with citations. Knowledge Assistant is aligned to enterprise knowledge retrieval without unnecessary routing agents. The solution should be validated using a measurable test, not only the existence of a saved prompt or configuration. The expected evidence is: Acceptance set checks citations, access control and knowledge-answer relevance.
Incorrect Answers
B:“Require authenticated lookup before answer composition, with missing-data branch” is associated with this technical property: Tool ordering matters when facts are volatile and cannot be inferred safely. The question instead turns on “Choose Agent Bricks Knowledge Assistant for managed document-grounded Q&A”: Knowledge Assistant is aligned to enterprise knowledge retrieval without unnecessary routing agents.
C:“Connect retrieval to a deterministic aggregation tool before final narrative generation” is associated with this technical property: Deterministic computation should handle precise arithmetic while an LLM explains the result. The question instead turns on “Choose Agent Bricks Knowledge Assistant for managed document-grounded Q&A”: Knowledge Assistant is aligned to enterprise knowledge retrieval without unnecessary routing agents.
D:“Supply the allowed label vocabulary and validate each response against its enum” is associated with this technical property: Closed-set classification needs a constrained output vocabulary not merely a generic topic summary. The question instead turns on “Choose Agent Bricks Knowledge Assistant for managed document-grounded Q&A”: Knowledge Assistant is aligned to enterprise knowledge retrieval without unnecessary routing agents.
Question 553
For the requirement that An expense agent can draft reimbursement requests but must not submit without consent, the team proposes this change: Separate draft, validation, human approval and side-effecting submit tool calls. Which technical principle explains why it is appropriate?
- Knowledge Assistant is aligned to enterprise knowledge retrieval without unnecessary routing agents
- Entity extraction should preserve evidence spans and avoid inventing unavailable fields
- State-changing operations require authorization gates distinct from read-only retrieval
- Answer generation and sentiment classification optimize distinct model tasks
Explanation
Correct Answer
C:State-changing operations require authorization gates distinct from read-only retrieval. The proposed engineering step is to Separate draft, validation, human approval and side-effecting submit tool calls. It directly supports the requirement that An expense agent can draft reimbursement requests but must not submit without consent. The operational test is that No submit call occurs without approval token and audit records exact submitted payload. This principle is more specific than a general instruction to retry or increase model size.
Incorrect Answers
A:“Knowledge Assistant is aligned to enterprise knowledge retrieval without unnecessary routing agents” is associated with this technical property: It directly supports the requirement that A team needs grounded answers over indexed internal training PDFs with citations. The question instead turns on “State-changing operations require authorization gates distinct from read-only retrieval”: It directly supports the requirement that An expense agent can draft reimbursement requests but must not submit without consent.
B:“Entity extraction should preserve evidence spans and avoid inventing unavailable fields” is associated with this technical property: It directly supports the requirement that An operations team must extract purchase-order numbers and totals from vendor letters. The question instead turns on “State-changing operations require authorization gates distinct from read-only retrieval”: It directly supports the requirement that An expense agent can draft reimbursement requests but must not submit without consent.
D:“Answer generation and sentiment classification optimize distinct model tasks” is associated with this technical property: It directly supports the requirement that Employees ask natural-language questions about current internal procedures. The question instead turns on “State-changing operations require authorization gates distinct from read-only retrieval”: It directly supports the requirement that An expense agent can draft reimbursement requests but must not submit without consent.
Question 554
The team observes this failure in a GenAI application: A generic relevance judge scores a plausible but wrong amount as good. After implementing the fix to Choose an evaluator using verified ground-truth expected values for numerical correctness, which measurement or test most directly demonstrates success?
- Usage reports reconcile agent tokens and billed amount by team
- Wrong but fluent amount receives a failing score against reference
- Dashboard identifies the responsible version and oversized prompt stage
- Abusive burst is throttled and other tenant traffic remains within SLO
Explanation
Correct Answer
B:Wrong but fluent amount receives a failing score against reference. This specifically validates the remediation to Choose an evaluator using verified ground-truth expected values for numerical correctness for the failure that A generic relevance judge scores a plausible but wrong amount as good. Ground-truth scoring is necessary when exact facts determine correctness. A response that merely looks fluent or a successful configuration save would not be sufficient evidence.
Incorrect Answers
A:“Usage reports reconcile agent tokens and billed amount by team” is associated with this technical property: Attribution requires identity and endpoint dimensions beyond total invoices. The question instead turns on “Wrong but fluent amount receives a failing score against reference”: Ground-truth scoring is necessary when exact facts determine correctness.
C:“Dashboard identifies the responsible version and oversized prompt stage” is associated with this technical property: Token use diagnostics reveal cost regressions invisible in request counts. The question instead turns on “Wrong but fluent amount receives a failing score against reference”: Ground-truth scoring is necessary when exact facts determine correctness.
D:“Abusive burst is throttled and other tenant traffic remains within SLO” is associated with this technical property: Gateway controls can govern resource consumption across model invocations. The question instead turns on “Wrong but fluent amount receives a failing score against reference”: Ground-truth scoring is necessary when exact facts determine correctness.
Question 555
The team observes this failure in a GenAI application: Team chooses maximal embedding dimension without measuring relevance gain. After implementing the fix to Compare validated retrieval quality against vector dimensionality and compute cost, which measurement or test most directly demonstrates success?
- Captured tool calls conform to schema and unauthorized API routes are never invoked
- Red-team prompts trigger refusal and benign requests remain available
- Chosen model meets recall target with lower measured index bytes and latency
- Traces show a retrieval call, calculation result and final text with handled tool errors
Explanation
Correct Answer
C:Chosen model meets recall target with lower measured index bytes and latency. This specifically validates the remediation to Compare validated retrieval quality against vector dimensionality and compute cost for the failure that Team chooses maximal embedding dimension without measuring relevance gain. Larger embedding dimension increases storage and index work without universal quality improvement. A response that merely looks fluent or a successful configuration save would not be sufficient evidence.
Incorrect Answers
A:“Captured tool calls conform to schema and unauthorized API routes are never invoked” is associated with this technical property: Typed interfaces constrain model actions and separate credentials from prompt text. The question instead turns on “Chosen model meets recall target with lower measured index bytes and latency”: Larger embedding dimension increases storage and index work without universal quality improvement.
B:“Red-team prompts trigger refusal and benign requests remain available” is associated with this technical property: Guardrails should consider both user intent and produced content. The question instead turns on “Chosen model meets recall target with lower measured index bytes and latency”: Larger embedding dimension increases storage and index work without universal quality improvement.
D:“Traces show a retrieval call, calculation result and final text with handled tool errors” is associated with this technical property: Reusable agent components manage messages, tool calling and state more reliably than ad hoc text parsing. The question instead turns on “Chosen model meets recall target with lower measured index bytes and latency”: Larger embedding dimension increases storage and index work without universal quality improvement.
Question 556
A Databricks generative AI team is designing a solution with this requirement: A help desk needs to route HR, IT and payroll questions to specialized agents. Which engineering approach should it select first?
- Define authenticated identity context as input and tenant-scoped answer objects as output
- Supply the allowed label vocabulary and validate each response against its enum
- Use a Multiagent Supervisor to delegate to narrowly scoped specialists
- Specify explicit JSON fields and enforce a structured output schema with validation
Explanation
Correct Answer
C:Use a Multiagent Supervisor to delegate to narrowly scoped specialists directly addresses the described Databricks GenAI architecture: A help desk needs to route HR, IT and payroll questions to specialized agents. Supervisor orchestration is appropriate when a request must select among specialist capabilities. The solution should be validated using a measurable test, not only the existence of a saved prompt or configuration. The expected evidence is: Traces show correct specialist selection and domain restrictions on mixed test cases.
Incorrect Answers
A:“Define authenticated identity context as input and tenant-scoped answer objects as output” is associated with this technical property: Data boundaries are part of application design rather than optional prompt decoration. The question instead turns on “Use a Multiagent Supervisor to delegate to narrowly scoped specialists”: Supervisor orchestration is appropriate when a request must select among specialist capabilities.
B:“Supply the allowed label vocabulary and validate each response against its enum” is associated with this technical property: Closed-set classification needs a constrained output vocabulary not merely a generic topic summary. The question instead turns on “Use a Multiagent Supervisor to delegate to narrowly scoped specialists”: Supervisor orchestration is appropriate when a request must select among specialist capabilities.
D:“Specify explicit JSON fields and enforce a structured output schema with validation” is associated with this technical property: Structured constraints help guarantee downstream parseability instead of relying on a vague format request. The question instead turns on “Use a Multiagent Supervisor to delegate to narrowly scoped specialists”: Supervisor orchestration is appropriate when a request must select among specialist capabilities.
Question 557
An application intended to satisfy this requirement, A RAG system uses 500-token documents and an embedding model with a 384-token input limit, instead experiences: Long chunks are silently truncated and critical paragraph ends disappear. Which targeted engineering correction resolves this failure?
- Combine keyword and semantic retrieval, then optionally rerank shortlisted results
- Rerank the candidate set against the full query with a suitable reranker
- Evaluate multilingual embedding and optional query translation on representative pairs
- Reduce chunk tokens to fit effective embedding context with explicit truncation tests
Explanation
Correct Answer
D:Reduce chunk tokens to fit effective embedding context with explicit truncation tests targets the observed failure: Long chunks are silently truncated and critical paragraph ends disappear. Embedding input length bounds what content contributes to searchable vectors. Changing a different model component would not resolve this identified mechanism. To confirm the remediation, verify that Retrieval evaluations confirm relevant tail passages are indexed and retrievable.
Incorrect Answers
A:“Combine keyword and semantic retrieval, then optionally rerank shortlisted results” is associated with this technical property: Lexical exact matching complements dense retrieval for precise tokens. The question instead turns on “Reduce chunk tokens to fit effective embedding context with explicit truncation tests”: Embedding input length bounds what content contributes to searchable vectors.
B:“Rerank the candidate set against the full query with a suitable reranker” is associated with this technical property: Second-stage reranking can improve relevance where first-stage vectors are approximate. The question instead turns on “Reduce chunk tokens to fit effective embedding context with explicit truncation tests”: Embedding input length bounds what content contributes to searchable vectors.
C:“Evaluate multilingual embedding and optional query translation on representative pairs” is associated with this technical property: Query-language mismatch needs empirical retrieval coverage testing. The question instead turns on “Reduce chunk tokens to fit effective embedding context with explicit truncation tests”: Embedding input length bounds what content contributes to searchable vectors.
Question 558
An engineering review considers a safeguard for this situation: An agent endpoint has intermittent malformed tool calls after a model update. The proposed action is: Enable appropriately governed inference logging and trace retention. Which observed failure most strongly justifies that action?
- The team lacks requests and tool spans for production failures
- Aggregate usage table loses per-request debugging context
- Overall mean hides severe unauthorized transaction advice from one model
- Semantic similarity judges overlook a single wrong identifier
Explanation
Correct Answer
A:The team lacks requests and tool spans for production failures. This observation motivates the specific control to Enable appropriately governed inference logging and trace retention. Production debugging depends on evidence of actual invocation payloads. The follow-up evidence would be: Authorized support can reproduce a failed request without exposing unrelated private data. The other symptoms may matter elsewhere but do not identify the particular mechanism at issue.
Incorrect Answers
B:“Aggregate usage table loses per-request debugging context” is associated with this technical property: This observation motivates the specific control to Enable governed inference tables and correlate request IDs with MLflow traces. The question instead turns on “The team lacks requests and tool spans for production failures”: This observation motivates the specific control to Enable appropriately governed inference logging and trace retention.
C:“Overall mean hides severe unauthorized transaction advice from one model” is associated with this technical property: This observation motivates the specific control to Weight critical evaluation strata and set nonnegotiable failure limits. The question instead turns on “The team lacks requests and tool spans for production failures”: This observation motivates the specific control to Enable appropriately governed inference logging and trace retention.
D:“Semantic similarity judges overlook a single wrong identifier” is associated with this technical property: This observation motivates the specific control to Write a code-based scorer that compares expected identifiers and formats. The question instead turns on “The team lacks requests and tool spans for production failures”: This observation motivates the specific control to Enable appropriately governed inference logging and trace retention.
Question 559
An engineering review considers a safeguard for this situation: Global staff ask questions in Spanish about English maintenance manuals. The proposed action is: Evaluate multilingual embedding and optional query translation on representative pairs. Which observed failure most strongly justifies that action?
- A web scraper searches rendered strings and loses nested attribute semantics
- The response model hallucinates because top-k retrieval omitted the source
- Fixed character splits sever clause conditions from their headings
- Embedding and query retrieval quality falls for cross-language paraphrases
Explanation
Correct Answer
D:Embedding and query retrieval quality falls for cross-language paraphrases. This observation motivates the specific control to Evaluate multilingual embedding and optional query translation on representative pairs. Query-language mismatch needs empirical retrieval coverage testing. The follow-up evidence would be: Cross-language test set returns relevant approved procedures at target recall. The other symptoms may matter elsewhere but do not identify the particular mechanism at issue.
Incorrect Answers
A:“A web scraper searches rendered strings and loses nested attribute semantics” is associated with this technical property: This observation motivates the specific control to Parse JSON directly and normalize documented nested keys. The question instead turns on “Embedding and query retrieval quality falls for cross-language paraphrases”: This observation motivates the specific control to Evaluate multilingual embedding and optional query translation on representative pairs.
B:“The response model hallucinates because top-k retrieval omitted the source” is associated with this technical property: This observation motivates the specific control to Measure recall@k on labeled query-to-passage pairs and adjust candidate retrieval. The question instead turns on “Embedding and query retrieval quality falls for cross-language paraphrases”: This observation motivates the specific control to Evaluate multilingual embedding and optional query translation on representative pairs.
C:“Fixed character splits sever clause conditions from their headings” is associated with this technical property: This observation motivates the specific control to Chunk along semantic boundaries, carrying heading metadata into retrieval. The question instead turns on “Embedding and query retrieval quality falls for cross-language paraphrases”: This observation motivates the specific control to Evaluate multilingual embedding and optional query translation on representative pairs.
Question 560
For the requirement that A case-management screen needs a one-sentence gist of a multi-paragraph incident, the team proposes this change: Choose and evaluate a summarization-capable text generation model with a length instruction. Which technical principle explains why it is appropriate?
- Explicit data contracts make evaluation and downstream workflow integration possible
- Task fit matters because extraction and summarization preserve different information
- Matching a source paragraph is not equivalent to structured field extraction
- State-changing operations require authorization gates distinct from read-only retrieval
Explanation
Correct Answer
B:Task fit matters because extraction and summarization preserve different information. The proposed engineering step is to Choose and evaluate a summarization-capable text generation model with a length instruction. It directly supports the requirement that A case-management screen needs a one-sentence gist of a multi-paragraph incident. The operational test is that Evaluation confirms central incident facts survive compression within the sentence limit. This principle is more specific than a general instruction to retry or increase model size.
Incorrect Answers
A:“Explicit data contracts make evaluation and downstream workflow integration possible” is associated with this technical property: It directly supports the requirement that Legal review requires clause-level risk summaries linked to source document identifiers. The question instead turns on “Task fit matters because extraction and summarization preserve different information”: It directly supports the requirement that A case-management screen needs a one-sentence gist of a multi-paragraph incident.
C:“Matching a source paragraph is not equivalent to structured field extraction” is associated with this technical property: It directly supports the requirement that A claims project requires exact claim amount fields, not narrative document search. The question instead turns on “Task fit matters because extraction and summarization preserve different information”: It directly supports the requirement that A case-management screen needs a one-sentence gist of a multi-paragraph incident.
D:“State-changing operations require authorization gates distinct from read-only retrieval” is associated with this technical property: It directly supports the requirement that An expense agent can draft reimbursement requests but must not submit without consent. The question instead turns on “Task fit matters because extraction and summarization preserve different information”: It directly supports the requirement that A case-management screen needs a one-sentence gist of a multi-paragraph incident.