Certified Generative AI Engineer Associate Practice Test 16
Question 150
A Databricks generative AI team is designing a solution with this requirement: Users request a one-line summary of an already verified technical explanation. Which engineering approach should it select first?
- Review model-card licensing and usage restrictions before selection
- Add a bounded summary instruction preserving critical qualifier and context
- Treat user text as untrusted, enforce tool authorization outside model prompts and test injection
- Compare validated retrieval quality against vector dimensionality and compute cost
Explanation
Correct Answer
B:Add a bounded summary instruction preserving critical qualifier and context directly addresses the described Databricks GenAI architecture: Users request a one-line summary of an already verified technical explanation. Prompt editing can adjust expression without replacing underlying evidence. The solution should be validated using a measurable test, not only the existence of a saved prompt or configuration. The expected evidence is: Summaries fit configured length and retain key safety caveat.
Incorrect Answers
A:“Review model-card licensing and usage restrictions before selection” is associated with this technical property: Technical suitability does not grant legal permission for deployment. The question instead turns on “Add a bounded summary instruction preserving critical qualifier and context”: Prompt editing can adjust expression without replacing underlying evidence.
C:“Treat user text as untrusted, enforce tool authorization outside model prompts and test injection” is associated with this technical property: Prompt-level safeguards must be backed by code-level privilege checks. The question instead turns on “Add a bounded summary instruction preserving critical qualifier and context”: Prompt editing can adjust expression without replacing underlying evidence.
D:“Compare validated retrieval quality against vector dimensionality and compute cost” is associated with this technical property: Larger embedding dimension increases storage and index work without universal quality improvement. The question instead turns on “Add a bounded summary instruction preserving critical qualifier and context”: Prompt editing can adjust expression without replacing underlying evidence.
Question 151
The team observes this failure in a GenAI application: Candidate model produces fluent answers but malformed tool arguments under load. After implementing the fix to Choose a model evaluated on structured tool-use success and error recovery, which measurement or test most directly demonstrates success?
- Red-team prompts trigger refusal and benign requests remain available
- Tool-call success rate and fallback behavior meet test targets
- Mixed-intent tests route to the intended specialist and enforce permissions
- Authorized clients call versioned endpoint and traces capture requests
Explanation
Correct Answer
B:Tool-call success rate and fallback behavior meet test targets. This specifically validates the remediation to Choose a model evaluated on structured tool-use success and error recovery for the failure that Candidate model produces fluent answers but malformed tool arguments under load. Tool calling reliability is a distinct operational capability from general language fluency. A response that merely looks fluent or a successful configuration save would not be sufficient evidence.
Incorrect Answers
A:“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 “Tool-call success rate and fallback behavior meet test targets”: Tool calling reliability is a distinct operational capability from general language fluency.
C:“Mixed-intent tests route to the intended specialist and enforce permissions” is associated with this technical property: Delegation can reduce cross-domain tool confusion when roles are explicit. The question instead turns on “Tool-call success rate and fallback behavior meet test targets”: Tool calling reliability is a distinct operational capability from general language fluency.
D:“Authorized clients call versioned endpoint and traces capture requests” is associated with this technical property: Deployment lifecycle requires governed inference endpoint and observability. The question instead turns on “Tool-call success rate and fallback behavior meet test targets”: Tool calling reliability is a distinct operational capability from general language fluency.
Question 152
The team observes this failure in a GenAI application: A retriever returns relevant paragraphs but no stable machine-readable claim value. After implementing the fix to Select information extraction with validation and optional citations before using generative prose, which measurement or test most directly demonstrates success?
- Answer traces show relevant handbook evidence for each supported response
- Contract tests parse JSON and verify required fields and data types on diverse invoices
- Cross-account probes yield no unauthorized fields while same-account cases still work
- Output carries validated decimal amount and provenance for reviewed claims
Explanation
Correct Answer
D:Output carries validated decimal amount and provenance for reviewed claims. This specifically validates the remediation to Select information extraction with validation and optional citations before using generative prose for the failure that A retriever returns relevant paragraphs but no stable machine-readable claim value. Matching a source paragraph is not equivalent to structured field extraction. A response that merely looks fluent or a successful configuration save would not be sufficient evidence.
Incorrect Answers
A:“Answer traces show relevant handbook evidence for each supported response” is associated with this technical property: Retrieval-augmented generation grounds changing factual claims in controlled enterprise sources. The question instead turns on “Output carries validated decimal amount and provenance for reviewed claims”: Matching a source paragraph is not equivalent to structured field extraction.
B:“Contract tests parse JSON and verify required fields and data types on diverse invoices” 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 “Output carries validated decimal amount and provenance for reviewed claims”: Matching a source paragraph is not equivalent to structured field extraction.
C:“Cross-account probes yield no unauthorized fields while same-account cases still work” is associated with this technical property: Data boundaries are part of application design rather than optional prompt decoration. The question instead turns on “Output carries validated decimal amount and provenance for reviewed claims”: Matching a source paragraph is not equivalent to structured field extraction.
Question 153
For the requirement that A healthcare support bot must respond concisely without changing factual policy, the team proposes this change: Specify tone and brevity separately from factual evidence and noninvention constraints. Which technical principle explains why it is appropriate?
- Chunking is an empirical quality-cost decision rather than a universal fixed size
- Style instructions should not override content validity
- Input modality support is a prerequisite for accurate task execution
- Typed interfaces constrain model actions and separate credentials from prompt text
Explanation
Correct Answer
B:Style instructions should not override content validity. The proposed engineering step is to Specify tone and brevity separately from factual evidence and noninvention constraints. It directly supports the requirement that A healthcare support bot must respond concisely without changing factual policy. The operational test is that Sample responses are concise and friendly while preserving all required cautions. This principle is more specific than a general instruction to retry or increase model size.
Incorrect Answers
A:“Chunking is an empirical quality-cost decision rather than a universal fixed size” is associated with this technical property: It directly supports the requirement that A team proposes the largest chunk size without analyzing retrieval failures. The question instead turns on “Style instructions should not override content validity”: It directly supports the requirement that A healthcare support bot must respond concisely without changing factual policy.
C:“Input modality support is a prerequisite for accurate task execution” is associated with this technical property: It directly supports the requirement that An invoice archive includes scanned photos requiring OCR or vision. The question instead turns on “Style instructions should not override content validity”: It directly supports the requirement that A healthcare support bot must respond concisely without changing factual policy.
D:“Typed interfaces constrain model actions and separate credentials from prompt text” is associated with this technical property: It directly supports the requirement that An assistant may fetch approved weather data from a licensed external API. The question instead turns on “Style instructions should not override content validity”: It directly supports the requirement that A healthcare support bot must respond concisely without changing factual policy.
Question 154
A Databricks generative AI team is designing a solution with this requirement: An agent arranges regional policy guidance but the user's location is unspecified. Which engineering approach should it select first?
- Evaluate fixed scenario strata and failure-critical tests before rollout
- Compare model-card context limits with realistic inputs and adjust architecture
- Use a retriever abstraction around the approved vector search implementation
- Require verified region input or clarify before selecting jurisdictional sources
Explanation
Correct Answer
D:Require verified region input or clarify before selecting jurisdictional sources directly addresses the described Databricks GenAI architecture: An agent arranges regional policy guidance but the user's location is unspecified. Missing essential context should be surfaced instead of silently inferred. The solution should be validated using a measurable test, not only the existence of a saved prompt or configuration. The expected evidence is: Jurisdiction prompts avoid invented legal location and cite selected policy scope.
Incorrect Answers
A:“Evaluate fixed scenario strata and failure-critical tests before rollout” is associated with this technical property: A single benchmark mean can mask unacceptable failure modes. The question instead turns on “Require verified region input or clarify before selecting jurisdictional sources”: Missing essential context should be surfaced instead of silently inferred.
B:“Compare model-card context limits with realistic inputs and adjust architecture” is associated with this technical property: Model metadata constraints must shape processing and evaluation. The question instead turns on “Require verified region input or clarify before selecting jurisdictional sources”: Missing essential context should be surfaced instead of silently inferred.
C:“Use a retriever abstraction around the approved vector search implementation” is associated with this technical property: Separating retrieval contract from storage implementation reduces migration coupling. The question instead turns on “Require verified region input or clarify before selecting jurisdictional sources”: Missing essential context should be surfaced instead of silently inferred.
Question 155
An application intended to satisfy this requirement, A malicious policy PDF contains text pretending to be a system command, instead experiences: The agent follows document instructions to call a privileged tool. Which targeted engineering correction resolves this failure?
- Filter high-frequency spam and check source authority before indexing
- Treat retrieved passages as untrusted data and enforce tool policies outside prompts
- Mask or tokenize restricted fields before indexing and apply access-aware lookup where needed
- Choose supported masking/redaction or logging minimization before persisted telemetry
Explanation
Correct Answer
B:Treat retrieved passages as untrusted data and enforce tool policies outside prompts targets the observed failure: The agent follows document instructions to call a privileged tool. External context must not override trusted instructions or tool authorization. Changing a different model component would not resolve this identified mechanism. To confirm the remediation, verify that Injected document cannot trigger restricted actions and answers cite safe evidence only.
Incorrect Answers
A:“Filter high-frequency spam and check source authority before indexing” is associated with this technical property: Preprocessing can prevent irrelevant content from dominating semantic search. The question instead turns on “Treat retrieved passages as untrusted data and enforce tool policies outside prompts”: External context must not override trusted instructions or tool authorization.
C:“Mask or tokenize restricted fields before indexing and apply access-aware lookup where needed” is associated with this technical property: Masking is more reliable at ingestion than hoping an output prompt hides every identifier. The question instead turns on “Treat retrieved passages as untrusted data and enforce tool policies outside prompts”: External context must not override trusted instructions or tool authorization.
D:“Choose supported masking/redaction or logging minimization before persisted telemetry” is associated with this technical property: Operational metrics should avoid storing unnecessary sensitive payloads. The question instead turns on “Treat retrieved passages as untrusted data and enforce tool policies outside prompts”: External context must not override trusted instructions or tool authorization.
Question 156
The team observes this failure in a GenAI application: A prompt emphasizing empathy leads to unsupported reassurance. After implementing the fix to Specify tone and brevity separately from factual evidence and noninvention constraints, which measurement or test most directly demonstrates success?
- Traces show a retrieval call, calculation result and final text with handled tool errors
- Multi-turn tests use the correct authorized incident and reset state between users
- API rejects unapproved write calls regardless of model phrasing
- Sample responses are concise and friendly while preserving all required cautions
Explanation
Correct Answer
D:Sample responses are concise and friendly while preserving all required cautions. This specifically validates the remediation to Specify tone and brevity separately from factual evidence and noninvention constraints for the failure that A prompt emphasizing empathy leads to unsupported reassurance. Style instructions should not override content validity. A response that merely looks fluent or a successful configuration save would not be sufficient evidence.
Incorrect Answers
A:“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 “Sample responses are concise and friendly while preserving all required cautions”: Style instructions should not override content validity.
B:“Multi-turn tests use the correct authorized incident and reset state between users” is associated with this technical property: Explicit state management is safer than assuming an isolated LLM call remembers prior inputs. The question instead turns on “Sample responses are concise and friendly while preserving all required cautions”: Style instructions should not override content validity.
C:“API rejects unapproved write calls regardless of model phrasing” is associated with this technical property: Authorization enforced at tools cannot be bypassed by generated text. The question instead turns on “Sample responses are concise and friendly while preserving all required cautions”: Style instructions should not override content validity.
Question 157
The team observes this failure in a GenAI application: One single-purpose document agent routes payroll queries into IT answers. After implementing the fix to Use a Multiagent Supervisor to delegate to narrowly scoped specialists, which measurement or test most directly demonstrates success?
- Cross-account probes yield no unauthorized fields while same-account cases still work
- Traces show correct specialist selection and domain restrictions on mixed test cases
- Checked sample letters have faithful fields and missing values remain missing
- Prototype output includes traceable clauses, stable identifiers and required risk fields
Explanation
Correct Answer
B:Traces show correct specialist selection and domain restrictions on mixed test cases. This specifically validates the remediation to Use a Multiagent Supervisor to delegate to narrowly scoped specialists for the failure that One single-purpose document agent routes payroll queries into IT answers. Supervisor orchestration is appropriate when a request must select among specialist capabilities. A response that merely looks fluent or a successful configuration save would not be sufficient evidence.
Incorrect Answers
A:“Cross-account probes yield no unauthorized fields while same-account cases still work” is associated with this technical property: Data boundaries are part of application design rather than optional prompt decoration. The question instead turns on “Traces show correct specialist selection and domain restrictions on mixed test cases”: Supervisor orchestration is appropriate when a request must select among specialist capabilities.
C:“Checked sample letters have faithful fields and missing values remain missing” is associated with this technical property: Entity extraction should preserve evidence spans and avoid inventing unavailable fields. The question instead turns on “Traces show correct specialist selection and domain restrictions on mixed test cases”: Supervisor orchestration is appropriate when a request must select among specialist capabilities.
D:“Prototype output includes traceable clauses, stable identifiers and required risk fields” is associated with this technical property: Explicit data contracts make evaluation and downstream workflow integration possible. The question instead turns on “Traces show correct specialist selection and domain restrictions on mixed test cases”: Supervisor orchestration is appropriate when a request must select among specialist capabilities.
Question 158
The team observes this failure in a GenAI application: The UI crashes when parser receives a free-form string. After implementing the fix to Add typed output parsing and schema validation in the pyfunc predict path, which measurement or test most directly demonstrates success?
- Index queries return distinct expected records and change updates affect only intended ID
- Test set improves exact error-code recall and paraphrase relevance
- All accepted requests return the specified response object with citations or explicit unavailable evidence
- Injected timeout returns a transparent transient-error message, not a fabricated fact
Explanation
Correct Answer
C:All accepted requests return the specified response object with citations or explicit unavailable evidence. This specifically validates the remediation to Add typed output parsing and schema validation in the pyfunc predict path for the failure that The UI crashes when parser receives a free-form string. Preprocessing and postprocessing are deployable model behavior and need independent tests. A response that merely looks fluent or a successful configuration save would not be sufficient evidence.
Incorrect Answers
A:“Index queries return distinct expected records and change updates affect only intended ID” is associated with this technical property: A vector index needs consistent row identity to synchronize source mutations. The question instead turns on “All accepted requests return the specified response object with citations or explicit unavailable evidence”: Preprocessing and postprocessing are deployable model behavior and need independent tests.
B:“Test set improves exact error-code recall and paraphrase relevance” is associated with this technical property: Keyword and dense methods retrieve complementary kinds of evidence. The question instead turns on “All accepted requests return the specified response object with citations or explicit unavailable evidence”: Preprocessing and postprocessing are deployable model behavior and need independent tests.
D:“Injected timeout returns a transparent transient-error message, not a fabricated fact” is associated with this technical property: Transport failure is not equivalent to a negative result in business logic. The question instead turns on “All accepted requests return the specified response object with citations or explicit unavailable evidence”: Preprocessing and postprocessing are deployable model behavior and need independent tests.
Question 159
A Databricks generative AI team is designing a solution with this requirement: Two approved policy versions disagree about the same reimbursement rule. Which engineering approach should it select first?
- Select compliant deployment and data-processing path after checking vendor terms
- Prioritize effective approved source versions and surface unresolved contradiction
- Choose supported masking/redaction or logging minimization before persisted telemetry
- Validate and bind tenant scope server-side for every tool call
Explanation
Correct Answer
B:Prioritize effective approved source versions and surface unresolved contradiction directly addresses the described Databricks GenAI architecture: Two approved policy versions disagree about the same reimbursement rule. Conflicting sources require precedence or explicit uncertainty rather than fabricated synthesis. The solution should be validated using a measurable test, not only the existence of a saved prompt or configuration. The expected evidence is: Ambiguous cases cite controlling version or clearly flag the disagreement.
Incorrect Answers
A:“Select compliant deployment and data-processing path after checking vendor terms” is associated with this technical property: Deployment architecture must respect jurisdictional and contractual data handling. The question instead turns on “Prioritize effective approved source versions and surface unresolved contradiction”: Conflicting sources require precedence or explicit uncertainty rather than fabricated synthesis.
C:“Choose supported masking/redaction or logging minimization before persisted telemetry” is associated with this technical property: Operational metrics should avoid storing unnecessary sensitive payloads. The question instead turns on “Prioritize effective approved source versions and surface unresolved contradiction”: Conflicting sources require precedence or explicit uncertainty rather than fabricated synthesis.
D:“Validate and bind tenant scope server-side for every tool call” is associated with this technical property: Model-generated arguments are not an authorization boundary. The question instead turns on “Prioritize effective approved source versions and surface unresolved contradiction”: Conflicting sources require precedence or explicit uncertainty rather than fabricated synthesis.
Question 160
An engineering review considers a safeguard for this situation: A summarization model has promising scores but maximum input shorter than user documents. The proposed action is: Compare model-card context limits with realistic inputs and adjust architecture. Which observed failure most strongly justifies that action?
- The deployment chooses the premium model without considering volume
- Long-form generation ignores the requested output length
- General embeddings match semantically adjacent manuals but miss exact code passages
- The pipeline truncates product recalls and produces misleading summaries
Explanation
Correct Answer
D:The pipeline truncates product recalls and produces misleading summaries. This observation motivates the specific control to Compare model-card context limits with realistic inputs and adjust architecture. Model metadata constraints must shape processing and evaluation. The follow-up evidence would be: Test documents are within supported input bounds or split with faithful recombination. The other symptoms may matter elsewhere but do not identify the particular mechanism at issue.
Incorrect Answers
A:“The deployment chooses the premium model without considering volume” is associated with this technical property: This observation motivates the specific control to Plot cost, latency and quality tradeoffs under expected traffic mix. The question instead turns on “The pipeline truncates product recalls and produces misleading summaries”: This observation motivates the specific control to Compare model-card context limits with realistic inputs and adjust architecture.
B:“Long-form generation ignores the requested output length” is associated with this technical property: This observation motivates the specific control to Add a bounded summary instruction preserving critical qualifier and context. The question instead turns on “The pipeline truncates product recalls and produces misleading summaries”: This observation motivates the specific control to Compare model-card context limits with realistic inputs and adjust architecture.
C:“General embeddings match semantically adjacent manuals but miss exact code passages” is associated with this technical property: This observation motivates the specific control to Pair appropriate embedding model with keyword/hybrid matching for identifiers. The question instead turns on “The pipeline truncates product recalls and produces misleading summaries”: This observation motivates the specific control to Compare model-card context limits with realistic inputs and adjust architecture.