Certified Generative AI Engineer Associate Practice Test 21
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.
Question 201
The team observes this failure in a GenAI application: Long-form generation ignores the requested output length. After implementing the fix to Add a bounded summary instruction preserving critical qualifier and context, which measurement or test most directly demonstrates success?
- Human-reviewed multilingual scenarios meet answer relevance and language constraints
- Summaries fit configured length and retain key safety caveat
- Mixed-intent tests route to the intended specialist and enforce permissions
- Authorized clients call versioned endpoint and traces capture requests
Explanation
Correct Answer
B:Summaries fit configured length and retain key safety caveat. This specifically validates the remediation to Add a bounded summary instruction preserving critical qualifier and context for the failure that Long-form generation ignores the requested output length. Prompt editing can adjust expression without replacing underlying evidence. A response that merely looks fluent or a successful configuration save would not be sufficient evidence.
Incorrect Answers
A:“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 “Summaries fit configured length and retain key safety caveat”: Prompt editing can adjust expression without replacing underlying evidence.
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 “Summaries fit configured length and retain key safety caveat”: Prompt editing can adjust expression without replacing underlying evidence.
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 “Summaries fit configured length and retain key safety caveat”: Prompt editing can adjust expression without replacing underlying evidence.
Question 202
For the requirement that Users request a one-line summary of an already verified technical explanation, the team proposes this change: Add a bounded summary instruction preserving critical qualifier and context. Which technical principle explains why it is appropriate?
- Production monitoring detects data shifts missed by one-time release tests
- Stable entity keys are safer than free-text guessing for structured tool use
- Pre-release evaluation and post-release monitoring address different lifecycle questions
- Prompt editing can adjust expression without replacing underlying evidence
Explanation
Correct Answer
D:Prompt editing can adjust expression without replacing underlying evidence. The proposed engineering step is to Add a bounded summary instruction preserving critical qualifier and context. It directly supports the requirement that Users request a one-line summary of an already verified technical explanation. The operational test is that Summaries fit configured length and retain key safety caveat. This principle is more specific than a general instruction to retry or increase model size.
Incorrect Answers
A:“Production monitoring detects data shifts missed by one-time release tests” is associated with this technical property: It directly supports the requirement that An approved assistant's answers degrade after policies change in production. The question instead turns on “Prompt editing can adjust expression without replacing underlying evidence”: It directly supports the requirement that Users request a one-line summary of an already verified technical explanation.
B:“Stable entity keys are safer than free-text guessing for structured tool use” is associated with this technical property: It directly supports the requirement that Customers refer to a product by nickname and catalog SKU in different turns. The question instead turns on “Prompt editing can adjust expression without replacing underlying evidence”: It directly supports the requirement that Users request a one-line summary of an already verified technical explanation.
C:“Pre-release evaluation and post-release monitoring address different lifecycle questions” is associated with this technical property: It directly supports the requirement that A new RAG agent has not shipped and has a labeled benchmark. The question instead turns on “Prompt editing can adjust expression without replacing underlying evidence”: It directly supports the requirement that Users request a one-line summary of an already verified technical explanation.
Question 203
The team observes this failure in a GenAI application: The deployed chain generates generic answers without retrieving any knowledge. After implementing the fix to Include retriever configuration and embedding dependencies in deployment validation, which measurement or test most directly demonstrates success?
- Cross-department adversarial requests cannot obtain unauthorized source passages
- End-to-end smoke test retrieves expected vectors and returns source-grounded answer
- The new version meets release criteria or is rejected with recorded metrics
- Authorized team can resolve the registered version and view audit metadata
Explanation
Correct Answer
B:End-to-end smoke test retrieves expected vectors and returns source-grounded answer. This specifically validates the remediation to Include retriever configuration and embedding dependencies in deployment validation for the failure that The deployed chain generates generic answers without retrieving any knowledge. A deployable RAG model requires all retrieval components, not just a text generator. A response that merely looks fluent or a successful configuration save would not be sufficient evidence.
Incorrect Answers
A:“Cross-department adversarial requests cannot obtain unauthorized source passages” is associated with this technical property: Model-serving authentication alone does not automatically implement row-level retrieval access. The question instead turns on “End-to-end smoke test retrieves expected vectors and returns source-grounded answer”: A deployable RAG model requires all retrieval components, not just a text generator.
C:“The new version meets release criteria or is rejected with recorded metrics” is associated with this technical property: Prompt changes can alter functional correctness and require quality control. The question instead turns on “End-to-end smoke test retrieves expected vectors and returns source-grounded answer”: A deployable RAG model requires all retrieval components, not just a text generator.
D:“Authorized team can resolve the registered version and view audit metadata” is associated with this technical property: Unity Catalog provides governed namespace and access for registered models. The question instead turns on “End-to-end smoke test retrieves expected vectors and returns source-grounded answer”: A deployable RAG model requires all retrieval components, not just a text generator.
Question 204
For the requirement that An order-status agent must check current shipment events before writing a reply, the team proposes this change: Require authenticated lookup before answer composition, with missing-data branch. Which technical principle explains why it is appropriate?
- Entity extraction should preserve evidence spans and avoid inventing unavailable fields
- Structured constraints help guarantee downstream parseability instead of relying on a vague format request
- Retrieval-augmented generation grounds changing factual claims in controlled enterprise sources
- Tool ordering matters when facts are volatile and cannot be inferred safely
Explanation
Correct Answer
D:Tool ordering matters when facts are volatile and cannot be inferred safely. The proposed engineering step is to Require authenticated lookup before answer composition, with missing-data branch. It directly supports the requirement that An order-status agent must check current shipment events before writing a reply. The operational test is that Audit trace shows lookup then formatted response, or explicit unavailable status. This principle is more specific than a general instruction to retry or increase model size.
Incorrect Answers
A:“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 “Tool ordering matters when facts are volatile and cannot be inferred safely”: It directly supports the requirement that An order-status agent must check current shipment events before writing a reply.
B:“Structured constraints help guarantee downstream parseability instead of relying on a vague format request” is associated with this technical property: It directly supports the requirement that An invoice assistant must always return fields vendor and amount as valid JSON. The question instead turns on “Tool ordering matters when facts are volatile and cannot be inferred safely”: It directly supports the requirement that An order-status agent must check current shipment events before writing a reply.
C:“Retrieval-augmented generation grounds changing factual claims in controlled enterprise sources” is associated with this technical property: It directly supports the requirement that A policy assistant needs factual answers from a private handbook. The question instead turns on “Tool ordering matters when facts are volatile and cannot be inferred safely”: It directly supports the requirement that An order-status agent must check current shipment events before writing a reply.
Question 205
A Databricks generative AI team is designing a solution with this requirement: Operators want to connect individual serving failures to the model version and response. Which engineering approach should it select first?
- Enable governed inference tables and correlate request IDs with MLflow traces
- Compare per-slice quality, token cost and latency against release thresholds
- Use a rubric-based safety judge with calibrated examples when no single reference exists
- Build a custom scorer that checks authorized source support and required qualifiers
Explanation
Correct Answer
A:Enable governed inference tables and correlate request IDs with MLflow traces directly addresses the described Databricks GenAI architecture: Operators want to connect individual serving failures to the model version and response. Request-level observability supports diagnosis while usage aggregates support planning. The solution should be validated using a measurable test, not only the existence of a saved prompt or configuration. The expected evidence is: Incident trace reconstructs endpoint version and tool error for sampled request.
Incorrect Answers
B:“Compare per-slice quality, token cost and latency against release thresholds” is associated with this technical property: A single composite score cannot capture cost-quality constraints. The question instead turns on “Enable governed inference tables and correlate request IDs with MLflow traces”: Request-level observability supports diagnosis while usage aggregates support planning.
C:“Use a rubric-based safety judge with calibrated examples when no single reference exists” is associated with this technical property: Reference-free judgments can evaluate properties without one canonical text. The question instead turns on “Enable governed inference tables and correlate request IDs with MLflow traces”: Request-level observability supports diagnosis while usage aggregates support planning.
D:“Build a custom scorer that checks authorized source support and required qualifiers” is associated with this technical property: Domain quality criteria should be explicit, testable and tied to allowed evidence. The question instead turns on “Enable governed inference tables and correlate request IDs with MLflow traces”: Request-level observability supports diagnosis while usage aggregates support planning.
Question 206
An engineering review considers a safeguard for this situation: A product FAQ is available as structured HTML with known paragraph tags. The proposed action is: Parse relevant HTML elements using an HTML parser such as BeautifulSoup. Which observed failure most strongly justifies that action?
- A scanned-image OCR tool produces noise on native HTML pages
- The index contains generic shipping policy but not live tracking records
- A naive splitter stores isolated table rows without table headers
- A notebook overwrites raw data when producing chunks, losing rollback
Explanation
Correct Answer
A:A scanned-image OCR tool produces noise on native HTML pages. This observation motivates the specific control to Parse relevant HTML elements using an HTML parser such as BeautifulSoup. Extraction tools must match source encoding and document format. The follow-up evidence would be: Parsed heading and FAQ answer match the original DOM without menus. The other symptoms may matter elsewhere but do not identify the particular mechanism at issue.
Incorrect Answers
B:“The index contains generic shipping policy but not live tracking records” is associated with this technical property: This observation motivates the specific control to Retrieve transaction-specific facts through governed structured data in addition to policy text. The question instead turns on “A scanned-image OCR tool produces noise on native HTML pages”: This observation motivates the specific control to Parse relevant HTML elements using an HTML parser such as BeautifulSoup.
C:“A naive splitter stores isolated table rows without table headers” is associated with this technical property: This observation motivates the specific control to Keep table captions and headers with row groups during structured extraction. The question instead turns on “A scanned-image OCR tool produces noise on native HTML pages”: This observation motivates the specific control to Parse relevant HTML elements using an HTML parser such as BeautifulSoup.
D:“A notebook overwrites raw data when producing chunks, losing rollback” is associated with this technical property: This observation motivates the specific control to Store raw records and curated chunk tables separately in governed Delta with lineage. The question instead turns on “A scanned-image OCR tool produces noise on native HTML pages”: This observation motivates the specific control to Parse relevant HTML elements using an HTML parser such as BeautifulSoup.
Question 207
A solution architect must balance this requirement: A product FAQ is available as structured HTML with known paragraph tags. During review the team anticipates the failure that A scanned-image OCR tool produces noise on native HTML pages. Which implementation decision best mitigates this particular risk while preserving the intended feature?
- Store raw records and curated chunk tables separately in governed Delta with lineage
- Parse relevant HTML elements using an HTML parser such as BeautifulSoup
- Filter or version source records by approval status and effective date
- Chunk along semantic boundaries, carrying heading metadata into retrieval
Explanation
Correct Answer
B:Parse relevant HTML elements using an HTML parser such as BeautifulSoup directly addresses the described Databricks GenAI architecture: A product FAQ is available as structured HTML with known paragraph tags. Extraction tools must match source encoding and document format. The solution should be validated using a measurable test, not only the existence of a saved prompt or configuration. The expected evidence is: Parsed heading and FAQ answer match the original DOM without menus.
Incorrect Answers
A:“Store raw records and curated chunk tables separately in governed Delta with lineage” is associated with this technical property: Layered data preparation supports reproducible source-to-chunk transformations. The question instead turns on “Parse relevant HTML elements using an HTML parser such as BeautifulSoup”: Extraction tools must match source encoding and document format.
C:“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 “Parse relevant HTML elements using an HTML parser such as BeautifulSoup”: Extraction tools must match source encoding and document format.
D:“Chunk along semantic boundaries, carrying heading metadata into retrieval” is associated with this technical property: Structure-aware chunking preserves context and filters better than indiscriminate splitting. The question instead turns on “Parse relevant HTML elements using an HTML parser such as BeautifulSoup”: Extraction tools must match source encoding and document format.
Question 208
The team observes this failure in a GenAI application: Newly published answers are missing because source changes were never propagated. After implementing the fix to Configure supported sync/refresh behavior and verify index freshness, which measurement or test most directly demonstrates success?
- Validation accepts correct query/context records and rejects unsupported fields
- After controlled update, intended new record becomes retrievable within approved delay
- Fresh environment can load and invoke the logged artifact identically
- A changed catalog record appears in results within agreed refresh window
Explanation
Correct Answer
B:After controlled update, intended new record becomes retrievable within approved delay. This specifically validates the remediation to Configure supported sync/refresh behavior and verify index freshness for the failure that Newly published answers are missing because source changes were never propagated. Index results reflect a materialized view whose update cadence must match source changes. A response that merely looks fluent or a successful configuration save would not be sufficient evidence.
Incorrect Answers
A:“Validation accepts correct query/context records and rejects unsupported fields” is associated with this technical property: A declared model interface allows serving validation and client integration. The question instead turns on “After controlled update, intended new record becomes retrievable within approved delay”: Index results reflect a materialized view whose update cadence must match source changes.
C:“Fresh environment can load and invoke the logged artifact identically” is associated with this technical property: Model logging format must represent the callable application's full behavior. The question instead turns on “After controlled update, intended new record becomes retrievable within approved delay”: Index results reflect a materialized view whose update cadence must match source changes.
D:“A changed catalog record appears in results within agreed refresh window” is associated with this technical property: Update frequency is a key design input for choosing index deployment. The question instead turns on “After controlled update, intended new record becomes retrievable within approved delay”: Index results reflect a materialized view whose update cadence must match source changes.
Question 209
An engineering review considers a safeguard for this situation: A temporary evaluation set contains employee complaints and account details. The proposed action is: Apply retention, redaction and deletion rules to evaluation artifacts. Which observed failure most strongly justifies that action?
- Retrieved text has garbled words that degrade grounded answers
- Sensitive identifiers appear in retrieved chunks and generated summaries
- Experiment logging retains raw examples indefinitely with broad access
- Embedding similarity promotes spam-like text above useful handbook sections
Explanation
Correct Answer
C:Experiment logging retains raw examples indefinitely with broad access. This observation motivates the specific control to Apply retention, redaction and deletion rules to evaluation artifacts. Evaluation data requires the same governance scrutiny as production data. The follow-up evidence would be: Expired sensitive experiment examples are removed under audited policy. The other symptoms may matter elsewhere but do not identify the particular mechanism at issue.
Incorrect Answers
A:“Retrieved text has garbled words that degrade grounded answers” is associated with this technical property: This observation motivates the specific control to Normalize encoding, repair OCR where justified and retain original source reference. The question instead turns on “Experiment logging retains raw examples indefinitely with broad access”: This observation motivates the specific control to Apply retention, redaction and deletion rules to evaluation artifacts.
B:“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 “Experiment logging retains raw examples indefinitely with broad access”: This observation motivates the specific control to Apply retention, redaction and deletion rules to evaluation artifacts.
D:“Embedding similarity promotes spam-like text above useful handbook sections” is associated with this technical property: This observation motivates the specific control to Filter high-frequency spam and check source authority before indexing. The question instead turns on “Experiment logging retains raw examples indefinitely with broad access”: This observation motivates the specific control to Apply retention, redaction and deletion rules to evaluation artifacts.
Question 210
For the requirement that An agent's token consumption suddenly doubles after a retrieval change, the team proposes this change: Record prompt/response token metrics by route, version and retrieval depth. Which technical principle explains why it is appropriate?
- Caching saves inference cost only when response scope and freshness permit reuse
- Traces connect observed errors to intermediate model and tool activity
- Application quality requires outcome metrics beyond uptime
- Token use diagnostics reveal cost regressions invisible in request counts
Explanation
Correct Answer
D:Token use diagnostics reveal cost regressions invisible in request counts. The proposed engineering step is to Record prompt/response token metrics by route, version and retrieval depth. It directly supports the requirement that An agent's token consumption suddenly doubles after a retrieval change. The operational test is that Dashboard identifies the responsible version and oversized prompt stage. This principle is more specific than a general instruction to retry or increase model size.
Incorrect Answers
A:“Caching saves inference cost only when response scope and freshness permit reuse” is associated with this technical property: It directly supports the requirement that Many users ask identical public policy questions but the app calls LLM each time. The question instead turns on “Token use diagnostics reveal cost regressions invisible in request counts”: It directly supports the requirement that An agent's token consumption suddenly doubles after a retrieval change.
B:“Traces connect observed errors to intermediate model and tool activity” is associated with this technical property: It directly supports the requirement that An agent retrieves five chunks and produces an incorrect answer. The question instead turns on “Token use diagnostics reveal cost regressions invisible in request counts”: It directly supports the requirement that An agent's token consumption suddenly doubles after a retrieval change.
C:“Application quality requires outcome metrics beyond uptime” is associated with this technical property: Application quality requires outcome metrics beyond uptime. The question instead turns on “Token use diagnostics reveal cost regressions invisible in request counts”: It directly supports the requirement that An agent's token consumption suddenly doubles after a retrieval change.