Certified Generative AI Engineer Associate Practice Test 38
Question 370
The team observes this failure in a GenAI application: Model serving infers a bare-string input and rejects client dictionaries. After implementing the fix to Log a model signature and representative input example matching real requests, which measurement or test most directly demonstrates success?
- Validation accepts correct query/context records and rejects unsupported fields
- Authorized API calls return summaries and quota/latency behavior is monitored
- Paraphrase queries retrieve relevant incidents beyond exact-match keywords
- Controlled rate-limit tests return bounded failures or qualified fallback responses
Explanation
Correct Answer
A:Validation accepts correct query/context records and rejects unsupported fields. This specifically validates the remediation to Log a model signature and representative input example matching real requests for the failure that Model serving infers a bare-string input and rejects client dictionaries. A declared model interface allows serving validation and client integration. A response that merely looks fluent or a successful configuration save would not be sufficient evidence.
Incorrect Answers
B:“Authorized API calls return summaries and quota/latency behavior is monitored” is associated with this technical property: Hosted model APIs separate application logic from model infrastructure operations. The question instead turns on “Validation accepts correct query/context records and rejects unsupported fields”: A declared model interface allows serving validation and client integration.
C:“Paraphrase queries retrieve relevant incidents beyond exact-match keywords” is associated with this technical property: Vector search ranks related text even when literal wording differs. The question instead turns on “Validation accepts correct query/context records and rejects unsupported fields”: A declared model interface allows serving validation and client integration.
D:“Controlled rate-limit tests return bounded failures or qualified fallback responses” is associated with this technical property: Inference service reliability requires explicit rate-limit and failure controls. The question instead turns on “Validation accepts correct query/context records and rejects unsupported fields”: A declared model interface allows serving validation and client integration.
Question 371
An application intended to satisfy this requirement, A QA system misses the sole relevant chunk even though it exists in the index, instead experiences: The response model hallucinates because top-k retrieval omitted the source. Which targeted engineering correction resolves this failure?
- Measure recall@k on labeled query-to-passage pairs and adjust candidate retrieval
- Evaluate multilingual embedding and optional query translation on representative pairs
- Combine keyword and semantic retrieval, then optionally rerank shortlisted results
- Retrieve transaction-specific facts through governed structured data in addition to policy text
Explanation
Correct Answer
A:Measure recall@k on labeled query-to-passage pairs and adjust candidate retrieval targets the observed failure: The response model hallucinates because top-k retrieval omitted the source. Retrieval recall is an upstream prerequisite for grounded answer generation. Changing a different model component would not resolve this identified mechanism. To confirm the remediation, verify that Recall@k rises for held-out expected passages without excessive result count.
Incorrect Answers
B:“Evaluate multilingual embedding and optional query translation on representative pairs” is associated with this technical property: Query-language mismatch needs empirical retrieval coverage testing. The question instead turns on “Measure recall@k on labeled query-to-passage pairs and adjust candidate retrieval”: Retrieval recall is an upstream prerequisite for grounded answer generation.
C:“Combine keyword and semantic retrieval, then optionally rerank shortlisted results” is associated with this technical property: Lexical exact matching complements dense retrieval for precise tokens. The question instead turns on “Measure recall@k on labeled query-to-passage pairs and adjust candidate retrieval”: Retrieval recall is an upstream prerequisite for grounded answer generation.
D:“Retrieve transaction-specific facts through governed structured data in addition to policy text” is associated with this technical property: Source completeness matters more than a persuasive prompt for operational answers. The question instead turns on “Measure recall@k on labeled query-to-passage pairs and adjust candidate retrieval”: Retrieval recall is an upstream prerequisite for grounded answer generation.
Question 372
An application intended to satisfy this requirement, A RAG model works locally but no matching index or embedding endpoint is reachable in production, instead experiences: The deployed chain generates generic answers without retrieving any knowledge. Which targeted engineering correction resolves this failure?
- Store short-lived workflow state separately from approved persistent preferences
- Choose supported index synchronization mode and verify freshness SLA under updates
- Include retriever configuration and embedding dependencies in deployment validation
- Select batch SQL inference with controlled data volume and validation
Explanation
Correct Answer
C:Include retriever configuration and embedding dependencies in deployment validation targets the observed failure: The deployed chain generates generic answers without retrieving any knowledge. A deployable RAG model requires all retrieval components, not just a text generator. Changing a different model component would not resolve this identified mechanism. To confirm the remediation, verify that End-to-end smoke test retrieves expected vectors and returns source-grounded answer.
Incorrect Answers
A:“Store short-lived workflow state separately from approved persistent preferences” is associated with this technical property: Different memory lifetimes require different access, consent and deletion controls. The question instead turns on “Include retriever configuration and embedding dependencies in deployment validation”: A deployable RAG model requires all retrieval components, not just a text generator.
B:“Choose supported index synchronization mode and verify freshness SLA under updates” is associated with this technical property: Update frequency is a key design input for choosing index deployment. The question instead turns on “Include retriever configuration and embedding dependencies in deployment validation”: A deployable RAG model requires all retrieval components, not just a text generator.
D:“Select batch SQL inference with controlled data volume and validation” is associated with this technical property: Workload latency requirements should determine batch versus online architecture. The question instead turns on “Include retriever configuration and embedding dependencies in deployment validation”: A deployable RAG model requires all retrieval components, not just a text generator.
Question 373
For the requirement that A team needs a supported hosted language model for summarization without managing GPUs, the team proposes this change: Use an eligible Foundation Model API or serving endpoint with appropriate auth and quota. Which technical principle explains why it is appropriate?
- An executable chain defines data dependencies instead of hoping prompting implies them
- Durable application memory needs storage and governance beyond model context
- Hosted model APIs separate application logic from model infrastructure operations
- Preprocessing and postprocessing are deployable model behavior and need independent tests
Explanation
Correct Answer
C:Hosted model APIs separate application logic from model infrastructure operations. The proposed engineering step is to Use an eligible Foundation Model API or serving endpoint with appropriate auth and quota. It directly supports the requirement that A team needs a supported hosted language model for summarization without managing GPUs. The operational test is that Authorized API calls return summaries and quota/latency behavior is monitored. This principle is more specific than a general instruction to retry or increase model size.
Incorrect Answers
A:“An executable chain defines data dependencies instead of hoping prompting implies them” is associated with this technical property: It directly supports the requirement that An application receives a user question and must return an answer based on a private wiki. The question instead turns on “Hosted model APIs separate application logic from model infrastructure operations”: It directly supports the requirement that A team needs a supported hosted language model for summarization without managing GPUs.
B:“Durable application memory needs storage and governance beyond model context” is associated with this technical property: It directly supports the requirement that A multi-turn agent must recover an in-progress task after a server restart. The question instead turns on “Hosted model APIs separate application logic from model infrastructure operations”: It directly supports the requirement that A team needs a supported hosted language model for summarization without managing GPUs.
D:“Preprocessing and postprocessing are deployable model behavior and need independent tests” is associated with this technical property: Preprocessing and postprocessing are deployable model behavior and need independent tests. The question instead turns on “Hosted model APIs separate application logic from model infrastructure operations”: It directly supports the requirement that A team needs a supported hosted language model for summarization without managing GPUs.
Question 374
The team observes this failure in a GenAI application: The agent reuses an old price after a long conversation. After implementing the fix to Refresh external result at the final decision point and label timestamped availability, which measurement or test most directly demonstrates success?
- Evaluation confirms central incident facts survive compression within the sentence limit
- Output carries validated decimal amount and provenance for reviewed claims
- Contract tests parse JSON and verify required fields and data types on diverse invoices
- Final recommendation shows fresh source timestamp or abstains from firm price claim
Explanation
Correct Answer
D:Final recommendation shows fresh source timestamp or abstains from firm price claim. This specifically validates the remediation to Refresh external result at the final decision point and label timestamped availability for the failure that The agent reuses an old price after a long conversation. Tool freshness is a dependency of time-sensitive reasoning and action. A response that merely looks fluent or a successful configuration save would not be sufficient evidence.
Incorrect Answers
A:“Evaluation confirms central incident facts survive compression within the sentence limit” is associated with this technical property: Task fit matters because extraction and summarization preserve different information. The question instead turns on “Final recommendation shows fresh source timestamp or abstains from firm price claim”: Tool freshness is a dependency of time-sensitive reasoning and action.
B:“Output carries validated decimal amount and provenance for reviewed claims” is associated with this technical property: Matching a source paragraph is not equivalent to structured field extraction. The question instead turns on “Final recommendation shows fresh source timestamp or abstains from firm price claim”: Tool freshness is a dependency of time-sensitive reasoning and action.
C:“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 “Final recommendation shows fresh source timestamp or abstains from firm price claim”: Tool freshness is a dependency of time-sensitive reasoning and action.
Question 375
An engineering review considers a safeguard for this situation: A new RAG agent has not shipped and has a labeled benchmark. The proposed action is: Run offline evaluation on labeled cases before deployment and use live monitoring afterward. Which observed failure most strongly justifies that action?
- Each tool call sees only the latest message and queries the wrong incident
- Team uses production traffic metrics alone to claim launch readiness
- A standalone notebook prototype cannot be accessed consistently by app clients
- The model answers with the general rule and misses the required exception
Explanation
Correct Answer
B:Team uses production traffic metrics alone to claim launch readiness. This observation motivates the specific control to Run offline evaluation on labeled cases before deployment and use live monitoring afterward. Pre-release evaluation and post-release monitoring address different lifecycle questions. The follow-up evidence would be: Release includes benchmark scores and post-launch drift dashboard. The other symptoms may matter elsewhere but do not identify the particular mechanism at issue.
Incorrect Answers
A:“Each tool call sees only the latest message and queries the wrong incident” is associated with this technical property: This observation motivates the specific control to Choose an orchestration pattern that passes validated state and scoped conversation context. The question instead turns on “Team uses production traffic metrics alone to claim launch readiness”: This observation motivates the specific control to Run offline evaluation on labeled cases before deployment and use live monitoring afterward.
C:“A standalone notebook prototype cannot be accessed consistently by app clients” is associated with this technical property: This observation motivates the specific control to Package an agent via supported Agent Framework deployment and serving path. The question instead turns on “Team uses production traffic metrics alone to claim launch readiness”: This observation motivates the specific control to Run offline evaluation on labeled cases before deployment and use live monitoring afterward.
D:“The model answers with the general rule and misses the required exception” is associated with this technical property: This observation motivates the specific control to Increase chunk continuity or retrieve adjacent parent context based on evaluation failures. The question instead turns on “Team uses production traffic metrics alone to claim launch readiness”: This observation motivates the specific control to Run offline evaluation on labeled cases before deployment and use live monitoring afterward.
Question 376
The team observes this failure in a GenAI application: The LLM assumes a country and answers with jurisdiction-specific obligations. After implementing the fix to Require verified region input or clarify before selecting jurisdictional sources, which measurement or test most directly demonstrates success?
- Jurisdiction prompts avoid invented legal location and cite selected policy scope
- Evidence-supported accuracy determines model selection
- Summaries fit configured length and retain key safety caveat
- Automated tests detect full identifier leaks while masked identifiers display correctly
Explanation
Correct Answer
A:Jurisdiction prompts avoid invented legal location and cite selected policy scope. This specifically validates the remediation to Require verified region input or clarify before selecting jurisdictional sources for the failure that The LLM assumes a country and answers with jurisdiction-specific obligations. Missing essential context should be surfaced instead of silently inferred. A response that merely looks fluent or a successful configuration save would not be sufficient evidence.
Incorrect Answers
B:“Evidence-supported accuracy determines model selection” is associated with this technical property: Answer correctness must be measured against source evidence, not just readability. The question instead turns on “Jurisdiction prompts avoid invented legal location and cite selected policy scope”: Missing essential context should be surfaced instead of silently inferred.
C:“Summaries fit configured length and retain key safety caveat” is associated with this technical property: Prompt editing can adjust expression without replacing underlying evidence. The question instead turns on “Jurisdiction prompts avoid invented legal location and cite selected policy scope”: Missing essential context should be surfaced instead of silently inferred.
D:“Automated tests detect full identifier leaks while masked identifiers display correctly” is associated with this technical property: Data minimization applies to model outputs as well as retrieval. The question instead turns on “Jurisdiction prompts avoid invented legal location and cite selected policy scope”: Missing essential context should be surfaced instead of silently inferred.
Question 377
A Databricks generative AI team is designing a solution with this requirement: A pharmaceutical assistant must explain answers only from an approved product corpus. Which engineering approach should it select first?
- Weight critical evaluation strata and set nonnegotiable failure limits
- Cache eligible nonprivate responses with document-version invalidation
- Build a custom scorer that checks authorized source support and required qualifiers
- Compare per-slice quality, token cost and latency against release thresholds
Explanation
Correct Answer
C:Build a custom scorer that checks authorized source support and required qualifiers directly addresses the described Databricks GenAI architecture: A pharmaceutical assistant must explain answers only from an approved product corpus. Domain quality criteria should be explicit, testable and tied to allowed evidence. The solution should be validated using a measurable test, not only the existence of a saved prompt or configuration. The expected evidence is: Unsupported medical advice fails even when fluent.
Incorrect Answers
A:“Weight critical evaluation strata and set nonnegotiable failure limits” is associated with this technical property: Risk-weighted model selection prevents average scores masking unacceptable errors. The question instead turns on “Build a custom scorer that checks authorized source support and required qualifiers”: Domain quality criteria should be explicit, testable and tied to allowed evidence.
B:“Cache eligible nonprivate responses with document-version invalidation” is associated with this technical property: Caching saves inference cost only when response scope and freshness permit reuse. The question instead turns on “Build a custom scorer that checks authorized source support and required qualifiers”: Domain quality criteria should be explicit, testable and tied to allowed evidence.
D:“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 “Build a custom scorer that checks authorized source support and required qualifiers”: Domain quality criteria should be explicit, testable and tied to allowed evidence.
Question 378
The team observes this failure in a GenAI application: Assistant reports a numerically correct amount for the wrong quarter. After implementing the fix to Choose chunks that retain header, period, currency and row key, which measurement or test most directly demonstrates success?
- Retrieved row carries its period and unit and is matched to reviewed answer keys
- Photo invoices yield verifiable extracted values and low-confidence flags
- Sample responses are concise and friendly while preserving all required cautions
- A test mock retriever can replace the production vector backend without changing prompts
Explanation
Correct Answer
A:Retrieved row carries its period and unit and is matched to reviewed answer keys. This specifically validates the remediation to Choose chunks that retain header, period, currency and row key for the failure that Assistant reports a numerically correct amount for the wrong quarter. Tables require contextual labels for safe semantic interpretation. A response that merely looks fluent or a successful configuration save would not be sufficient evidence.
Incorrect Answers
B:“Photo invoices yield verifiable extracted values and low-confidence flags” is associated with this technical property: Input modality support is a prerequisite for accurate task execution. The question instead turns on “Retrieved row carries its period and unit and is matched to reviewed answer keys”: Tables require contextual labels for safe semantic interpretation.
C:“Sample responses are concise and friendly while preserving all required cautions” is associated with this technical property: Style instructions should not override content validity. The question instead turns on “Retrieved row carries its period and unit and is matched to reviewed answer keys”: Tables require contextual labels for safe semantic interpretation.
D:“A test mock retriever can replace the production vector backend without changing prompts” is associated with this technical property: Separating retrieval contract from storage implementation reduces migration coupling. The question instead turns on “Retrieved row carries its period and unit and is matched to reviewed answer keys”: Tables require contextual labels for safe semantic interpretation.
Question 379
A Databricks generative AI team is designing a solution with this requirement: A RAG model works locally but no matching index or embedding endpoint is reachable in production. Which engineering approach should it select first?
- Use hybrid lexical and dense search with measured relevance for the workload
- Use semantic embedding similarity for unstructured retrieval while preserving structured filters
- Gate prompt promotion on fixed accuracy, completeness, safety and cost tests
- Include retriever configuration and embedding dependencies in deployment validation
Explanation
Correct Answer
D:Include retriever configuration and embedding dependencies in deployment validation directly addresses the described Databricks GenAI architecture: A RAG model works locally but no matching index or embedding endpoint is reachable in production. A deployable RAG model requires all retrieval components, not just a text generator. The solution should be validated using a measurable test, not only the existence of a saved prompt or configuration. The expected evidence is: End-to-end smoke test retrieves expected vectors and returns source-grounded answer.
Incorrect Answers
A:“Use hybrid lexical and dense search with measured relevance for the workload” is associated with this technical property: Keyword and dense methods retrieve complementary kinds of evidence. The question instead turns on “Include retriever configuration and embedding dependencies in deployment validation”: A deployable RAG model requires all retrieval components, not just a text generator.
B:“Use semantic embedding similarity for unstructured retrieval while preserving structured filters” is associated with this technical property: Vector search ranks related text even when literal wording differs. The question instead turns on “Include retriever configuration and embedding dependencies in deployment validation”: A deployable RAG model requires all retrieval components, not just a text generator.
C:“Gate prompt promotion on fixed accuracy, completeness, safety and cost tests” is associated with this technical property: Prompt changes can alter functional correctness and require quality control. The question instead turns on “Include retriever configuration and embedding dependencies in deployment validation”: A deployable RAG model requires all retrieval components, not just a text generator.
Question 380
An application intended to satisfy this requirement, Several departments share one agent endpoint but must see distinct documents, instead experiences: The endpoint uses broad service access and returns another department's records. Which targeted engineering correction resolves this failure?
- Use semantic embedding similarity for unstructured retrieval while preserving structured filters
- Track prompt versions and promote with a stable alias after evaluation
- Enforce user-aware authorization or scoped retrieval policy rather than relying on prompt filters
- Use an authenticated Databricks App backend that holds server-side endpoint credentials
Explanation
Correct Answer
C:Enforce user-aware authorization or scoped retrieval policy rather than relying on prompt filters targets the observed failure: The endpoint uses broad service access and returns another department's records. Model-serving authentication alone does not automatically implement row-level retrieval access. Changing a different model component would not resolve this identified mechanism. To confirm the remediation, verify that Cross-department adversarial requests cannot obtain unauthorized source passages.
Incorrect Answers
A:“Use semantic embedding similarity for unstructured retrieval while preserving structured filters” is associated with this technical property: Vector search ranks related text even when literal wording differs. The question instead turns on “Enforce user-aware authorization or scoped retrieval policy rather than relying on prompt filters”: Model-serving authentication alone does not automatically implement row-level retrieval access.
B:“Track prompt versions and promote with a stable alias after evaluation” is associated with this technical property: Versioned prompts support audit, repeatability and rollback. The question instead turns on “Enforce user-aware authorization or scoped retrieval policy rather than relying on prompt filters”: Model-serving authentication alone does not automatically implement row-level retrieval access.
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 “Enforce user-aware authorization or scoped retrieval policy rather than relying on prompt filters”: Model-serving authentication alone does not automatically implement row-level retrieval access.