Certified Generative AI Engineer Associate Practice Test 31
Question 300
An application intended to satisfy this requirement, A merchandise catalog needs search over 80 million embedding rows, instead experiences: Team uses the cheapest index option without evaluating latency and capacity. Which targeted engineering correction resolves this failure?
- Benchmark supported index types against collection size, update cadence, query latency and cost
- Use an authenticated Databricks App backend that holds server-side endpoint credentials
- Connect typed retrieval and date calculation components before the prose stage
- Choose a stable unique primary key and valid text/embedding fields for the index
Explanation
Correct Answer
A:Benchmark supported index types against collection size, update cadence, query latency and cost targets the observed failure: Team uses the cheapest index option without evaluating latency and capacity. Index architecture is a workload tradeoff, not solely a storage-price decision. Changing a different model component would not resolve this identified mechanism. To confirm the remediation, verify that Chosen design meets measured throughput and p95 response targets at expected scale.
Incorrect Answers
B:“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 “Benchmark supported index types against collection size, update cadence, query latency and cost”: Index architecture is a workload tradeoff, not solely a storage-price decision.
C:“Connect typed retrieval and date calculation components before the prose stage” is associated with this technical property: Stable intermediate schemas reduce cascading format errors. The question instead turns on “Benchmark supported index types against collection size, update cadence, query latency and cost”: Index architecture is a workload tradeoff, not solely a storage-price decision.
D:“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 “Benchmark supported index types against collection size, update cadence, query latency and cost”: Index architecture is a workload tradeoff, not solely a storage-price decision.
Question 301
An application intended to satisfy this requirement, A research agent calls an external ticket API requiring a provider key, instead experiences: The API key is copied into prompts and client-side source code. Which targeted engineering correction resolves this failure?
- Use governed model versions and aliases or equivalent approved promotion controls
- Register external MCP connection and keep credentials in governed secret storage
- Record representative input schema including tenant context in MLflow
- Use supported SQL ai_query batch inference in a scalable governed data workflow
Explanation
Correct Answer
B:Register external MCP connection and keep credentials in governed secret storage targets the observed failure: The API key is copied into prompts and client-side source code. Tool connection credentials must be isolated from model-generated content. Changing a different model component would not resolve this identified mechanism. To confirm the remediation, verify that Tool calls succeed under approved identity and red-team prompts cannot disclose key.
Incorrect Answers
A:“Use governed model versions and aliases or equivalent approved promotion controls” is associated with this technical property: Versioned model identity supports rollback without overwriting the source model. The question instead turns on “Register external MCP connection and keep credentials in governed secret storage”: Tool connection credentials must be isolated from model-generated content.
C:“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 “Register external MCP connection and keep credentials in governed secret storage”: Tool connection credentials must be isolated from model-generated content.
D:“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 “Register external MCP connection and keep credentials in governed secret storage”: Tool connection credentials must be isolated from model-generated content.
Question 302
For the requirement that Daily product feeds must be re-embedded after validated text cleanup, the team proposes this change: Store raw records and curated chunk tables separately in governed Delta with lineage. Which technical principle explains why it is appropriate?
- High-frequency irrelevant text dilutes retrieval quality and raises noise
- Optical character recognition extracts image text where text-layer parsers have none
- Source completeness matters more than a persuasive prompt for operational answers
- Layered data preparation supports reproducible source-to-chunk transformations
Explanation
Correct Answer
D:Layered data preparation supports reproducible source-to-chunk transformations. The proposed engineering step is to Store raw records and curated chunk tables separately in governed Delta with lineage. It directly supports the requirement that Daily product feeds must be re-embedded after validated text cleanup. The operational test is that Rebuild can trace each chunk to original record/version and transformation. This principle is more specific than a general instruction to retry or increase model size.
Incorrect Answers
A:“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 “Layered data preparation supports reproducible source-to-chunk transformations”: It directly supports the requirement that Daily product feeds must be re-embedded after validated text cleanup.
B:“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 “Layered data preparation supports reproducible source-to-chunk transformations”: It directly supports the requirement that Daily product feeds must be re-embedded after validated text cleanup.
C:“Source completeness matters more than a persuasive prompt for operational answers” is associated with this technical property: It directly supports the requirement that A shipping assistant needs expected delivery dates for a specific transaction. The question instead turns on “Layered data preparation supports reproducible source-to-chunk transformations”: It directly supports the requirement that Daily product feeds must be re-embedded after validated text cleanup.
Question 303
An engineering review considers a safeguard for this situation: An operations team must extract purchase-order numbers and totals from vendor letters. The proposed action is: Use schema-guided extraction with explicit missing-value handling rather than creative completion. Which observed failure most strongly justifies that action?
- A broad conversational model improvises absent numeric values
- A conversational assistant returns inconsistent key names across batches
- The model invokes payment submission immediately after interpreting a natural-language request
- Developers attempt to maintain bespoke routing and evaluation components without special requirements
Explanation
Correct Answer
A:A broad conversational model improvises absent numeric values. This observation motivates the specific control to Use schema-guided extraction with explicit missing-value handling rather than creative completion. Entity extraction should preserve evidence spans and avoid inventing unavailable fields. The follow-up evidence would be: Checked sample letters have faithful fields and missing values remain missing. The other symptoms may matter elsewhere but do not identify the particular mechanism at issue.
Incorrect Answers
B:“A conversational assistant returns inconsistent key names across batches” is associated with this technical property: This observation motivates the specific control to Choose the Information Extraction capability and define stable target schema. The question instead turns on “A broad conversational model improvises absent numeric values”: This observation motivates the specific control to Use schema-guided extraction with explicit missing-value handling rather than creative completion.
C:“The model invokes payment submission immediately after interpreting a natural-language request” is associated with this technical property: This observation motivates the specific control to Separate draft, validation, human approval and side-effecting submit tool calls. The question instead turns on “A broad conversational model improvises absent numeric values”: This observation motivates the specific control to Use schema-guided extraction with explicit missing-value handling rather than creative completion.
D:“Developers attempt to maintain bespoke routing and evaluation components without special requirements” is associated with this technical property: This observation motivates the specific control to Start with a managed Agent Bricks capability and justify custom code only for unmet requirements. The question instead turns on “A broad conversational model improvises absent numeric values”: This observation motivates the specific control to Use schema-guided extraction with explicit missing-value handling rather than creative completion.
Question 304
An application intended to satisfy this requirement, A searchable document includes hidden instructions embedded in markdown links, instead experiences: The model treats those strings as trustworthy operational steps. Which targeted engineering correction resolves this failure?
- Parse, label and isolate untrusted document instructions while preserving legitimate factual content
- Validate and bind tenant scope server-side for every tool call
- Choose supported masking/redaction or logging minimization before persisted telemetry
- Constrain external tools, allowlisted destinations and approval for data egress
Explanation
Correct Answer
A:Parse, label and isolate untrusted document instructions while preserving legitimate factual content targets the observed failure: The model treats those strings as trustworthy operational steps. Source cleaning reduces accidental execution of embedded instructions. Changing a different model component would not resolve this identified mechanism. To confirm the remediation, verify that Injection benchmark fails to redirect agent behavior but still retrieves relevant facts.
Incorrect Answers
B:“Validate and bind tenant scope server-side for every tool call” is associated with this technical property: Model-generated arguments are not an authorization boundary. The question instead turns on “Parse, label and isolate untrusted document instructions while preserving legitimate factual content”: Source cleaning reduces accidental execution of embedded instructions.
C:“Choose supported masking/redaction or logging minimization before persisted telemetry” is associated with this technical property: Operational metrics should avoid storing unnecessary sensitive payloads. The question instead turns on “Parse, label and isolate untrusted document instructions while preserving legitimate factual content”: Source cleaning reduces accidental execution of embedded instructions.
D:“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 “Parse, label and isolate untrusted document instructions while preserving legitimate factual content”: Source cleaning reduces accidental execution of embedded instructions.
Question 305
For the requirement that An enterprise wants a reusable agent with controlled serving and observability, the team proposes this change: Package an agent via supported Agent Framework deployment and serving path. Which technical principle explains why it is appropriate?
- Fluency is not evidence of grounded correctness
- Genie-style analytics is suited to structured data rather than ungrounded numeric text generation
- Guardrails should consider both user intent and produced content
- Deployment lifecycle requires governed inference endpoint and observability
Explanation
Correct Answer
D:Deployment lifecycle requires governed inference endpoint and observability. The proposed engineering step is to Package an agent via supported Agent Framework deployment and serving path. It directly supports the requirement that An enterprise wants a reusable agent with controlled serving and observability. The operational test is that Authorized clients call versioned endpoint and traces capture requests. This principle is more specific than a general instruction to retry or increase model size.
Incorrect Answers
A:“Fluency is not evidence of grounded correctness” is associated with this technical property: It directly supports the requirement that A RAG bot answers a policy question with a plausible paragraph unsupported by retrieval. The question instead turns on “Deployment lifecycle requires governed inference endpoint and observability”: It directly supports the requirement that An enterprise wants a reusable agent with controlled serving and observability.
B:“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 “Deployment lifecycle requires governed inference endpoint and observability”: It directly supports the requirement that An enterprise wants a reusable agent with controlled serving and observability.
C:“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 “Deployment lifecycle requires governed inference endpoint and observability”: It directly supports the requirement that An enterprise wants a reusable agent with controlled serving and observability.
Question 306
The team observes this failure in a GenAI application: The prompt has no verified account identifier and mixes neighboring customers. After implementing the fix to Pass authenticated account ID and resolved invoice ID as structured retrieval filters, which measurement or test most directly demonstrates success?
- Tool-call success rate and fallback behavior meet test targets
- Trace shows scoped retrieval and no cross-account data exposure
- A failed response links to distinct retrieval, tool and inference spans
- Trend shows policy mismatch and updated evaluation verifies remediation
Explanation
Correct Answer
B:Trace shows scoped retrieval and no cross-account data exposure. This specifically validates the remediation to Pass authenticated account ID and resolved invoice ID as structured retrieval filters for the failure that The prompt has no verified account identifier and mixes neighboring customers. User intent must be coupled to trusted entity context before private lookup. A response that merely looks fluent or a successful configuration save would not be sufficient evidence.
Incorrect Answers
A:“Tool-call success rate and fallback behavior meet test targets” is associated with this technical property: Tool calling reliability is a distinct operational capability from general language fluency. The question instead turns on “Trace shows scoped retrieval and no cross-account data exposure”: User intent must be coupled to trusted entity context before private lookup.
C:“A failed response links to distinct retrieval, tool and inference spans” is associated with this technical property: End-to-end traces reveal which step failed and support reproducible evaluation. The question instead turns on “Trace shows scoped retrieval and no cross-account data exposure”: User intent must be coupled to trusted entity context before private lookup.
D:“Trend shows policy mismatch and updated evaluation verifies remediation” is associated with this technical property: Production monitoring detects data shifts missed by one-time release tests. The question instead turns on “Trace shows scoped retrieval and no cross-account data exposure”: User intent must be coupled to trusted entity context before private lookup.
Question 307
An engineering review considers a safeguard for this situation: Legal review requires clause-level risk summaries linked to source document identifiers. The proposed action is: Define typed document inputs, risk labels, source offsets and output schema before design. Which observed failure most strongly justifies that action?
- The assistant sometimes emits markdown prose that breaks the consuming parser
- The model invents labels that the dispatch workflow cannot handle
- Developers attempt to maintain bespoke routing and evaluation components without special requirements
- Development starts prompts without defining input document versions or output evidence fields
Explanation
Correct Answer
D:Development starts prompts without defining input document versions or output evidence fields. This observation motivates the specific control to Define typed document inputs, risk labels, source offsets and output schema before design. Explicit data contracts make evaluation and downstream workflow integration possible. The follow-up evidence would be: Prototype output includes traceable clauses, stable identifiers and required risk fields. 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 “Development starts prompts without defining input document versions or output evidence fields”: This observation motivates the specific control to Define typed document inputs, risk labels, source offsets and output schema before design.
B:“The model invents labels that the dispatch workflow cannot handle” is associated with this technical property: This observation motivates the specific control to Supply the allowed label vocabulary and validate each response against its enum. The question instead turns on “Development starts prompts without defining input document versions or output evidence fields”: This observation motivates the specific control to Define typed document inputs, risk labels, source offsets and output schema before design.
C:“Developers attempt to maintain bespoke routing and evaluation components without special requirements” is associated with this technical property: This observation motivates the specific control to Start with a managed Agent Bricks capability and justify custom code only for unmet requirements. The question instead turns on “Development starts prompts without defining input document versions or output evidence fields”: This observation motivates the specific control to Define typed document inputs, risk labels, source offsets and output schema before design.
Question 308
An application intended to satisfy this requirement, A corpus produces too many nearly identical chunks and index cost exceeds budget, instead experiences: Developers increase overlap despite redundant boundaries and hit capacity. Which targeted engineering correction resolves this failure?
- Rerank the candidate set against the full query with a suitable reranker
- Combine keyword and semantic retrieval, then optionally rerank shortlisted results
- Reduce excessive overlap while checking boundary-question recall
- Filter or version source records by approval status and effective date
Explanation
Correct Answer
C:Reduce excessive overlap while checking boundary-question recall targets the observed failure: Developers increase overlap despite redundant boundaries and hit capacity. Overlap trades continuity against duplication, latency and storage footprint. Changing a different model component would not resolve this identified mechanism. To confirm the remediation, verify that Index count falls and boundary reference questions remain answerable.
Incorrect Answers
A:“Rerank the candidate set against the full query with a suitable reranker” is associated with this technical property: Second-stage reranking can improve relevance where first-stage vectors are approximate. The question instead turns on “Reduce excessive overlap while checking boundary-question recall”: Overlap trades continuity against duplication, latency and storage footprint.
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 “Reduce excessive overlap while checking boundary-question recall”: Overlap trades continuity against duplication, latency and storage footprint.
D:“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 “Reduce excessive overlap while checking boundary-question recall”: Overlap trades continuity against duplication, latency and storage footprint.
Question 309
An engineering review considers a safeguard for this situation: A QA system misses the sole relevant chunk even though it exists in the index. The proposed action is: Measure recall@k on labeled query-to-passage pairs and adjust candidate retrieval. Which observed failure most strongly justifies that action?
- Final prompt repeats the same paragraphs and crowds out alternatives
- A scanned-image OCR tool produces noise on native HTML pages
- The response model hallucinates because top-k retrieval omitted the source
- Pipeline reprocesses every item and generates expensive duplicate embeddings
Explanation
Correct Answer
C:The response model hallucinates because top-k retrieval omitted the source. This observation motivates the specific control to Measure recall@k on labeled query-to-passage pairs and adjust candidate retrieval. Retrieval recall is an upstream prerequisite for grounded answer generation. The follow-up evidence would be: Recall@k rises for held-out expected passages without excessive result count. The other symptoms may matter elsewhere but do not identify the particular mechanism at issue.
Incorrect Answers
A:“Final prompt repeats the same paragraphs and crowds out alternatives” is associated with this technical property: This observation motivates the specific control to Deduplicate overlapping candidates or use maximal marginal relevance before context assembly. The question instead turns on “The response model hallucinates because top-k retrieval omitted the source”: This observation motivates the specific control to Measure recall@k on labeled query-to-passage pairs and adjust candidate retrieval.
B:“A scanned-image OCR tool produces noise on native HTML pages” is associated with this technical property: This observation motivates the specific control to Parse relevant HTML elements using an HTML parser such as BeautifulSoup. The question instead turns on “The response model hallucinates because top-k retrieval omitted the source”: This observation motivates the specific control to Measure recall@k on labeled query-to-passage pairs and adjust candidate retrieval.
D:“Pipeline reprocesses every item and generates expensive duplicate embeddings” is associated with this technical property: This observation motivates the specific control to Use stable document and chunk IDs with change detection and Delta merge semantics. The question instead turns on “The response model hallucinates because top-k retrieval omitted the source”: This observation motivates the specific control to Measure recall@k on labeled query-to-passage pairs and adjust candidate retrieval.
Question 310
For the requirement that A production retriever depends on a Delta sync index updated with the corpus, the team proposes this change: Test source table and index sync before promoting agent to production. Which technical principle explains why it is appropriate?
- Inference endpoint permissions should reflect least privilege and source sensitivity
- Browser-side secrets undermine tenant isolation and can be extracted by users
- A chain release depends on compatible data and index readiness
- Prompt changes can alter functional correctness and require quality control
Explanation
Correct Answer
C:A chain release depends on compatible data and index readiness. The proposed engineering step is to Test source table and index sync before promoting agent to production. It directly supports the requirement that A production retriever depends on a Delta sync index updated with the corpus. The operational test is that Smoke tests retrieve newly approved documents before production traffic switch. This principle is more specific than a general instruction to retry or increase model size.
Incorrect Answers
A:“Inference endpoint permissions should reflect least privilege and source sensitivity” is associated with this technical property: Inference endpoint permissions should reflect least privilege and source sensitivity. The question instead turns on “A chain release depends on compatible data and index readiness”: It directly supports the requirement that A production retriever depends on a Delta sync index updated with the corpus.
B:“Browser-side secrets undermine tenant isolation and can be extracted by users” is associated with this technical property: It directly supports the requirement that A support portal must call an agent endpoint without leaking tokens into browser code. The question instead turns on “A chain release depends on compatible data and index readiness”: It directly supports the requirement that A production retriever depends on a Delta sync index updated with the corpus.
D:“Prompt changes can alter functional correctness and require quality control” is associated with this technical property: It directly supports the requirement that The RAG prompt is changed to produce shorter answers before business release. The question instead turns on “A chain release depends on compatible data and index readiness”: It directly supports the requirement that A production retriever depends on a Delta sync index updated with the corpus.