Certified Generative AI Engineer Associate Practice Test 22
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.
Question 211
For the requirement that A new RAG agent has not shipped and has a labeled benchmark, the team proposes this change: Run offline evaluation on labeled cases before deployment and use live monitoring afterward. Which technical principle explains why it is appropriate?
- Deployment lifecycle requires governed inference endpoint and observability
- Pre-release evaluation and post-release monitoring address different lifecycle questions
- Genie-style analytics is suited to structured data rather than ungrounded numeric text generation
- Separating retrieval contract from storage implementation reduces migration coupling
Explanation
Correct Answer
B:Pre-release evaluation and post-release monitoring address different lifecycle questions. The proposed engineering step is to Run offline evaluation on labeled cases before deployment and use live monitoring afterward. It directly supports the requirement that A new RAG agent has not shipped and has a labeled benchmark. The operational test is that Release includes benchmark scores and post-launch drift dashboard. This principle is more specific than a general instruction to retry or increase model size.
Incorrect Answers
A:“Deployment lifecycle requires governed inference endpoint and observability” is associated with this technical property: It directly supports the requirement that An enterprise wants a reusable agent with controlled serving and observability. The question instead turns on “Pre-release evaluation and post-release monitoring address different lifecycle questions”: It directly supports the requirement that A new RAG agent has not shipped and has a labeled benchmark.
C:“Genie-style analytics is suited to structured data rather than ungrounded numeric text generation” is associated with this technical property: It directly supports the requirement that An operations agent must answer questions requiring aggregations over governed BI tables. The question instead turns on “Pre-release evaluation and post-release monitoring address different lifecycle questions”: It directly supports the requirement that A new RAG agent has not shipped and has a labeled benchmark.
D:“Separating retrieval contract from storage implementation reduces migration coupling” is associated with this technical property: It directly supports the requirement that A support app changes its vector store provider every quarter. The question instead turns on “Pre-release evaluation and post-release monitoring address different lifecycle questions”: It directly supports the requirement that A new RAG agent has not shipped and has a labeled benchmark.
Question 212
For the requirement that Document chunks peak at 600 tokens but candidate embedding model accepts 512, the team proposes this change: Select a model with enough effective input tokens or reduce chunk size. Which technical principle explains why it is appropriate?
- Authorization enforced at tools cannot be bypassed by generated text
- Guardrails should consider both user intent and produced content
- Embedding truncation silently removes evidence from retrieval
- User intent must be coupled to trusted entity context before private lookup
Explanation
Correct Answer
C:Embedding truncation silently removes evidence from retrieval. The proposed engineering step is to Select a model with enough effective input tokens or reduce chunk size. It directly supports the requirement that Document chunks peak at 600 tokens but candidate embedding model accepts 512. The operational test is that Boundary test passages are searchable without truncation warnings. This principle is more specific than a general instruction to retry or increase model size.
Incorrect Answers
A:“Authorization enforced at tools cannot be bypassed by generated text” is associated with this technical property: It directly supports the requirement that An agent proposes updating customer credit limits from a chat message. The question instead turns on “Embedding truncation silently removes evidence from retrieval”: It directly supports the requirement that Document chunks peak at 600 tokens but candidate embedding model accepts 512.
B:“Guardrails should consider both user intent and produced content” is associated with this technical property: It directly supports the requirement that A public assistant receives abusive requests and attempts to produce harmful content. The question instead turns on “Embedding truncation silently removes evidence from retrieval”: It directly supports the requirement that Document chunks peak at 600 tokens but candidate embedding model accepts 512.
D:“User intent must be coupled to trusted entity context before private lookup” is associated with this technical property: It directly supports the requirement that An assistant retrieves account records after a user's vague request about their invoice. The question instead turns on “Embedding truncation silently removes evidence from retrieval”: It directly supports the requirement that Document chunks peak at 600 tokens but candidate embedding model accepts 512.
Question 213
A Databricks generative AI team is designing a solution with this requirement: A large overnight document labeling job runs through an interactive agent endpoint. Which engineering approach should it select first?
- Move eligible bulk requests to governed batch inference with appropriate quotas
- Choose an evaluator using verified ground-truth expected values for numerical correctness
- Define shared scoring rubric, run calibration rounds and resolve large disagreements
- Track p95/p99 latency and relevant request slices
Explanation
Correct Answer
A:Move eligible bulk requests to governed batch inference with appropriate quotas directly addresses the described Databricks GenAI architecture: A large overnight document labeling job runs through an interactive agent endpoint. Batch workloads can be decoupled from latency-critical online traffic. The solution should be validated using a measurable test, not only the existence of a saved prompt or configuration. The expected evidence is: Online p95 improves while nightly job finishes within budget.
Incorrect Answers
B:“Choose an evaluator using verified ground-truth expected values for numerical correctness” is associated with this technical property: Ground-truth scoring is necessary when exact facts determine correctness. The question instead turns on “Move eligible bulk requests to governed batch inference with appropriate quotas”: Batch workloads can be decoupled from latency-critical online traffic.
C:“Define shared scoring rubric, run calibration rounds and resolve large disagreements” is associated with this technical property: Human judgments need inter-rater consistency for reliable model comparisons. The question instead turns on “Move eligible bulk requests to governed batch inference with appropriate quotas”: Batch workloads can be decoupled from latency-critical online traffic.
D:“Track p95/p99 latency and relevant request slices” is associated with this technical property: Tail latency controls user experience for strict response-time services. The question instead turns on “Move eligible bulk requests to governed batch inference with appropriate quotas”: Batch workloads can be decoupled from latency-critical online traffic.
Question 214
A Databricks generative AI team is designing a solution with this requirement: The RAG prompt is changed to produce shorter answers before business release. Which engineering approach should it select first?
- Record representative input schema including tenant context in MLflow
- Use supported SQL ai_query batch inference in a scalable governed data workflow
- Use hybrid lexical and dense search with measured relevance for the workload
- Gate prompt promotion on fixed accuracy, completeness, safety and cost tests
Explanation
Correct Answer
D:Gate prompt promotion on fixed accuracy, completeness, safety and cost tests directly addresses the described Databricks GenAI architecture: The RAG prompt is changed to produce shorter answers before business release. Prompt changes can alter functional correctness and require quality control. The solution should be validated using a measurable test, not only the existence of a saved prompt or configuration. The expected evidence is: The new version meets release criteria or is rejected with recorded metrics.
Incorrect Answers
A:“Record representative input schema including tenant context in MLflow” is associated with this technical property: Model packaging must preserve fields required to enforce data boundaries. The question instead turns on “Gate prompt promotion on fixed accuracy, completeness, safety and cost tests”: Prompt changes can alter functional correctness and require quality control.
B:“Use supported SQL ai_query batch inference in a scalable governed data workflow” is associated with this technical property: Batch inference can process tabular rows where synchronous end-user serving is unnecessary. The question instead turns on “Gate prompt promotion on fixed accuracy, completeness, safety and cost tests”: Prompt changes can alter functional correctness and require quality control.
C:“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 “Gate prompt promotion on fixed accuracy, completeness, safety and cost tests”: Prompt changes can alter functional correctness and require quality control.
Question 215
An application intended to satisfy this requirement, A maintenance assistant must retrieve failure records then compute average downtime, instead experiences: The model guesses numeric averages from sample text instead of executing arithmetic. Which targeted engineering correction resolves this failure?
- Connect retrieval to a deterministic aggregation tool before final narrative generation
- Use schema-guided extraction with explicit missing-value handling rather than creative completion
- Refresh external result at the final decision point and label timestamped availability
- Separate draft, validation, human approval and side-effecting submit tool calls
Explanation
Correct Answer
A:Connect retrieval to a deterministic aggregation tool before final narrative generation targets the observed failure: The model guesses numeric averages from sample text instead of executing arithmetic. Deterministic computation should handle precise arithmetic while an LLM explains the result. Changing a different model component would not resolve this identified mechanism. To confirm the remediation, verify that Recomputed averages match source event durations and generated prose.
Incorrect Answers
B:“Use schema-guided extraction with explicit missing-value handling rather than creative completion” is associated with this technical property: Entity extraction should preserve evidence spans and avoid inventing unavailable fields. The question instead turns on “Connect retrieval to a deterministic aggregation tool before final narrative generation”: Deterministic computation should handle precise arithmetic while an LLM explains the result.
C:“Refresh external result at the final decision point and label timestamped availability” is associated with this technical property: Tool freshness is a dependency of time-sensitive reasoning and action. The question instead turns on “Connect retrieval to a deterministic aggregation tool before final narrative generation”: Deterministic computation should handle precise arithmetic while an LLM explains the result.
D:“Separate draft, validation, human approval and side-effecting submit tool calls” is associated with this technical property: State-changing operations require authorization gates distinct from read-only retrieval. The question instead turns on “Connect retrieval to a deterministic aggregation tool before final narrative generation”: Deterministic computation should handle precise arithmetic while an LLM explains the result.
Question 216
For the requirement that An agent endpoint has intermittent malformed tool calls after a model update, the team proposes this change: Enable appropriately governed inference logging and trace retention. Which technical principle explains why it is appropriate?
- Operational availability and response correctness require separate tracking
- Attribution requires identity and endpoint dimensions beyond total invoices
- Expert feedback improves quality only when incorporated into repeatable release gates
- Production debugging depends on evidence of actual invocation payloads
Explanation
Correct Answer
D:Production debugging depends on evidence of actual invocation payloads. The proposed engineering step is to Enable appropriately governed inference logging and trace retention. It directly supports the requirement that An agent endpoint has intermittent malformed tool calls after a model update. The operational test is that Authorized support can reproduce a failed request without exposing unrelated private data. This principle is more specific than a general instruction to retry or increase model size.
Incorrect Answers
A:“Operational availability and response correctness require separate tracking” is associated with this technical property: It directly supports the requirement that A live chatbot begins producing less useful answers after corpus refresh. The question instead turns on “Production debugging depends on evidence of actual invocation payloads”: It directly supports the requirement that An agent endpoint has intermittent malformed tool calls after a model update.
B:“Attribution requires identity and endpoint dimensions beyond total invoices” is associated with this technical property: It directly supports the requirement that Finance needs per-team spend for several deployed agent endpoints. The question instead turns on “Production debugging depends on evidence of actual invocation payloads”: It directly supports the requirement that An agent endpoint has intermittent malformed tool calls after a model update.
C:“Expert feedback improves quality only when incorporated into repeatable release gates” is associated with this technical property: It directly supports the requirement that A security reviewer finds an unsafe tool action that automated tests missed. The question instead turns on “Production debugging depends on evidence of actual invocation payloads”: It directly supports the requirement that An agent endpoint has intermittent malformed tool calls after a model update.
Question 217
A solution architect must balance this requirement: Contracts have headings, numbered clauses and definitions referenced together. During review the team anticipates the failure that Fixed character splits sever clause conditions from their headings. Which implementation decision best mitigates this particular risk while preserving the intended feature?
- Measure recall@k on labeled query-to-passage pairs and adjust candidate retrieval
- Combine keyword and semantic retrieval, then optionally rerank shortlisted results
- Use stable document and chunk IDs with change detection and Delta merge semantics
- Chunk along semantic boundaries, carrying heading metadata into retrieval
Explanation
Correct Answer
D:Chunk along semantic boundaries, carrying heading metadata into retrieval directly addresses the described Databricks GenAI architecture: Contracts have headings, numbered clauses and definitions referenced together. Structure-aware chunking preserves context and filters better than indiscriminate splitting. The solution should be validated using a measurable test, not only the existence of a saved prompt or configuration. The expected evidence is: Test queries retrieve full clause meaning with original heading metadata.
Incorrect Answers
A:“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 “Chunk along semantic boundaries, carrying heading metadata into retrieval”: Structure-aware chunking preserves context and filters better than indiscriminate splitting.
B:“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 “Chunk along semantic boundaries, carrying heading metadata into retrieval”: Structure-aware chunking preserves context and filters better than indiscriminate splitting.
C:“Use stable document and chunk IDs with change detection and Delta merge semantics” is associated with this technical property: Idempotent updates prevent duplicate indexed chunks and limit processing cost. The question instead turns on “Chunk along semantic boundaries, carrying heading metadata into retrieval”: Structure-aware chunking preserves context and filters better than indiscriminate splitting.
Question 218
A Databricks generative AI team is designing a solution with this requirement: A document retrieval service intermittently times out. Which engineering approach should it select first?
- Persist scoped state in an approved durable datastore with expiry and access policy
- Declare needed Python packages and artifacts when logging and packaging the pyfunc model
- Use approved Slack integration with channel allowlists and action confirmation
- Handle tool timeout, retry boundaries and explicit unknown-answer fallback in the chain
Explanation
Correct Answer
D:Handle tool timeout, retry boundaries and explicit unknown-answer fallback in the chain directly addresses the described Databricks GenAI architecture: A document retrieval service intermittently times out. Transport failure is not equivalent to a negative result in business logic. The solution should be validated using a measurable test, not only the existence of a saved prompt or configuration. The expected evidence is: Injected timeout returns a transparent transient-error message, not a fabricated fact.
Incorrect Answers
A:“Persist scoped state in an approved durable datastore with expiry and access policy” is associated with this technical property: Durable application memory needs storage and governance beyond model context. The question instead turns on “Handle tool timeout, retry boundaries and explicit unknown-answer fallback in the chain”: Transport failure is not equivalent to a negative result in business logic.
B:“Declare needed Python packages and artifacts when logging and packaging the pyfunc model” is associated with this technical property: A model artifact must include compatible runtime dependencies for reproducible serving. The question instead turns on “Handle tool timeout, retry boundaries and explicit unknown-answer fallback in the chain”: Transport failure is not equivalent to a negative result in business logic.
C:“Use approved Slack integration with channel allowlists and action confirmation” is associated with this technical property: User-interface integration requires target validation and side-effect controls. The question instead turns on “Handle tool timeout, retry boundaries and explicit unknown-answer fallback in the chain”: Transport failure is not equivalent to a negative result in business logic.
Question 219
An application intended to satisfy this requirement, Accounts payable must turn a large archive of invoices into normalized JSON fields, instead experiences: A conversational assistant returns inconsistent key names across batches. Which targeted engineering correction resolves this failure?
- Use schema-guided extraction with explicit missing-value handling rather than creative completion
- Build a retrieval step that selects authorized passages before prompting the answer model
- Choose the Information Extraction capability and define stable target schema
- Separate draft, validation, human approval and side-effecting submit tool calls
Explanation
Correct Answer
C:Choose the Information Extraction capability and define stable target schema targets the observed failure: A conversational assistant returns inconsistent key names across batches. Structured extraction differs from open-ended multi-step research orchestration. Changing a different model component would not resolve this identified mechanism. To confirm the remediation, verify that Batch outputs validate schema and field accuracy against reviewed invoice samples.
Incorrect Answers
A:“Use schema-guided extraction with explicit missing-value handling rather than creative completion” is associated with this technical property: Entity extraction should preserve evidence spans and avoid inventing unavailable fields. The question instead turns on “Choose the Information Extraction capability and define stable target schema”: Structured extraction differs from open-ended multi-step research orchestration.
B:“Build a retrieval step that selects authorized passages before prompting the answer model” is associated with this technical property: Retrieval-augmented generation grounds changing factual claims in controlled enterprise sources. The question instead turns on “Choose the Information Extraction capability and define stable target schema”: Structured extraction differs from open-ended multi-step research orchestration.
D:“Separate draft, validation, human approval and side-effecting submit tool calls” is associated with this technical property: State-changing operations require authorization gates distinct from read-only retrieval. The question instead turns on “Choose the Information Extraction capability and define stable target schema”: Structured extraction differs from open-ended multi-step research orchestration.
Question 220
The team observes this failure in a GenAI application: A single managed assistant answers documents but cannot complete the action workflow. After implementing the fix to Use a supported multi-agent or custom tool-enabled composition after checking managed capabilities, which measurement or test most directly demonstrates success?
- Answer traces show relevant handbook evidence for each supported response
- Functional tests show governed data query and approved custom exception tool execute in sequence
- Contract tests parse JSON and verify required fields and data types on diverse invoices
- Checked sample letters have faithful fields and missing values remain missing
Explanation
Correct Answer
B:Functional tests show governed data query and approved custom exception tool execute in sequence. This specifically validates the remediation to Use a supported multi-agent or custom tool-enabled composition after checking managed capabilities for the failure that A single managed assistant answers documents but cannot complete the action workflow. Tool requirements should determine orchestration rather than choosing components by popularity. A response that merely looks fluent or a successful configuration save would not be sufficient evidence.
Incorrect Answers
A:“Answer traces show relevant handbook evidence for each supported response” is associated with this technical property: Retrieval-augmented generation grounds changing factual claims in controlled enterprise sources. The question instead turns on “Functional tests show governed data query and approved custom exception tool execute in sequence”: Tool requirements should determine orchestration rather than choosing components by popularity.
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 “Functional tests show governed data query and approved custom exception tool execute in sequence”: Tool requirements should determine orchestration rather than choosing components by popularity.
D:“Checked sample letters have faithful fields and missing values remain missing” is associated with this technical property: Entity extraction should preserve evidence spans and avoid inventing unavailable fields. The question instead turns on “Functional tests show governed data query and approved custom exception tool execute in sequence”: Tool requirements should determine orchestration rather than choosing components by popularity.