Certified Generative AI Engineer Associate Practice Test 27
Question 260
An application intended to satisfy this requirement, A RAG agent retrieves, calls a SQL tool and summarizes results, instead experiences: Logs show final answer only and engineers cannot find erroneous intermediate reasoning data. Which targeted engineering correction resolves this failure?
- Normalize supported aliases to canonical product ID before retrieval
- Increase chunk continuity or retrieve adjacent parent context based on evaluation failures
- Expose the API as a validated tool with constrained arguments and secrets management
- Instrument MLflow traces across retriever, tools and model spans
Explanation
Correct Answer
D:Instrument MLflow traces across retriever, tools and model spans targets the observed failure: Logs show final answer only and engineers cannot find erroneous intermediate reasoning data. End-to-end traces reveal which step failed and support reproducible evaluation. Changing a different model component would not resolve this identified mechanism. To confirm the remediation, verify that A failed response links to distinct retrieval, tool and inference spans.
Incorrect Answers
A:“Normalize supported aliases to canonical product ID before retrieval” is associated with this technical property: Stable entity keys are safer than free-text guessing for structured tool use. The question instead turns on “Instrument MLflow traces across retriever, tools and model spans”: End-to-end traces reveal which step failed and support reproducible evaluation.
B:“Increase chunk continuity or retrieve adjacent parent context based on evaluation failures” is associated with this technical property: Chunk size and parent context should be tuned against grounded-answer error patterns. The question instead turns on “Instrument MLflow traces across retriever, tools and model spans”: End-to-end traces reveal which step failed and support reproducible evaluation.
C:“Expose the API as a validated tool with constrained arguments and secrets management” is associated with this technical property: Typed interfaces constrain model actions and separate credentials from prompt text. The question instead turns on “Instrument MLflow traces across retriever, tools and model spans”: End-to-end traces reveal which step failed and support reproducible evaluation.
Question 261
An application intended to satisfy this requirement, A regulated organization has a contractual requirement to keep personal data in a designated region, instead experiences: An external foundation model sends full prompts to an incompatible region. Which targeted engineering correction resolves this failure?
- Apply policy-based redaction to tool output and answer rendering
- Constrain external tools, allowlisted destinations and approval for data egress
- Parse, label and isolate untrusted document instructions while preserving legitimate factual content
- Select compliant deployment and data-processing path after checking vendor terms
Explanation
Correct Answer
D:Select compliant deployment and data-processing path after checking vendor terms targets the observed failure: An external foundation model sends full prompts to an incompatible region. Deployment architecture must respect jurisdictional and contractual data handling. Changing a different model component would not resolve this identified mechanism. To confirm the remediation, verify that Data flow diagram and processing logs show approved region and retention.
Incorrect Answers
A:“Apply policy-based redaction to tool output and answer rendering” is associated with this technical property: Data minimization is a separate control from model answer quality. The question instead turns on “Select compliant deployment and data-processing path after checking vendor terms”: Deployment architecture must respect jurisdictional and contractual data handling.
B:“Constrain external tools, allowlisted destinations and approval for data egress” is associated with this technical property: Prompt injection becomes dangerous when untrusted content controls tool side effects. The question instead turns on “Select compliant deployment and data-processing path after checking vendor terms”: Deployment architecture must respect jurisdictional and contractual data handling.
C:“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 “Select compliant deployment and data-processing path after checking vendor terms”: Deployment architecture must respect jurisdictional and contractual data handling.
Question 262
For the requirement that A search index includes obscure error identifiers and natural-language descriptions, the team proposes this change: Use hybrid lexical and dense search with measured relevance for the workload. Which technical principle explains why it is appropriate?
- Workload latency requirements should determine batch versus online architecture
- Hosted model APIs separate application logic from model infrastructure operations
- Unity Catalog provides governed namespace and access for registered models
- Keyword and dense methods retrieve complementary kinds of evidence
Explanation
Correct Answer
D:Keyword and dense methods retrieve complementary kinds of evidence. The proposed engineering step is to Use hybrid lexical and dense search with measured relevance for the workload. It directly supports the requirement that A search index includes obscure error identifiers and natural-language descriptions. The operational test is that Test set improves exact error-code recall and paraphrase relevance. This principle is more specific than a general instruction to retry or increase model size.
Incorrect Answers
A:“Workload latency requirements should determine batch versus online architecture” is associated with this technical property: It directly supports the requirement that A reports pipeline needs sentiment labels before an overnight dashboard refresh. The question instead turns on “Keyword and dense methods retrieve complementary kinds of evidence”: It directly supports the requirement that A search index includes obscure error identifiers and natural-language descriptions.
B:“Hosted model APIs separate application logic from model infrastructure operations” is associated with this technical property: It directly supports the requirement that A team needs a supported hosted language model for summarization without managing GPUs. The question instead turns on “Keyword and dense methods retrieve complementary kinds of evidence”: It directly supports the requirement that A search index includes obscure error identifiers and natural-language descriptions.
C:“Unity Catalog provides governed namespace and access for registered models” is associated with this technical property: It directly supports the requirement that A business wants controlled model versions shared across workspaces. The question instead turns on “Keyword and dense methods retrieve complementary kinds of evidence”: It directly supports the requirement that A search index includes obscure error identifiers and natural-language descriptions.
Question 263
An engineering review considers a safeguard for this situation: An agent uses a custom document loader available only in the author's notebook. The proposed action is: Declare needed Python packages and artifacts when logging and packaging the pyfunc model. Which observed failure most strongly justifies that action?
- Conversation memory stored only in the process disappears on deployment rollover
- The deployed chain generates generic answers without retrieving any knowledge
- Model serving fails with module not found even though local tests pass
- Team provisions high-concurrency interactive serving for a one-time job
Explanation
Correct Answer
C:Model serving fails with module not found even though local tests pass. This observation motivates the specific control to Declare needed Python packages and artifacts when logging and packaging the pyfunc model. A model artifact must include compatible runtime dependencies for reproducible serving. The follow-up evidence would be: Clean deployment starts successfully without relying on notebook-local imports. The other symptoms may matter elsewhere but do not identify the particular mechanism at issue.
Incorrect Answers
A:“Conversation memory stored only in the process disappears on deployment rollover” is associated with this technical property: This observation motivates the specific control to Persist scoped state in an approved durable datastore with expiry and access policy. The question instead turns on “Model serving fails with module not found even though local tests pass”: This observation motivates the specific control to Declare needed Python packages and artifacts when logging and packaging the pyfunc model.
B:“The deployed chain generates generic answers without retrieving any knowledge” is associated with this technical property: This observation motivates the specific control to Include retriever configuration and embedding dependencies in deployment validation. The question instead turns on “Model serving fails with module not found even though local tests pass”: This observation motivates the specific control to Declare needed Python packages and artifacts when logging and packaging the pyfunc model.
D:“Team provisions high-concurrency interactive serving for a one-time job” is associated with this technical property: This observation motivates the specific control to Select batch SQL inference with controlled data volume and validation. The question instead turns on “Model serving fails with module not found even though local tests pass”: This observation motivates the specific control to Declare needed Python packages and artifacts when logging and packaging the pyfunc model.
Question 264
An engineering review considers a safeguard for this situation: A help desk needs to route HR, IT and payroll questions to specialized agents. The proposed action is: Use a Multiagent Supervisor to delegate to narrowly scoped specialists. Which observed failure most strongly justifies that action?
- The assistant sometimes emits markdown prose that breaks the consuming parser
- Development starts prompts without defining input document versions or output evidence fields
- One single-purpose document agent routes payroll queries into IT answers
- A sentiment classifier returns positive or negative labels instead of answers
Explanation
Correct Answer
C:One single-purpose document agent routes payroll queries into IT answers. This observation motivates the specific control to Use a Multiagent Supervisor to delegate to narrowly scoped specialists. Supervisor orchestration is appropriate when a request must select among specialist capabilities. The follow-up evidence would be: Traces show correct specialist selection and domain restrictions on mixed test cases. The other symptoms may matter elsewhere but do not identify the particular mechanism at issue.
Incorrect Answers
A:“The assistant sometimes emits markdown prose that breaks the consuming parser” is associated with this technical property: This observation motivates the specific control to Specify explicit JSON fields and enforce a structured output schema with validation. The question instead turns on “One single-purpose document agent routes payroll queries into IT answers”: This observation motivates the specific control to Use a Multiagent Supervisor to delegate to narrowly scoped specialists.
B:“Development starts prompts without defining input document versions or output evidence fields” is associated with this technical property: This observation motivates the specific control to Define typed document inputs, risk labels, source offsets and output schema before design. The question instead turns on “One single-purpose document agent routes payroll queries into IT answers”: This observation motivates the specific control to Use a Multiagent Supervisor to delegate to narrowly scoped specialists.
D:“A sentiment classifier returns positive or negative labels instead of answers” is associated with this technical property: This observation motivates the specific control to Use retrieval-grounded question answering with a suitable generative model. The question instead turns on “One single-purpose document agent routes payroll queries into IT answers”: This observation motivates the specific control to Use a Multiagent Supervisor to delegate to narrowly scoped specialists.
Question 265
A Databricks generative AI team is designing a solution with this requirement: Bi-encoder search finds loosely related candidates for complex entitlement questions. Which engineering approach should it select first?
- Filter or version source records by approval status and effective date
- Rerank the candidate set against the full query with a suitable reranker
- Reduce excessive overlap while checking boundary-question recall
- Measure recall@k on labeled query-to-passage pairs and adjust candidate retrieval
Explanation
Correct Answer
B:Rerank the candidate set against the full query with a suitable reranker directly addresses the described Databricks GenAI architecture: Bi-encoder search finds loosely related candidates for complex entitlement questions. Second-stage reranking can improve relevance where first-stage vectors are approximate. The solution should be validated using a measurable test, not only the existence of a saved prompt or configuration. The expected evidence is: Labeled relevance ordering improves without discarding the true policy passage.
Incorrect Answers
A:“Filter or version source records by approval status and effective date” is associated with this technical property: Freshness and document authority should constrain eligible retrieval candidates. The question instead turns on “Rerank the candidate set against the full query with a suitable reranker”: Second-stage reranking can improve relevance where first-stage vectors are approximate.
C:“Reduce excessive overlap while checking boundary-question recall” is associated with this technical property: Overlap trades continuity against duplication, latency and storage footprint. The question instead turns on “Rerank the candidate set against the full query with a suitable reranker”: Second-stage reranking can improve relevance where first-stage vectors are approximate.
D:“Measure recall@k on labeled query-to-passage pairs and adjust candidate retrieval” is associated with this technical property: Retrieval recall is an upstream prerequisite for grounded answer generation. The question instead turns on “Rerank the candidate set against the full query with a suitable reranker”: Second-stage reranking can improve relevance where first-stage vectors are approximate.
Question 266
An engineering review considers a safeguard for this situation: The RAG prompt is changed to produce shorter answers before business release. The proposed action is: Gate prompt promotion on fixed accuracy, completeness, safety and cost tests. Which observed failure most strongly justifies that action?
- Team provisions high-concurrency interactive serving for a one-time job
- Change is promoted without checking citations and completeness
- Model serving fails with module not found even though local tests pass
- Conversation memory stored only in the process disappears on deployment rollover
Explanation
Correct Answer
B:Change is promoted without checking citations and completeness. This observation motivates the specific control to Gate prompt promotion on fixed accuracy, completeness, safety and cost tests. Prompt changes can alter functional correctness and require quality control. The follow-up evidence would be: The new version meets release criteria or is rejected with recorded metrics. The other symptoms may matter elsewhere but do not identify the particular mechanism at issue.
Incorrect Answers
A:“Team provisions high-concurrency interactive serving for a one-time job” is associated with this technical property: This observation motivates the specific control to Select batch SQL inference with controlled data volume and validation. The question instead turns on “Change is promoted without checking citations and completeness”: This observation motivates the specific control to Gate prompt promotion on fixed accuracy, completeness, safety and cost tests.
C:“Model serving fails with module not found even though local tests pass” is associated with this technical property: This observation motivates the specific control to Declare needed Python packages and artifacts when logging and packaging the pyfunc model. The question instead turns on “Change is promoted without checking citations and completeness”: This observation motivates the specific control to Gate prompt promotion on fixed accuracy, completeness, safety and cost tests.
D:“Conversation memory stored only in the process disappears on deployment rollover” is associated with this technical property: This observation motivates the specific control to Persist scoped state in an approved durable datastore with expiry and access policy. The question instead turns on “Change is promoted without checking citations and completeness”: This observation motivates the specific control to Gate prompt promotion on fixed accuracy, completeness, safety and cost tests.
Question 267
The team observes this failure in a GenAI application: Fixed character splits sever clause conditions from their headings. After implementing the fix to Chunk along semantic boundaries, carrying heading metadata into retrieval, which measurement or test most directly demonstrates success?
- Test queries retrieve full clause meaning with original heading metadata
- Cross-language test set returns relevant approved procedures at target recall
- Answer can cite both matching step and applicable prerequisite section
- Exact error-code passages appear in measured top-k results
Explanation
Correct Answer
A:Test queries retrieve full clause meaning with original heading metadata. This specifically validates the remediation to Chunk along semantic boundaries, carrying heading metadata into retrieval for the failure that Fixed character splits sever clause conditions from their headings. Structure-aware chunking preserves context and filters better than indiscriminate splitting. A response that merely looks fluent or a successful configuration save would not be sufficient evidence.
Incorrect Answers
B:“Cross-language test set returns relevant approved procedures at target recall” is associated with this technical property: Query-language mismatch needs empirical retrieval coverage testing. The question instead turns on “Test queries retrieve full clause meaning with original heading metadata”: Structure-aware chunking preserves context and filters better than indiscriminate splitting.
C:“Answer can cite both matching step and applicable prerequisite section” is associated with this technical property: Hierarchical retrieval combines search granularity with coherent generation context. The question instead turns on “Test queries retrieve full clause meaning with original heading metadata”: Structure-aware chunking preserves context and filters better than indiscriminate splitting.
D:“Exact error-code passages appear in measured top-k results” is associated with this technical property: Lexical exact matching complements dense retrieval for precise tokens. The question instead turns on “Test queries retrieve full clause meaning with original heading metadata”: Structure-aware chunking preserves context and filters better than indiscriminate splitting.
Question 268
For the requirement that A lengthy engineering manual has chapters, headings and steps, the team proposes this change: Store child chunks for fine search with parent-section expansion for answer context. Which technical principle explains why it is appropriate?
- Data minimization should be applied at ingestion, not left to answer prompts
- Idempotent updates prevent duplicate indexed chunks and limit processing cost
- High-frequency irrelevant text dilutes retrieval quality and raises noise
- Hierarchical retrieval combines search granularity with coherent generation context
Explanation
Correct Answer
D:Hierarchical retrieval combines search granularity with coherent generation context. The proposed engineering step is to Store child chunks for fine search with parent-section expansion for answer context. It directly supports the requirement that A lengthy engineering manual has chapters, headings and steps. The operational test is that Answer can cite both matching step and applicable prerequisite section. This principle is more specific than a general instruction to retry or increase model size.
Incorrect Answers
A:“Data minimization should be applied at ingestion, not left to answer prompts” is associated with this technical property: It directly supports the requirement that Support transcripts contain account numbers irrelevant to troubleshooting. The question instead turns on “Hierarchical retrieval combines search granularity with coherent generation context”: It directly supports the requirement that A lengthy engineering manual has chapters, headings and steps.
B:“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 “Hierarchical retrieval combines search granularity with coherent generation context”: It directly supports the requirement that A lengthy engineering manual has chapters, headings and steps.
C:“High-frequency irrelevant text dilutes retrieval quality and raises noise” is associated with this technical property: It directly supports the requirement that Every policy page includes a long navigation footer repeated hundreds of times. The question instead turns on “Hierarchical retrieval combines search granularity with coherent generation context”: It directly supports the requirement that A lengthy engineering manual has chapters, headings and steps.
Question 269
For the requirement that Top results contain many neighboring but irrelevant product descriptions, the team proposes this change: Measure precision@k, add metadata filters and evaluate hybrid retrieval when warranted. Which technical principle explains why it is appropriate?
- Second-stage reranking can improve relevance where first-stage vectors are approximate
- Retrieval precision controls the fraction of presented evidence that is relevant
- Optical character recognition extracts image text where text-layer parsers have none
- Hierarchical retrieval combines search granularity with coherent generation context
Explanation
Correct Answer
B:Retrieval precision controls the fraction of presented evidence that is relevant. The proposed engineering step is to Measure precision@k, add metadata filters and evaluate hybrid retrieval when warranted. It directly supports the requirement that Top results contain many neighboring but irrelevant product descriptions. The operational test is that Irrelevant passages decrease while target evidence remains in top results. This principle is more specific than a general instruction to retry or increase model size.
Incorrect Answers
A:“Second-stage reranking can improve relevance where first-stage vectors are approximate” is associated with this technical property: It directly supports the requirement that Bi-encoder search finds loosely related candidates for complex entitlement questions. The question instead turns on “Retrieval precision controls the fraction of presented evidence that is relevant”: It directly supports the requirement that Top results contain many neighboring but irrelevant product descriptions.
C:“Optical character recognition extracts image text where text-layer parsers have none” is associated with this technical property: It directly supports the requirement that Knowledge source includes scanned handwritten or image-only policy pages. The question instead turns on “Retrieval precision controls the fraction of presented evidence that is relevant”: It directly supports the requirement that Top results contain many neighboring but irrelevant product descriptions.
D:“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 “Retrieval precision controls the fraction of presented evidence that is relevant”: It directly supports the requirement that Top results contain many neighboring but irrelevant product descriptions.
Question 270
A Databricks generative AI team is designing a solution with this requirement: Several prompt and chain versions are trialed by different teams. Which engineering approach should it select first?
- Choose vision-capable processing or OCR extraction before text model use
- Increase chunk continuity or retrieve adjacent parent context based on evaluation failures
- Track model, code, prompt and evaluation datasets with versioned experiment artifacts
- Benchmark smaller capable candidates on quality and latency for actual workload
Explanation
Correct Answer
C:Track model, code, prompt and evaluation datasets with versioned experiment artifacts directly addresses the described Databricks GenAI architecture: Several prompt and chain versions are trialed by different teams. Reproducibility requires linking outputs to immutable evaluated versions. The solution should be validated using a measurable test, not only the existence of a saved prompt or configuration. The expected evidence is: A specific failed evaluation is replayable from recorded artifacts.
Incorrect Answers
A:“Choose vision-capable processing or OCR extraction before text model use” is associated with this technical property: Input modality support is a prerequisite for accurate task execution. The question instead turns on “Track model, code, prompt and evaluation datasets with versioned experiment artifacts”: Reproducibility requires linking outputs to immutable evaluated versions.
B:“Increase chunk continuity or retrieve adjacent parent context based on evaluation failures” is associated with this technical property: Chunk size and parent context should be tuned against grounded-answer error patterns. The question instead turns on “Track model, code, prompt and evaluation datasets with versioned experiment artifacts”: Reproducibility requires linking outputs to immutable evaluated versions.
D:“Benchmark smaller capable candidates on quality and latency for actual workload” is associated with this technical property: Model size and cost should match task complexity rather than marketing labels. The question instead turns on “Track model, code, prompt and evaluation datasets with versioned experiment artifacts”: Reproducibility requires linking outputs to immutable evaluated versions.