Certified Generative AI Engineer Associate Practice Test 39
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.
Question 381
A solution architect must balance this requirement: Employees ask natural-language questions about current internal procedures. During review the team anticipates the failure that A sentiment classifier returns positive or negative labels instead of answers. Which implementation decision best mitigates this particular risk while preserving the intended feature?
- Separate draft, validation, human approval and side-effecting submit tool calls
- Specify explicit JSON fields and enforce a structured output schema with validation
- Use retrieval-grounded question answering with a suitable generative model
- Select information extraction with validation and optional citations before using generative prose
Explanation
Correct Answer
C:Use retrieval-grounded question answering with a suitable generative model directly addresses the described Databricks GenAI architecture: Employees ask natural-language questions about current internal procedures. Answer generation and sentiment classification optimize distinct model tasks. The solution should be validated using a measurable test, not only the existence of a saved prompt or configuration. The expected evidence is: Held-out questions are answered using linked procedure passages instead of sentiment scores.
Incorrect Answers
A:“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 “Use retrieval-grounded question answering with a suitable generative model”: Answer generation and sentiment classification optimize distinct model tasks.
B:“Specify explicit JSON fields and enforce a structured output schema with validation” 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 “Use retrieval-grounded question answering with a suitable generative model”: Answer generation and sentiment classification optimize distinct model tasks.
D:“Select information extraction with validation and optional citations before using generative prose” is associated with this technical property: Matching a source paragraph is not equivalent to structured field extraction. The question instead turns on “Use retrieval-grounded question answering with a suitable generative model”: Answer generation and sentiment classification optimize distinct model tasks.
Question 382
A Databricks generative AI team is designing a solution with this requirement: An employee HR assistant indexes support transcripts containing full account IDs. Which engineering approach should it select first?
- Mask or tokenize restricted fields before indexing and apply access-aware lookup where needed
- Constrain external tools, allowlisted destinations and approval for data egress
- Use parameterized queries with governed read-only permissions and validation
- Enforce entitlements and output-length constraints for licensed sources
Explanation
Correct Answer
A:Mask or tokenize restricted fields before indexing and apply access-aware lookup where needed directly addresses the described Databricks GenAI architecture: An employee HR assistant indexes support transcripts containing full account IDs. Masking is more reliable at ingestion than hoping an output prompt hides every identifier. The solution should be validated using a measurable test, not only the existence of a saved prompt or configuration. The expected evidence is: Indexed sample chunks and answers contain only authorized masked identifiers.
Incorrect Answers
B:“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 “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.
C:“Use parameterized queries with governed read-only permissions and validation” is associated with this technical property: Data access security requires database controls rather than prompt-only cautions. The question instead turns on “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.
D:“Enforce entitlements and output-length constraints for licensed sources” is associated with this technical property: Retrieval authorization and permitted reproduction are distinct legal controls. The question instead turns on “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.
Question 383
An engineering review considers a safeguard for this situation: A bot handles contracts, SQL analytics and IT tickets via different tools. The proposed action is: Use specialist agents with a supervisor and per-tool permission boundaries. Which observed failure most strongly justifies that action?
- Team chooses maximal embedding dimension without measuring relevance gain
- The last paragraph of some chunks never contributes to the vectors
- One general tool selection executes an unsafe IT command for legal question
- Application prompts import provider-specific HTTP payload formats in many files
Explanation
Correct Answer
C:One general tool selection executes an unsafe IT command for legal question. This observation motivates the specific control to Use specialist agents with a supervisor and per-tool permission boundaries. Delegation can reduce cross-domain tool confusion when roles are explicit. The follow-up evidence would be: Mixed-intent tests route to the intended specialist and enforce permissions. The other symptoms may matter elsewhere but do not identify the particular mechanism at issue.
Incorrect Answers
A:“Team chooses maximal embedding dimension without measuring relevance gain” is associated with this technical property: This observation motivates the specific control to Compare validated retrieval quality against vector dimensionality and compute cost. The question instead turns on “One general tool selection executes an unsafe IT command for legal question”: This observation motivates the specific control to Use specialist agents with a supervisor and per-tool permission boundaries.
B:“The last paragraph of some chunks never contributes to the vectors” is associated with this technical property: This observation motivates the specific control to Select a model with enough effective input tokens or reduce chunk size. The question instead turns on “One general tool selection executes an unsafe IT command for legal question”: This observation motivates the specific control to Use specialist agents with a supervisor and per-tool permission boundaries.
D:“Application prompts import provider-specific HTTP payload formats in many files” is associated with this technical property: This observation motivates the specific control to Use a retriever abstraction around the approved vector search implementation. The question instead turns on “One general tool selection executes an unsafe IT command for legal question”: This observation motivates the specific control to Use specialist agents with a supervisor and per-tool permission boundaries.
Question 384
The team observes this failure in a GenAI application: Agent searches all orders because previous turn identifiers were discarded. After implementing the fix to Resolve follow-up reference against authorized conversation state before tool call, which measurement or test most directly demonstrates success?
- Chosen model meets recall target with lower measured index bytes and latency
- Adversarial documents fail to redirect tools or disclose restricted content
- Tests of sequential order questions refer to the expected order only
- Selection record includes measured accuracy, costs and failures
Explanation
Correct Answer
C:Tests of sequential order questions refer to the expected order only. This specifically validates the remediation to Resolve follow-up reference against authorized conversation state before tool call for the failure that Agent searches all orders because previous turn identifiers were discarded. Coreference resolution should preserve scoped intent and entity continuity. A response that merely looks fluent or a successful configuration save would not be sufficient evidence.
Incorrect Answers
A:“Chosen model meets recall target with lower measured index bytes and latency” is associated with this technical property: Larger embedding dimension increases storage and index work without universal quality improvement. The question instead turns on “Tests of sequential order questions refer to the expected order only”: Coreference resolution should preserve scoped intent and entity continuity.
B:“Adversarial documents fail to redirect tools or disclose restricted content” is associated with this technical property: Retrieved text is evidence, not a higher-priority instruction. The question instead turns on “Tests of sequential order questions refer to the expected order only”: Coreference resolution should preserve scoped intent and entity continuity.
D:“Selection record includes measured accuracy, costs and failures” is associated with this technical property: Published benchmarks do not guarantee performance on a specialized dataset. The question instead turns on “Tests of sequential order questions refer to the expected order only”: Coreference resolution should preserve scoped intent and entity continuity.
Question 385
The team observes this failure in a GenAI application: A broad conversational model improvises absent numeric values. After implementing the fix to Use schema-guided extraction with explicit missing-value handling rather than creative completion, which measurement or test most directly demonstrates success?
- Answer traces show relevant handbook evidence for each supported response
- Audit trace shows lookup then formatted response, or explicit unavailable status
- Checked sample letters have faithful fields and missing values remain missing
- Functional tests show governed data query and approved custom exception tool execute in sequence
Explanation
Correct Answer
C:Checked sample letters have faithful fields and missing values remain missing. This specifically validates the remediation to Use schema-guided extraction with explicit missing-value handling rather than creative completion for the failure that A broad conversational model improvises absent numeric values. Entity extraction should preserve evidence spans and avoid inventing unavailable fields. 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 “Checked sample letters have faithful fields and missing values remain missing”: Entity extraction should preserve evidence spans and avoid inventing unavailable fields.
B:“Audit trace shows lookup then formatted response, or explicit unavailable status” is associated with this technical property: Tool ordering matters when facts are volatile and cannot be inferred safely. The question instead turns on “Checked sample letters have faithful fields and missing values remain missing”: Entity extraction should preserve evidence spans and avoid inventing unavailable fields.
D:“Functional tests show governed data query and approved custom exception tool execute in sequence” is associated with this technical property: Tool requirements should determine orchestration rather than choosing components by popularity. The question instead turns on “Checked sample letters have faithful fields and missing values remain missing”: Entity extraction should preserve evidence spans and avoid inventing unavailable fields.
Question 386
For the requirement that A finance user asks for actual spend across departments, the team proposes this change: Require the governed Genie result and query provenance before final response. Which technical principle explains why it is appropriate?
- Coreference resolution should preserve scoped intent and entity continuity
- Structured analytics should be traceable to actual authorized data access
- Helpful tone does not substitute for authorized and safe behavior
- Technical suitability does not grant legal permission for deployment
Explanation
Correct Answer
B:Structured analytics should be traceable to actual authorized data access. The proposed engineering step is to Require the governed Genie result and query provenance before final response. It directly supports the requirement that A finance user asks for actual spend across departments. The operational test is that Response amounts reconcile with query output and user role scope. This principle is more specific than a general instruction to retry or increase model size.
Incorrect Answers
A:“Coreference resolution should preserve scoped intent and entity continuity” is associated with this technical property: It directly supports the requirement that A user asks whether the second order has shipped after discussing three orders. The question instead turns on “Structured analytics should be traceable to actual authorized data access”: It directly supports the requirement that A finance user asks for actual spend across departments.
C:“Helpful tone does not substitute for authorized and safe behavior” is associated with this technical property: It directly supports the requirement that A customer assistant gives courteous instructions for a prohibited account change. The question instead turns on “Structured analytics should be traceable to actual authorized data access”: It directly supports the requirement that A finance user asks for actual spend across departments.
D:“Technical suitability does not grant legal permission for deployment” is associated with this technical property: It directly supports the requirement that A model hub lists several capable text models for a commercial support service. The question instead turns on “Structured analytics should be traceable to actual authorized data access”: It directly supports the requirement that A finance user asks for actual spend across departments.
Question 387
An application intended to satisfy this requirement, An order-status agent must check current shipment events before writing a reply, instead experiences: The agent sends reassuring delivery dates without invoking tracking. Which targeted engineering correction resolves this failure?
- Choose and evaluate a summarization-capable text generation model with a length instruction
- Use retrieval-grounded question answering with a suitable generative model
- Require authenticated lookup before answer composition, with missing-data branch
- Build a retrieval step that selects authorized passages before prompting the answer model
Explanation
Correct Answer
C:Require authenticated lookup before answer composition, with missing-data branch targets the observed failure: The agent sends reassuring delivery dates without invoking tracking. Tool ordering matters when facts are volatile and cannot be inferred safely. Changing a different model component would not resolve this identified mechanism. To confirm the remediation, verify that Audit trace shows lookup then formatted response, or explicit unavailable status.
Incorrect Answers
A:“Choose and evaluate a summarization-capable text generation model with a length instruction” is associated with this technical property: Task fit matters because extraction and summarization preserve different information. The question instead turns on “Require authenticated lookup before answer composition, with missing-data branch”: Tool ordering matters when facts are volatile and cannot be inferred safely.
B:“Use retrieval-grounded question answering with a suitable generative model” is associated with this technical property: Answer generation and sentiment classification optimize distinct model tasks. The question instead turns on “Require authenticated lookup before answer composition, with missing-data branch”: Tool ordering matters when facts are volatile and cannot be inferred safely.
D:“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 “Require authenticated lookup before answer composition, with missing-data branch”: Tool ordering matters when facts are volatile and cannot be inferred safely.
Question 388
A Databricks generative AI team is designing a solution with this requirement: An agent computes a contract renewal date from a structured SQL field. Which engineering approach should it select first?
- Gate prompt promotion on fixed accuracy, completeness, safety and cost tests
- Configure supported sync/refresh behavior and verify index freshness
- Log a model signature and representative input example matching real requests
- Connect typed retrieval and date calculation components before the prose stage
Explanation
Correct Answer
D:Connect typed retrieval and date calculation components before the prose stage directly addresses the described Databricks GenAI architecture: An agent computes a contract renewal date from a structured SQL field. Stable intermediate schemas reduce cascading format errors. The solution should be validated using a measurable test, not only the existence of a saved prompt or configuration. The expected evidence is: Unit tests pass leap year and timezone examples with exact computed dates.
Incorrect Answers
A:“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 “Connect typed retrieval and date calculation components before the prose stage”: Stable intermediate schemas reduce cascading format errors.
B:“Configure supported sync/refresh behavior and verify index freshness” is associated with this technical property: Index results reflect a materialized view whose update cadence must match source changes. The question instead turns on “Connect typed retrieval and date calculation components before the prose stage”: Stable intermediate schemas reduce cascading format errors.
C:“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 “Connect typed retrieval and date calculation components before the prose stage”: Stable intermediate schemas reduce cascading format errors.
Question 389
A solution architect must balance this requirement: The product database supplies structured API responses with nested fields. During review the team anticipates the failure that A web scraper searches rendered strings and loses nested attribute semantics. Which implementation decision best mitigates this particular risk while preserving the intended feature?
- Reduce chunk tokens to fit effective embedding context with explicit truncation tests
- Store child chunks for fine search with parent-section expansion for answer context
- Parse JSON directly and normalize documented nested keys
- Keep table captions and headers with row groups during structured extraction
Explanation
Correct Answer
C:Parse JSON directly and normalize documented nested keys directly addresses the described Databricks GenAI architecture: The product database supplies structured API responses with nested fields. Structured APIs should be read as structures rather than rendered web text. The solution should be validated using a measurable test, not only the existence of a saved prompt or configuration. The expected evidence is: Sample entities retain IDs, numeric types and provenance fields.
Incorrect Answers
A:“Reduce chunk tokens to fit effective embedding context with explicit truncation tests” is associated with this technical property: Embedding input length bounds what content contributes to searchable vectors. The question instead turns on “Parse JSON directly and normalize documented nested keys”: Structured APIs should be read as structures rather than rendered web text.
B:“Store child chunks for fine search with parent-section expansion for answer context” is associated with this technical property: Hierarchical retrieval combines search granularity with coherent generation context. The question instead turns on “Parse JSON directly and normalize documented nested keys”: Structured APIs should be read as structures rather than rendered web text.
D:“Keep table captions and headers with row groups during structured extraction” is associated with this technical property: Table cells depend on row and column context to retain correct semantics. The question instead turns on “Parse JSON directly and normalize documented nested keys”: Structured APIs should be read as structures rather than rendered web text.
Question 390
The team observes this failure in a GenAI application: The vector index refreshes once per day and returns stale inventory summaries. After implementing the fix to Choose supported index synchronization mode and verify freshness SLA under updates, which measurement or test most directly demonstrates success?
- A changed catalog record appears in results within agreed refresh window
- Release report identifies changed component and passes regression cases
- Browser code has no credentials and authenticated authorized requests succeed
- Index queries return distinct expected records and change updates affect only intended ID
Explanation
Correct Answer
A:A changed catalog record appears in results within agreed refresh window. This specifically validates the remediation to Choose supported index synchronization mode and verify freshness SLA under updates for the failure that The vector index refreshes once per day and returns stale inventory summaries. Update frequency is a key design input for choosing index deployment. A response that merely looks fluent or a successful configuration save would not be sufficient evidence.
Incorrect Answers
B:“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 “A changed catalog record appears in results within agreed refresh window”: Update frequency is a key design input for choosing index deployment.
C:“Browser code has no credentials and authenticated authorized requests succeed” is associated with this technical property: Browser-side secrets undermine tenant isolation and can be extracted by users. The question instead turns on “A changed catalog record appears in results within agreed refresh window”: Update frequency is a key design input for choosing index deployment.
D:“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 “A changed catalog record appears in results within agreed refresh window”: Update frequency is a key design input for choosing index deployment.