Certified Generative AI Engineer Associate Practice Test 20
Question 190
A Databricks generative AI team is designing a solution with this requirement: A support answer may include an account number retrieved for legitimate backend processing. Which engineering approach should it select first?
- Apply output redaction/masking under policy before responding
- Resolve follow-up reference against authorized conversation state before tool call
- Provide validated examples and a machine-enforced output schema for the target shape
- Evaluate retrieval-boundary instruction-following and add untrusted-context handling
Explanation
Correct Answer
A:Apply output redaction/masking under policy before responding directly addresses the described Databricks GenAI architecture: A support answer may include an account number retrieved for legitimate backend processing. Data minimization applies to model outputs as well as retrieval. The solution should be validated using a measurable test, not only the existence of a saved prompt or configuration. The expected evidence is: Automated tests detect full identifier leaks while masked identifiers display correctly.
Incorrect Answers
B:“Resolve follow-up reference against authorized conversation state before tool call” is associated with this technical property: Coreference resolution should preserve scoped intent and entity continuity. The question instead turns on “Apply output redaction/masking under policy before responding”: Data minimization applies to model outputs as well as retrieval.
C:“Provide validated examples and a machine-enforced output schema for the target shape” is associated with this technical property: Examples can guide style while schema checks enforce contract. The question instead turns on “Apply output redaction/masking under policy before responding”: Data minimization applies to model outputs as well as retrieval.
D:“Evaluate retrieval-boundary instruction-following and add untrusted-context handling” is associated with this technical property: Retrieved text is evidence, not a higher-priority instruction. The question instead turns on “Apply output redaction/masking under policy before responding”: Data minimization applies to model outputs as well as retrieval.
Question 191
The team observes this failure in a GenAI application: The answer model invents undocumented steps to appear helpful. After implementing the fix to Prompt for evidence-conditioned answers and explicit unsupported-status handling, which measurement or test most directly demonstrates success?
- Unknown-feature test prompts yield no false procedure and request approved documentation
- Release gate checks per-slice regression and disallows critical behavior loss
- Tests of sequential order questions refer to the expected order only
- Chosen model meets recall target with lower measured index bytes and latency
Explanation
Correct Answer
A:Unknown-feature test prompts yield no false procedure and request approved documentation. This specifically validates the remediation to Prompt for evidence-conditioned answers and explicit unsupported-status handling for the failure that The answer model invents undocumented steps to appear helpful. Abstention is preferable to fabricated specifics when retrieval lacks support. A response that merely looks fluent or a successful configuration save would not be sufficient evidence.
Incorrect Answers
B:“Release gate checks per-slice regression and disallows critical behavior loss” is associated with this technical property: A single benchmark mean can mask unacceptable failure modes. The question instead turns on “Unknown-feature test prompts yield no false procedure and request approved documentation”: Abstention is preferable to fabricated specifics when retrieval lacks support.
C:“Tests of sequential order questions refer to the expected order only” is associated with this technical property: Coreference resolution should preserve scoped intent and entity continuity. The question instead turns on “Unknown-feature test prompts yield no false procedure and request approved documentation”: Abstention is preferable to fabricated specifics when retrieval lacks support.
D:“Chosen model meets recall target with lower measured index bytes and latency” is associated with this technical property: Larger embedding dimension increases storage and index work without universal quality improvement. The question instead turns on “Unknown-feature test prompts yield no false procedure and request approved documentation”: Abstention is preferable to fabricated specifics when retrieval lacks support.
Question 192
The team observes this failure in a GenAI application: Each tool call sees only the latest message and queries the wrong incident. After implementing the fix to Choose an orchestration pattern that passes validated state and scoped conversation context, which measurement or test most directly demonstrates success?
- Jurisdiction prompts avoid invented legal location and cite selected policy scope
- Multi-turn tests use the correct authorized incident and reset state between users
- Human-reviewed multilingual scenarios meet answer relevance and language constraints
- Reviewers can trace each material claim to a passage or a documented abstention
Explanation
Correct Answer
B:Multi-turn tests use the correct authorized incident and reset state between users. This specifically validates the remediation to Choose an orchestration pattern that passes validated state and scoped conversation context for the failure that Each tool call sees only the latest message and queries the wrong incident. Explicit state management is safer than assuming an isolated LLM call remembers prior inputs. A response that merely looks fluent or a successful configuration save would not be sufficient evidence.
Incorrect Answers
A:“Jurisdiction prompts avoid invented legal location and cite selected policy scope” is associated with this technical property: Missing essential context should be surfaced instead of silently inferred. The question instead turns on “Multi-turn tests use the correct authorized incident and reset state between users”: Explicit state management is safer than assuming an isolated LLM call remembers prior inputs.
C:“Human-reviewed multilingual scenarios meet answer relevance and language constraints” is associated with this technical property: Language capability must be validated on representative user inputs. The question instead turns on “Multi-turn tests use the correct authorized incident and reset state between users”: Explicit state management is safer than assuming an isolated LLM call remembers prior inputs.
D:“Reviewers can trace each material claim to a passage or a documented abstention” is associated with this technical property: Fluency is not evidence of grounded correctness. The question instead turns on “Multi-turn tests use the correct authorized incident and reset state between users”: Explicit state management is safer than assuming an isolated LLM call remembers prior inputs.
Question 193
An application intended to satisfy this requirement, A retrieved web page instructs an agent to send internal data to an external URL, instead experiences: The agent attempts a network call not required by the user's question. Which targeted engineering correction resolves this failure?
- Prioritize effective approved source versions and surface unresolved contradiction
- Normalize encoding, repair OCR where justified and retain original source reference
- Constrain external tools, allowlisted destinations and approval for data egress
- Parse, label and isolate untrusted document instructions while preserving legitimate factual content
Explanation
Correct Answer
C:Constrain external tools, allowlisted destinations and approval for data egress targets the observed failure: The agent attempts a network call not required by the user's question. Prompt injection becomes dangerous when untrusted content controls tool side effects. Changing a different model component would not resolve this identified mechanism. To confirm the remediation, verify that Adversarial page cannot cause unauthorized network export.
Incorrect Answers
A:“Prioritize effective approved source versions and surface unresolved contradiction” is associated with this technical property: Conflicting sources require precedence or explicit uncertainty rather than fabricated synthesis. The question instead turns on “Constrain external tools, allowlisted destinations and approval for data egress”: Prompt injection becomes dangerous when untrusted content controls tool side effects.
B:“Normalize encoding, repair OCR where justified and retain original source reference” is associated with this technical property: Data quality repair must preserve evidence and not silently change meaning. The question instead turns on “Constrain external tools, allowlisted destinations and approval for data egress”: Prompt injection becomes dangerous when untrusted content controls tool side effects.
D:“Parse, label and isolate untrusted document instructions while preserving legitimate factual content” is associated with this technical property: Source cleaning reduces accidental execution of embedded instructions. The question instead turns on “Constrain external tools, allowlisted destinations and approval for data egress”: Prompt injection becomes dangerous when untrusted content controls tool side effects.
Question 194
The team observes this failure in a GenAI application: The assistant sometimes emits markdown prose that breaks the consuming parser. After implementing the fix to Specify explicit JSON fields and enforce a structured output schema with validation, which measurement or test most directly demonstrates success?
- Recomputed averages match source event durations and generated prose
- Contract tests parse JSON and verify required fields and data types on diverse invoices
- Load tests meet latency percentile and accuracy thresholds with stage timings recorded
- Answer traces show relevant handbook evidence for each supported response
Explanation
Correct Answer
B:Contract tests parse JSON and verify required fields and data types on diverse invoices. This specifically validates the remediation to Specify explicit JSON fields and enforce a structured output schema with validation for the failure that The assistant sometimes emits markdown prose that breaks the consuming parser. Structured constraints help guarantee downstream parseability instead of relying on a vague format request. A response that merely looks fluent or a successful configuration save would not be sufficient evidence.
Incorrect Answers
A:“Recomputed averages match source event durations and generated prose” is associated with this technical property: Deterministic computation should handle precise arithmetic while an LLM explains the result. The question instead turns on “Contract tests parse JSON and verify required fields and data types on diverse invoices”: Structured constraints help guarantee downstream parseability instead of relying on a vague format request.
C:“Load tests meet latency percentile and accuracy thresholds with stage timings recorded” is associated with this technical property: Decomposing requirements into measurable stage constraints prevents expensive architecture surprises. The question instead turns on “Contract tests parse JSON and verify required fields and data types on diverse invoices”: Structured constraints help guarantee downstream parseability instead of relying on a vague format request.
D:“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 “Contract tests parse JSON and verify required fields and data types on diverse invoices”: Structured constraints help guarantee downstream parseability instead of relying on a vague format request.
Question 195
For the requirement that Compliance Q&A must answer from the latest approved policy revision, the team proposes this change: Filter or version source records by approval status and effective date. Which technical principle explains why it is appropriate?
- Embedding input length bounds what content contributes to searchable vectors
- Lexical exact matching complements dense retrieval for precise tokens
- Structure-aware chunking preserves context and filters better than indiscriminate splitting
- Freshness and document authority should constrain eligible retrieval candidates
Explanation
Correct Answer
D:Freshness and document authority should constrain eligible retrieval candidates. The proposed engineering step is to Filter or version source records by approval status and effective date. It directly supports the requirement that Compliance Q&A must answer from the latest approved policy revision. The operational test is that Outdated policy text cannot appear as approved evidence after release cutover. This principle is more specific than a general instruction to retry or increase model size.
Incorrect Answers
A:“Embedding input length bounds what content contributes to searchable vectors” is associated with this technical property: It directly supports the requirement that A RAG system uses 500-token documents and an embedding model with a 384-token input limit. The question instead turns on “Freshness and document authority should constrain eligible retrieval candidates”: It directly supports the requirement that Compliance Q&A must answer from the latest approved policy revision.
B:“Lexical exact matching complements dense retrieval for precise tokens” is associated with this technical property: It directly supports the requirement that Error-code questions include precise strings absent from semantic synonyms. The question instead turns on “Freshness and document authority should constrain eligible retrieval candidates”: It directly supports the requirement that Compliance Q&A must answer from the latest approved policy revision.
C:“Structure-aware chunking preserves context and filters better than indiscriminate splitting” is associated with this technical property: It directly supports the requirement that Contracts have headings, numbered clauses and definitions referenced together. The question instead turns on “Freshness and document authority should constrain eligible retrieval candidates”: It directly supports the requirement that Compliance Q&A must answer from the latest approved policy revision.
Question 196
For the requirement that An FAQ retriever delivers one sentence without the exception in the next paragraph, the team proposes this change: Increase chunk continuity or retrieve adjacent parent context based on evaluation failures. Which technical principle explains why it is appropriate?
- Model size and cost should match task complexity rather than marketing labels
- Chunk size and parent context should be tuned against grounded-answer error patterns
- Style instructions should not override content validity
- Fluency is not evidence of grounded correctness
Explanation
Correct Answer
B:Chunk size and parent context should be tuned against grounded-answer error patterns. The proposed engineering step is to Increase chunk continuity or retrieve adjacent parent context based on evaluation failures. It directly supports the requirement that An FAQ retriever delivers one sentence without the exception in the next paragraph. The operational test is that Exception questions retrieve both base rule and exception while latency remains within budget. This principle is more specific than a general instruction to retry or increase model size.
Incorrect Answers
A:“Model size and cost should match task complexity rather than marketing labels” is associated with this technical property: It directly supports the requirement that A high-volume FAQ agent has a strict 500 ms response budget. The question instead turns on “Chunk size and parent context should be tuned against grounded-answer error patterns”: It directly supports the requirement that An FAQ retriever delivers one sentence without the exception in the next paragraph.
C:“Style instructions should not override content validity” is associated with this technical property: It directly supports the requirement that A healthcare support bot must respond concisely without changing factual policy. The question instead turns on “Chunk size and parent context should be tuned against grounded-answer error patterns”: It directly supports the requirement that An FAQ retriever delivers one sentence without the exception in the next paragraph.
D:“Fluency is not evidence of grounded correctness” is associated with this technical property: It directly supports the requirement that A RAG bot answers a policy question with a plausible paragraph unsupported by retrieval. The question instead turns on “Chunk size and parent context should be tuned against grounded-answer error patterns”: It directly supports the requirement that An FAQ retriever delivers one sentence without the exception in the next paragraph.
Question 197
For the requirement that Knowledge source includes scanned handwritten or image-only policy pages, the team proposes this change: Use an appropriate OCR stage for image content with quality checks. Which technical principle explains why it is appropriate?
- Hierarchical retrieval combines search granularity with coherent generation context
- Optical character recognition extracts image text where text-layer parsers have none
- Idempotent updates prevent duplicate indexed chunks and limit processing cost
- Embedding input length bounds what content contributes to searchable vectors
Explanation
Correct Answer
B:Optical character recognition extracts image text where text-layer parsers have none. The proposed engineering step is to Use an appropriate OCR stage for image content with quality checks. It directly supports the requirement that Knowledge source includes scanned handwritten or image-only policy pages. The operational test is that Reviewed sampled pages have readable text and low-confidence items are flagged. This principle is more specific than a general instruction to retry or increase model size.
Incorrect Answers
A:“Hierarchical retrieval combines search granularity with coherent generation context” is associated with this technical property: It directly supports the requirement that A lengthy engineering manual has chapters, headings and steps. The question instead turns on “Optical character recognition extracts image text where text-layer parsers have none”: It directly supports the requirement that Knowledge source includes scanned handwritten or image-only policy pages.
C:“Idempotent updates prevent duplicate indexed chunks and limit processing cost” is associated with this technical property: It directly supports the requirement that A nightly source refresh modifies a subset of documents. The question instead turns on “Optical character recognition extracts image text where text-layer parsers have none”: It directly supports the requirement that Knowledge source includes scanned handwritten or image-only policy pages.
D:“Embedding input length bounds what content contributes to searchable vectors” is associated with this technical property: It directly supports the requirement that A RAG system uses 500-token documents and an embedding model with a 384-token input limit. The question instead turns on “Optical character recognition extracts image text where text-layer parsers have none”: It directly supports the requirement that Knowledge source includes scanned handwritten or image-only policy pages.
Question 198
A Databricks generative AI team is designing a solution with this requirement: A production endpoint needs to move between validated model revisions. Which engineering approach should it select first?
- Apply authorized metadata or row-level eligibility filters before returning results
- Prefer supported managed MCP servers when their existing tools fit the task
- Use governed model versions and aliases or equivalent approved promotion controls
- Implement deterministic input validation and normalization before invoking the model in a pyfunc wrapper
Explanation
Correct Answer
C:Use governed model versions and aliases or equivalent approved promotion controls directly addresses the described Databricks GenAI architecture: A production endpoint needs to move between validated model revisions. Versioned model identity supports rollback without overwriting the source model. The solution should be validated using a measurable test, not only the existence of a saved prompt or configuration. The expected evidence is: Release can switch back to prior model version with tested behavior.
Incorrect Answers
A:“Apply authorized metadata or row-level eligibility filters before returning results” is associated with this technical property: Similarity score is not authorization or publication status. The question instead turns on “Use governed model versions and aliases or equivalent approved promotion controls”: Versioned model identity supports rollback without overwriting the source model.
B:“Prefer supported managed MCP servers when their existing tools fit the task” is associated with this technical property: Managed service tools reduce custom hosting and leverage workspace authorization. The question instead turns on “Use governed model versions and aliases or equivalent approved promotion controls”: Versioned model identity supports rollback without overwriting the source model.
D:“Implement deterministic input validation and normalization before invoking the model in a pyfunc wrapper” is associated with this technical property: A serving wrapper should enforce a stable input contract independent of model behavior. The question instead turns on “Use governed model versions and aliases or equivalent approved promotion controls”: Versioned model identity supports rollback without overwriting the source model.
Question 199
An application intended to satisfy this requirement, A marketplace model promises strong generic benchmark scores, instead experiences: Domain-specific entity extraction tests show high error despite leaderboard ranking. Which targeted engineering correction resolves this failure?
- Validate model-card claims on an application-specific held-out dataset
- Use an agent orchestration framework with explicit typed tool definitions and execution traces
- Try smaller heading-aware chunks and compare retrieval performance on labeled queries
- Verify authenticated user authority and explicit approval in the action service
Explanation
Correct Answer
A:Validate model-card claims on an application-specific held-out dataset targets the observed failure: Domain-specific entity extraction tests show high error despite leaderboard ranking. Published benchmarks do not guarantee performance on a specialized dataset. Changing a different model component would not resolve this identified mechanism. To confirm the remediation, verify that Selection record includes measured accuracy, costs and failures.
Incorrect Answers
B:“Use an agent orchestration framework with explicit typed tool definitions and execution traces” 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 “Validate model-card claims on an application-specific held-out dataset”: Published benchmarks do not guarantee performance on a specialized dataset.
C:“Try smaller heading-aware chunks and compare retrieval performance on labeled queries” is associated with this technical property: Search granularity can improve precision when documents mix unrelated topics. The question instead turns on “Validate model-card claims on an application-specific held-out dataset”: Published benchmarks do not guarantee performance on a specialized dataset.
D:“Verify authenticated user authority and explicit approval in the action service” is associated with this technical property: Authorization enforced at tools cannot be bypassed by generated text. The question instead turns on “Validate model-card claims on an application-specific held-out dataset”: Published benchmarks do not guarantee performance on a specialized dataset.
Question 200
A Databricks generative AI team is designing a solution with this requirement: Price availability text changes many times daily and must affect semantic search rapidly. Which engineering approach should it select first?
- Choose a stable unique primary key and valid text/embedding fields for the index
- Implement deterministic input validation and normalization before invoking the model in a pyfunc wrapper
- Choose supported index synchronization mode and verify freshness SLA under updates
- Use an authenticated Databricks App backend that holds server-side endpoint credentials
Explanation
Correct Answer
C:Choose supported index synchronization mode and verify freshness SLA under updates directly addresses the described Databricks GenAI architecture: Price availability text changes many times daily and must affect semantic search rapidly. Update frequency is a key design input for choosing index deployment. The solution should be validated using a measurable test, not only the existence of a saved prompt or configuration. The expected evidence is: A changed catalog record appears in results within agreed refresh window.
Incorrect Answers
A:“Choose a stable unique primary key and valid text/embedding fields for the index” is associated with this technical property: A vector index needs consistent row identity to synchronize source mutations. The question instead turns on “Choose supported index synchronization mode and verify freshness SLA under updates”: Update frequency is a key design input for choosing index deployment.
B:“Implement deterministic input validation and normalization before invoking the model in a pyfunc wrapper” is associated with this technical property: A serving wrapper should enforce a stable input contract independent of model behavior. The question instead turns on “Choose supported index synchronization mode and verify freshness SLA under updates”: Update frequency is a key design input for choosing index deployment.
D:“Use an authenticated Databricks App backend that holds server-side endpoint credentials” is associated with this technical property: Browser-side secrets undermine tenant isolation and can be extracted by users. The question instead turns on “Choose supported index synchronization mode and verify freshness SLA under updates”: Update frequency is a key design input for choosing index deployment.