Certified Generative AI Engineer Associate Practice Test 45
Question 440
An engineering review considers a safeguard for this situation: Several departments share one agent endpoint but must see distinct documents. The proposed action is: Enforce user-aware authorization or scoped retrieval policy rather than relying on prompt filters. Which observed failure most strongly justifies that action?
- The endpoint uses broad service access and returns another department's records
- The deployed chain generates generic answers without retrieving any knowledge
- Agent treats an empty tool response as proof that the answer is no
- Serving cannot reconstruct the retrieval and processing logic
Explanation
Correct Answer
A:The endpoint uses broad service access and returns another department's records. This observation motivates the specific control to 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. The follow-up evidence would be: Cross-department adversarial requests cannot obtain unauthorized source passages. The other symptoms may matter elsewhere but do not identify the particular mechanism at issue.
Incorrect Answers
B:“The deployed chain generates generic answers without retrieving any knowledge” is associated with this technical property: This observation motivates the specific control to Include retriever configuration and embedding dependencies in deployment validation. The question instead turns on “The endpoint uses broad service access and returns another department's records”: This observation motivates the specific control to Enforce user-aware authorization or scoped retrieval policy rather than relying on prompt filters.
C:“Agent treats an empty tool response as proof that the answer is no” is associated with this technical property: This observation motivates the specific control to Handle tool timeout, retry boundaries and explicit unknown-answer fallback in the chain. The question instead turns on “The endpoint uses broad service access and returns another department's records”: This observation motivates the specific control to Enforce user-aware authorization or scoped retrieval policy rather than relying on prompt filters.
D:“Serving cannot reconstruct the retrieval and processing logic” is associated with this technical property: This observation motivates the specific control to Select a supported MLflow model flavor or pyfunc wrapper that packages code and runtime requirements. The question instead turns on “The endpoint uses broad service access and returns another department's records”: This observation motivates the specific control to Enforce user-aware authorization or scoped retrieval policy rather than relying on prompt filters.
Question 441
An engineering review considers a safeguard for this situation: A team proposes fine-tuning a public model on vendor documentation it does not own. The proposed action is: Check data provenance, license terms and documented permissible uses before training. Which observed failure most strongly justifies that action?
- Developers assume technical download access means commercial redistribution permission
- A malicious input changes the SQL predicate and accesses forbidden rows
- The model treats those strings as trustworthy operational steps
- The agent follows document instructions to call a privileged tool
Explanation
Correct Answer
A:Developers assume technical download access means commercial redistribution permission. This observation motivates the specific control to Check data provenance, license terms and documented permissible uses before training. Availability of source data does not imply redistribution or model-training rights. The follow-up evidence would be: Approved dataset manifest contains rights status for each source. The other symptoms may matter elsewhere but do not identify the particular mechanism at issue.
Incorrect Answers
B:“A malicious input changes the SQL predicate and accesses forbidden rows” is associated with this technical property: This observation motivates the specific control to Use parameterized queries with governed read-only permissions and validation. The question instead turns on “Developers assume technical download access means commercial redistribution permission”: This observation motivates the specific control to Check data provenance, license terms and documented permissible uses before training.
C:“The model treats those strings as trustworthy operational steps” is associated with this technical property: This observation motivates the specific control to Parse, label and isolate untrusted document instructions while preserving legitimate factual content. The question instead turns on “Developers assume technical download access means commercial redistribution permission”: This observation motivates the specific control to Check data provenance, license terms and documented permissible uses before training.
D:“The agent follows document instructions to call a privileged tool” is associated with this technical property: This observation motivates the specific control to Treat retrieved passages as untrusted data and enforce tool policies outside prompts. The question instead turns on “Developers assume technical download access means commercial redistribution permission”: This observation motivates the specific control to Check data provenance, license terms and documented permissible uses before training.
Question 442
An application intended to satisfy this requirement, A multi-turn agent must recover an in-progress task after a server restart, instead experiences: Conversation memory stored only in the process disappears on deployment rollover. Which targeted engineering correction resolves this failure?
- Register external MCP connection and keep credentials in governed secret storage
- Use an eligible Foundation Model API or serving endpoint with appropriate auth and quota
- Use supported SQL ai_query batch inference in a scalable governed data workflow
- Persist scoped state in an approved durable datastore with expiry and access policy
Explanation
Correct Answer
D:Persist scoped state in an approved durable datastore with expiry and access policy targets the observed failure: Conversation memory stored only in the process disappears on deployment rollover. Durable application memory needs storage and governance beyond model context. Changing a different model component would not resolve this identified mechanism. To confirm the remediation, verify that Authorized user resumes task after restart; another user cannot read the session.
Incorrect Answers
A:“Register external MCP connection and keep credentials in governed secret storage” is associated with this technical property: Tool connection credentials must be isolated from model-generated content. The question instead turns on “Persist scoped state in an approved durable datastore with expiry and access policy”: Durable application memory needs storage and governance beyond model context.
B:“Use an eligible Foundation Model API or serving endpoint with appropriate auth and quota” is associated with this technical property: Hosted model APIs separate application logic from model infrastructure operations. The question instead turns on “Persist scoped state in an approved durable datastore with expiry and access policy”: Durable application memory needs storage and governance beyond model context.
C:“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 “Persist scoped state in an approved durable datastore with expiry and access policy”: Durable application memory needs storage and governance beyond model context.
Question 443
For the requirement that A nightly Delta pipeline categorizes millions of support records before analysts use them, the team proposes this change: Use supported SQL ai_query batch inference in a scalable governed data workflow. Which technical principle explains why it is appropriate?
- Managed service tools reduce custom hosting and leverage workspace authorization
- Keyword and dense methods retrieve complementary kinds of evidence
- Prompt changes can alter functional correctness and require quality control
- Batch inference can process tabular rows where synchronous end-user serving is unnecessary
Explanation
Correct Answer
D:Batch inference can process tabular rows where synchronous end-user serving is unnecessary. The proposed engineering step is to Use supported SQL ai_query batch inference in a scalable governed data workflow. It directly supports the requirement that A nightly Delta pipeline categorizes millions of support records before analysts use them. The operational test is that Results are reproducibly attached to rows and retries avoid duplicate output. This principle is more specific than a general instruction to retry or increase model size.
Incorrect Answers
A:“Managed service tools reduce custom hosting and leverage workspace authorization” is associated with this technical property: It directly supports the requirement that An agent needs governed Unity Catalog queries and Genie analytics. The question instead turns on “Batch inference can process tabular rows where synchronous end-user serving is unnecessary”: It directly supports the requirement that A nightly Delta pipeline categorizes millions of support records before analysts use them.
B:“Keyword and dense methods retrieve complementary kinds of evidence” is associated with this technical property: It directly supports the requirement that A search index includes obscure error identifiers and natural-language descriptions. The question instead turns on “Batch inference can process tabular rows where synchronous end-user serving is unnecessary”: It directly supports the requirement that A nightly Delta pipeline categorizes millions of support records before analysts use them.
C:“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 “Batch inference can process tabular rows where synchronous end-user serving is unnecessary”: It directly supports the requirement that A nightly Delta pipeline categorizes millions of support records before analysts use them.
Question 444
An engineering review considers a safeguard for this situation: An employee HR assistant indexes support transcripts containing full account IDs. The proposed action is: Mask or tokenize restricted fields before indexing and apply access-aware lookup where needed. Which observed failure most strongly justifies that action?
- Sensitive identifiers appear in retrieved chunks and generated summaries
- The tool runs with broad service privileges despite natural-language tenancy claim
- The model treats those strings as trustworthy operational steps
- Retrieved text has garbled words that degrade grounded answers
Explanation
Correct Answer
A:Sensitive identifiers appear in retrieved chunks and generated summaries. This observation motivates the specific control to Mask or tokenize restricted fields before indexing and apply access-aware lookup where needed. Masking is more reliable at ingestion than hoping an output prompt hides every identifier. The follow-up evidence would be: Indexed sample chunks and answers contain only authorized masked identifiers. The other symptoms may matter elsewhere but do not identify the particular mechanism at issue.
Incorrect Answers
B:“The tool runs with broad service privileges despite natural-language tenancy claim” is associated with this technical property: This observation motivates the specific control to Validate and bind tenant scope server-side for every tool call. The question instead turns on “Sensitive identifiers appear in retrieved chunks and generated summaries”: This observation motivates the specific control to Mask or tokenize restricted fields before indexing and apply access-aware lookup where needed.
C:“The model treats those strings as trustworthy operational steps” is associated with this technical property: This observation motivates the specific control to Parse, label and isolate untrusted document instructions while preserving legitimate factual content. The question instead turns on “Sensitive identifiers appear in retrieved chunks and generated summaries”: This observation motivates the specific control to Mask or tokenize restricted fields before indexing and apply access-aware lookup where needed.
D:“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 “Sensitive identifiers appear in retrieved chunks and generated summaries”: This observation motivates the specific control to Mask or tokenize restricted fields before indexing and apply access-aware lookup where needed.
Question 445
A Databricks generative AI team is designing a solution with this requirement: Several departments share one agent endpoint but must see distinct documents. Which engineering approach should it select first?
- Select batch SQL inference with controlled data volume and validation
- Add typed output parsing and schema validation in the pyfunc predict path
- Enforce user-aware authorization or scoped retrieval policy rather than relying on prompt filters
- Log a model signature and representative input example matching real requests
Explanation
Correct Answer
C:Enforce user-aware authorization or scoped retrieval policy rather than relying on prompt filters directly addresses the described Databricks GenAI architecture: Several departments share one agent endpoint but must see distinct documents. Model-serving authentication alone does not automatically implement row-level retrieval access. The solution should be validated using a measurable test, not only the existence of a saved prompt or configuration. The expected evidence is: Cross-department adversarial requests cannot obtain unauthorized source passages.
Incorrect Answers
A:“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 “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:“Add typed output parsing and schema validation in the pyfunc predict path” is associated with this technical property: Preprocessing and postprocessing are deployable model behavior and need independent tests. 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:“Log a model signature and representative input example matching real requests” is associated with this technical property: A declared model interface allows serving validation and client integration. 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.
Question 446
An application intended to satisfy this requirement, An application receives a user question and must return an answer based on a private wiki, instead experiences: Model emits an answer before any retrieval call is made. Which targeted engineering correction resolves this failure?
- Implement explicit retrieve, evidence selection and answer generation stages
- Benchmark supported index types against collection size, update cadence, query latency and cost
- Configure supported workload identity and scoped service credentials for the endpoint
- Use governed model versions and aliases or equivalent approved promotion controls
Explanation
Correct Answer
A:Implement explicit retrieve, evidence selection and answer generation stages targets the observed failure: Model emits an answer before any retrieval call is made. An executable chain defines data dependencies instead of hoping prompting implies them. Changing a different model component would not resolve this identified mechanism. To confirm the remediation, verify that Trace shows evidence retrieval before every grounded answer.
Incorrect Answers
B:“Benchmark supported index types against collection size, update cadence, query latency and cost” is associated with this technical property: Index architecture is a workload tradeoff, not solely a storage-price decision. The question instead turns on “Implement explicit retrieve, evidence selection and answer generation stages”: An executable chain defines data dependencies instead of hoping prompting implies them.
C:“Configure supported workload identity and scoped service credentials for the endpoint” is associated with this technical property: Production service identities should not depend on individual user credentials. The question instead turns on “Implement explicit retrieve, evidence selection and answer generation stages”: An executable chain defines data dependencies instead of hoping prompting implies them.
D:“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 “Implement explicit retrieve, evidence selection and answer generation stages”: An executable chain defines data dependencies instead of hoping prompting implies them.
Question 447
An application intended to satisfy this requirement, Four subject experts grade the same RAG answer very differently, instead experiences: Team averages disagreement into a misleading quality benchmark. Which targeted engineering correction resolves this failure?
- Write a code-based scorer that compares expected identifiers and formats
- Use AI Gateway usage telemetry with endpoint/team attribution
- Define shared scoring rubric, run calibration rounds and resolve large disagreements
- Cache eligible nonprivate responses with document-version invalidation
Explanation
Correct Answer
C:Define shared scoring rubric, run calibration rounds and resolve large disagreements targets the observed failure: Team averages disagreement into a misleading quality benchmark. Human judgments need inter-rater consistency for reliable model comparisons. Changing a different model component would not resolve this identified mechanism. To confirm the remediation, verify that Repeat scoring shows improved agreement and adjudicated benchmark cases.
Incorrect Answers
A:“Write a code-based scorer that compares expected identifiers and formats” is associated with this technical property: Exact-data correctness requires deterministic comparison not just prose similarity. The question instead turns on “Define shared scoring rubric, run calibration rounds and resolve large disagreements”: Human judgments need inter-rater consistency for reliable model comparisons.
B:“Use AI Gateway usage telemetry with endpoint/team attribution” is associated with this technical property: Attribution requires identity and endpoint dimensions beyond total invoices. The question instead turns on “Define shared scoring rubric, run calibration rounds and resolve large disagreements”: Human judgments need inter-rater consistency for reliable model comparisons.
D:“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 “Define shared scoring rubric, run calibration rounds and resolve large disagreements”: Human judgments need inter-rater consistency for reliable model comparisons.
Question 448
The team observes this failure in a GenAI application: Frontend embeds a permanent access token in JavaScript. After implementing the fix to Use an authenticated Databricks App backend that holds server-side endpoint credentials, which measurement or test most directly demonstrates success?
- Test set improves exact error-code recall and paraphrase relevance
- Index queries return distinct expected records and change updates affect only intended ID
- Browser code has no credentials and authenticated authorized requests succeed
- Release report identifies changed component and passes regression cases
Explanation
Correct Answer
C:Browser code has no credentials and authenticated authorized requests succeed. This specifically validates the remediation to Use an authenticated Databricks App backend that holds server-side endpoint credentials for the failure that Frontend embeds a permanent access token in JavaScript. Browser-side secrets undermine tenant isolation and can be extracted by users. A response that merely looks fluent or a successful configuration save would not be sufficient evidence.
Incorrect Answers
A:“Test set improves exact error-code recall and paraphrase relevance” is associated with this technical property: Keyword and dense methods retrieve complementary kinds of evidence. The question instead turns on “Browser code has no credentials and authenticated authorized requests succeed”: Browser-side secrets undermine tenant isolation and can be extracted by users.
B:“Index queries return distinct expected records and change updates affect only intended ID” is associated with this technical property: A vector index needs consistent row identity to synchronize source mutations. The question instead turns on “Browser code has no credentials and authenticated authorized requests succeed”: Browser-side secrets undermine tenant isolation and can be extracted by users.
D:“Release report identifies changed component and passes regression cases” is associated with this technical property: Component-level CI isolates root causes that end-to-end scores may hide. The question instead turns on “Browser code has no credentials and authenticated authorized requests succeed”: Browser-side secrets undermine tenant isolation and can be extracted by users.
Question 449
A Databricks generative AI team is designing a solution with this requirement: A chain's model signature omits the tenant field used for retrieval. Which engineering approach should it select first?
- Track prompt versions and promote with a stable alias after evaluation
- Record representative input schema including tenant context in MLflow
- Declare needed Python packages and artifacts when logging and packaging the pyfunc model
- Register external MCP connection and keep credentials in governed secret storage
Explanation
Correct Answer
B:Record representative input schema including tenant context in MLflow directly addresses the described Databricks GenAI architecture: A chain's model signature omits the tenant field used for retrieval. Model packaging must preserve fields required to enforce data boundaries. The solution should be validated using a measurable test, not only the existence of a saved prompt or configuration. The expected evidence is: Serving test shows scoped retrieval and rejects missing mandatory scope.
Incorrect Answers
A:“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 “Record representative input schema including tenant context in MLflow”: Model packaging must preserve fields required to enforce data boundaries.
C:“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 “Record representative input schema including tenant context in MLflow”: Model packaging must preserve fields required to enforce data boundaries.
D:“Register external MCP connection and keep credentials in governed secret storage” is associated with this technical property: Tool connection credentials must be isolated from model-generated content. The question instead turns on “Record representative input schema including tenant context in MLflow”: Model packaging must preserve fields required to enforce data boundaries.
Question 450
An engineering review considers a safeguard for this situation: Price availability text changes many times daily and must affect semantic search rapidly. The proposed action is: Choose supported index synchronization mode and verify freshness SLA under updates. Which observed failure most strongly justifies that action?
- The endpoint uses broad service access and returns another department's records
- Revoking the engineer's personal token unexpectedly breaks production access
- A deployment hardcodes an artifact path and cannot roll back quickly
- The vector index refreshes once per day and returns stale inventory summaries
Explanation
Correct Answer
D:The vector index refreshes once per day and returns stale inventory summaries. This observation motivates the specific control to Choose supported index synchronization mode and verify freshness SLA under updates. Update frequency is a key design input for choosing index deployment. The follow-up evidence would be: A changed catalog record appears in results within agreed refresh window. The other symptoms may matter elsewhere but do not identify the particular mechanism at issue.
Incorrect Answers
A:“The endpoint uses broad service access and returns another department's records” is associated with this technical property: This observation motivates the specific control to Enforce user-aware authorization or scoped retrieval policy rather than relying on prompt filters. The question instead turns on “The vector index refreshes once per day and returns stale inventory summaries”: This observation motivates the specific control to Choose supported index synchronization mode and verify freshness SLA under updates.
B:“Revoking the engineer's personal token unexpectedly breaks production access” is associated with this technical property: This observation motivates the specific control to Configure supported workload identity and scoped service credentials for the endpoint. The question instead turns on “The vector index refreshes once per day and returns stale inventory summaries”: This observation motivates the specific control to Choose supported index synchronization mode and verify freshness SLA under updates.
C:“A deployment hardcodes an artifact path and cannot roll back quickly” is associated with this technical property: This observation motivates the specific control to Use governed model versions and aliases or equivalent approved promotion controls. The question instead turns on “The vector index refreshes once per day and returns stale inventory summaries”: This observation motivates the specific control to Choose supported index synchronization mode and verify freshness SLA under updates.