Certified Generative AI Engineer Associate Practice Test 54
Question 530
An application intended to satisfy this requirement, A model hub lists several capable text models for a commercial support service, instead experiences: Team deploys a model whose license prohibits the desired use. Which targeted engineering correction resolves this failure?
- Compare groundedness and factuality on verified reference examples
- Review model-card licensing and usage restrictions before selection
- Pass authenticated account ID and resolved invoice ID as structured retrieval filters
- Expose the API as a validated tool with constrained arguments and secrets management
Explanation
Correct Answer
B:Review model-card licensing and usage restrictions before selection targets the observed failure: Team deploys a model whose license prohibits the desired use. Technical suitability does not grant legal permission for deployment. Changing a different model component would not resolve this identified mechanism. To confirm the remediation, verify that Selected model has documented permitted use and recorded provenance.
Incorrect Answers
A:“Compare groundedness and factuality on verified reference examples” is associated with this technical property: Answer correctness must be measured against source evidence, not just readability. The question instead turns on “Review model-card licensing and usage restrictions before selection”: Technical suitability does not grant legal permission for deployment.
C:“Pass authenticated account ID and resolved invoice ID as structured retrieval filters” is associated with this technical property: User intent must be coupled to trusted entity context before private lookup. The question instead turns on “Review model-card licensing and usage restrictions before selection”: Technical suitability does not grant legal permission for deployment.
D:“Expose the API as a validated tool with constrained arguments and secrets management” is associated with this technical property: Typed interfaces constrain model actions and separate credentials from prompt text. The question instead turns on “Review model-card licensing and usage restrictions before selection”: Technical suitability does not grant legal permission for deployment.
Question 531
The team observes this failure in a GenAI application: Revoking the engineer's personal token unexpectedly breaks production access. After implementing the fix to Configure supported workload identity and scoped service credentials for the endpoint, which measurement or test most directly demonstrates success?
- Authorized team can resolve the registered version and view audit metadata
- After controlled update, intended new record becomes retrievable within approved delay
- The new version meets release criteria or is rejected with recorded metrics
- Endpoint retrieves approved documents after employee token revocation with auditable service identity
Explanation
Correct Answer
D:Endpoint retrieves approved documents after employee token revocation with auditable service identity. This specifically validates the remediation to Configure supported workload identity and scoped service credentials for the endpoint for the failure that Revoking the engineer's personal token unexpectedly breaks production access. Production service identities should not depend on individual user credentials. A response that merely looks fluent or a successful configuration save would not be sufficient evidence.
Incorrect Answers
A:“Authorized team can resolve the registered version and view audit metadata” is associated with this technical property: Unity Catalog provides governed namespace and access for registered models. The question instead turns on “Endpoint retrieves approved documents after employee token revocation with auditable service identity”: Production service identities should not depend on individual user credentials.
B:“After controlled update, intended new record becomes retrievable within approved delay” is associated with this technical property: Index results reflect a materialized view whose update cadence must match source changes. The question instead turns on “Endpoint retrieves approved documents after employee token revocation with auditable service identity”: Production service identities should not depend on individual user credentials.
C:“The new version meets release criteria or is rejected with recorded metrics” is associated with this technical property: Prompt changes can alter functional correctness and require quality control. The question instead turns on “Endpoint retrieves approved documents after employee token revocation with auditable service identity”: Production service identities should not depend on individual user credentials.
Question 532
A Databricks generative AI team is designing a solution with this requirement: An agent uses a custom document loader available only in the author's notebook. Which engineering approach should it select first?
- Declare needed Python packages and artifacts when logging and packaging the pyfunc model
- Prefer supported managed MCP servers when their existing tools fit the task
- Configure supported workload identity and scoped service credentials for the endpoint
- Log a model signature and representative input example matching real requests
Explanation
Correct Answer
A:Declare needed Python packages and artifacts when logging and packaging the pyfunc model directly addresses the described Databricks GenAI architecture: An agent uses a custom document loader available only in the author's notebook. A model artifact must include compatible runtime dependencies for reproducible serving. The solution should be validated using a measurable test, not only the existence of a saved prompt or configuration. The expected evidence is: Clean deployment starts successfully without relying on notebook-local imports.
Incorrect Answers
B:“Prefer supported managed MCP servers when their existing tools fit the task” is associated with this technical property: Managed service tools reduce custom hosting and leverage workspace authorization. The question instead turns on “Declare needed Python packages and artifacts when logging and packaging the pyfunc model”: A model artifact must include compatible runtime dependencies for reproducible serving.
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 “Declare needed Python packages and artifacts when logging and packaging the pyfunc model”: A model artifact must include compatible runtime dependencies for reproducible serving.
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 “Declare needed Python packages and artifacts when logging and packaging the pyfunc model”: A model artifact must include compatible runtime dependencies for reproducible serving.
Question 533
A Databricks generative AI team is designing a solution with this requirement: An invoice assistant must always return fields vendor and amount as valid JSON. Which engineering approach should it select first?
- Separate draft, validation, human approval and side-effecting submit tool calls
- Use schema-guided extraction with explicit missing-value handling rather than creative completion
- Choose and evaluate a summarization-capable text generation model with a length instruction
- Specify explicit JSON fields and enforce a structured output schema with validation
Explanation
Correct Answer
D:Specify explicit JSON fields and enforce a structured output schema with validation directly addresses the described Databricks GenAI architecture: An invoice assistant must always return fields vendor and amount as valid JSON. Structured constraints help guarantee downstream parseability instead of relying on a vague format request. The solution should be validated using a measurable test, not only the existence of a saved prompt or configuration. The expected evidence is: Contract tests parse JSON and verify required fields and data types on diverse invoices.
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 “Specify explicit JSON fields and enforce a structured output schema with validation”: Structured constraints help guarantee downstream parseability instead of relying on a vague format request.
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 “Specify explicit JSON fields and enforce a structured output schema with validation”: Structured constraints help guarantee downstream parseability instead of relying on a vague format request.
C:“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 “Specify explicit JSON fields and enforce a structured output schema with validation”: Structured constraints help guarantee downstream parseability instead of relying on a vague format request.
Question 534
A Databricks generative AI team is designing a solution with this requirement: Legal review requires clause-level risk summaries linked to source document identifiers. Which engineering approach should it select first?
- Use a supported multi-agent or custom tool-enabled composition after checking managed capabilities
- Build a retrieval step that selects authorized passages before prompting the answer model
- Define typed document inputs, risk labels, source offsets and output schema before design
- Supply the allowed label vocabulary and validate each response against its enum
Explanation
Correct Answer
C:Define typed document inputs, risk labels, source offsets and output schema before design directly addresses the described Databricks GenAI architecture: Legal review requires clause-level risk summaries linked to source document identifiers. Explicit data contracts make evaluation and downstream workflow integration possible. The solution should be validated using a measurable test, not only the existence of a saved prompt or configuration. The expected evidence is: Prototype output includes traceable clauses, stable identifiers and required risk fields.
Incorrect Answers
A:“Use a supported multi-agent or custom tool-enabled composition after checking managed capabilities” is associated with this technical property: Tool requirements should determine orchestration rather than choosing components by popularity. The question instead turns on “Define typed document inputs, risk labels, source offsets and output schema before design”: Explicit data contracts make evaluation and downstream workflow integration possible.
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 “Define typed document inputs, risk labels, source offsets and output schema before design”: Explicit data contracts make evaluation and downstream workflow integration possible.
D:“Supply the allowed label vocabulary and validate each response against its enum” is associated with this technical property: Closed-set classification needs a constrained output vocabulary not merely a generic topic summary. The question instead turns on “Define typed document inputs, risk labels, source offsets and output schema before design”: Explicit data contracts make evaluation and downstream workflow integration possible.
Question 535
The team observes this failure in a GenAI application: Engineers store model binaries in local directories with no governance metadata. After implementing the fix to Register the MLflow model in Unity Catalog using an approved three-part name, which measurement or test most directly demonstrates success?
- The overnight job completes within window and no real-time endpoint is required
- Cross-department adversarial requests cannot obtain unauthorized source passages
- Authorized team can resolve the registered version and view audit metadata
- Authorized API calls return summaries and quota/latency behavior is monitored
Explanation
Correct Answer
C:Authorized team can resolve the registered version and view audit metadata. This specifically validates the remediation to Register the MLflow model in Unity Catalog using an approved three-part name for the failure that Engineers store model binaries in local directories with no governance metadata. Unity Catalog provides governed namespace and access for registered models. A response that merely looks fluent or a successful configuration save would not be sufficient evidence.
Incorrect Answers
A:“The overnight job completes within window and no real-time endpoint is required” is associated with this technical property: Workload latency requirements should determine batch versus online architecture. The question instead turns on “Authorized team can resolve the registered version and view audit metadata”: Unity Catalog provides governed namespace and access for registered models.
B:“Cross-department adversarial requests cannot obtain unauthorized source passages” is associated with this technical property: Model-serving authentication alone does not automatically implement row-level retrieval access. The question instead turns on “Authorized team can resolve the registered version and view audit metadata”: Unity Catalog provides governed namespace and access for registered models.
D:“Authorized API calls return summaries and quota/latency behavior is monitored” is associated with this technical property: Hosted model APIs separate application logic from model infrastructure operations. The question instead turns on “Authorized team can resolve the registered version and view audit metadata”: Unity Catalog provides governed namespace and access for registered models.
Question 536
An application intended to satisfy this requirement, AI Gateway usage tables are needed for monitoring but requests may contain personal data, instead experiences: Raw prompt logging includes unneeded national identifiers in long-retention tables. 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
- Normalize encoding, repair OCR where justified and retain original source reference
- Choose supported masking/redaction or logging minimization before persisted telemetry
Explanation
Correct Answer
D:Choose supported masking/redaction or logging minimization before persisted telemetry targets the observed failure: Raw prompt logging includes unneeded national identifiers in long-retention tables. Operational metrics should avoid storing unnecessary sensitive payloads. Changing a different model component would not resolve this identified mechanism. To confirm the remediation, verify that Usage totals remain available while sampled logs exclude restricted values.
Incorrect Answers
A:“Parse, label and isolate untrusted document instructions while preserving legitimate factual content” is associated with this technical property: Source cleaning reduces accidental execution of embedded instructions. The question instead turns on “Choose supported masking/redaction or logging minimization before persisted telemetry”: Operational metrics should avoid storing unnecessary sensitive payloads.
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 “Choose supported masking/redaction or logging minimization before persisted telemetry”: Operational metrics should avoid storing unnecessary sensitive payloads.
C:“Normalize encoding, repair OCR where justified and retain original source reference” is associated with this technical property: Data quality repair must preserve evidence and not silently change meaning. The question instead turns on “Choose supported masking/redaction or logging minimization before persisted telemetry”: Operational metrics should avoid storing unnecessary sensitive payloads.
Question 537
For the requirement that A shipping assistant needs expected delivery dates for a specific transaction, the team proposes this change: Retrieve transaction-specific facts through governed structured data in addition to policy text. Which technical principle explains why it is appropriate?
- Table cells depend on row and column context to retain correct semantics
- Source completeness matters more than a persuasive prompt for operational answers
- Extraction tools must match source encoding and document format
- High-frequency irrelevant text dilutes retrieval quality and raises noise
Explanation
Correct Answer
B:Source completeness matters more than a persuasive prompt for operational answers. The proposed engineering step is to Retrieve transaction-specific facts through governed structured data in addition to policy text. It directly supports the requirement that A shipping assistant needs expected delivery dates for a specific transaction. The operational test is that Order answers match current shipment data and reference the right transaction. This principle is more specific than a general instruction to retry or increase model size.
Incorrect Answers
A:“Table cells depend on row and column context to retain correct semantics” is associated with this technical property: It directly supports the requirement that Pricing tables span pages and values become ambiguous without column labels. The question instead turns on “Source completeness matters more than a persuasive prompt for operational answers”: It directly supports the requirement that A shipping assistant needs expected delivery dates for a specific transaction.
C:“Extraction tools must match source encoding and document format” is associated with this technical property: It directly supports the requirement that A product FAQ is available as structured HTML with known paragraph tags. The question instead turns on “Source completeness matters more than a persuasive prompt for operational answers”: It directly supports the requirement that A shipping assistant needs expected delivery dates for a specific transaction.
D:“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 “Source completeness matters more than a persuasive prompt for operational answers”: It directly supports the requirement that A shipping assistant needs expected delivery dates for a specific transaction.
Question 538
A Databricks generative AI team is designing a solution with this requirement: A public assistant receives abusive requests and attempts to produce harmful content. Which engineering approach should it select first?
- Run offline evaluation on labeled cases before deployment and use live monitoring afterward
- Implement task-aware moderation and safe-refusal handling with reviewable thresholds
- Track model, code, prompt and evaluation datasets with versioned experiment artifacts
- Instrument MLflow traces across retriever, tools and model spans
Explanation
Correct Answer
B:Implement task-aware moderation and safe-refusal handling with reviewable thresholds directly addresses the described Databricks GenAI architecture: A public assistant receives abusive requests and attempts to produce harmful content. Guardrails should consider both user intent and produced content. The solution should be validated using a measurable test, not only the existence of a saved prompt or configuration. The expected evidence is: Red-team prompts trigger refusal and benign requests remain available.
Incorrect Answers
A:“Run offline evaluation on labeled cases before deployment and use live monitoring afterward” is associated with this technical property: Pre-release evaluation and post-release monitoring address different lifecycle questions. The question instead turns on “Implement task-aware moderation and safe-refusal handling with reviewable thresholds”: Guardrails should consider both user intent and produced content.
C:“Track model, code, prompt and evaluation datasets with versioned experiment artifacts” is associated with this technical property: Reproducibility requires linking outputs to immutable evaluated versions. The question instead turns on “Implement task-aware moderation and safe-refusal handling with reviewable thresholds”: Guardrails should consider both user intent and produced content.
D:“Instrument MLflow traces across retriever, tools and model spans” is associated with this technical property: End-to-end traces reveal which step failed and support reproducible evaluation. The question instead turns on “Implement task-aware moderation and safe-refusal handling with reviewable thresholds”: Guardrails should consider both user intent and produced content.
Question 539
For the requirement that An attacker sends a user message containing fake system tags to disable audit logging, the team proposes this change: Treat user text as untrusted, enforce tool authorization outside model prompts and test injection. Which technical principle explains why it is appropriate?
- Prompt-level safeguards must be backed by code-level privilege checks
- Helpful tone does not substitute for authorized and safe behavior
- Explicit state management is safer than assuming an isolated LLM call remembers prior inputs
- Chunk size and parent context should be tuned against grounded-answer error patterns
Explanation
Correct Answer
A:Prompt-level safeguards must be backed by code-level privilege checks. The proposed engineering step is to Treat user text as untrusted, enforce tool authorization outside model prompts and test injection. It directly supports the requirement that An attacker sends a user message containing fake system tags to disable audit logging. The operational test is that Attack strings cannot call restricted tools or bypass approval controls. This principle is more specific than a general instruction to retry or increase model size.
Incorrect Answers
B:“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 “Prompt-level safeguards must be backed by code-level privilege checks”: It directly supports the requirement that An attacker sends a user message containing fake system tags to disable audit logging.
C:“Explicit state management is safer than assuming an isolated LLM call remembers prior inputs” is associated with this technical property: It directly supports the requirement that An internal assistant needs to retain a user's current incident ID across multiple turns. The question instead turns on “Prompt-level safeguards must be backed by code-level privilege checks”: It directly supports the requirement that An attacker sends a user message containing fake system tags to disable audit logging.
D:“Chunk size and parent context should be tuned against grounded-answer error patterns” is associated with this technical property: It directly supports the requirement that An FAQ retriever delivers one sentence without the exception in the next paragraph. The question instead turns on “Prompt-level safeguards must be backed by code-level privilege checks”: It directly supports the requirement that An attacker sends a user message containing fake system tags to disable audit logging.
Question 540
The team observes this failure in a GenAI application: High semantic similarity alone ranks a misleading policy clause first. After implementing the fix to Rerank the candidate set against the full query with a suitable reranker, which measurement or test most directly demonstrates success?
- Test queries retrieve full clause meaning with original heading metadata
- Sample entities retain IDs, numeric types and provenance fields
- Second run without changes adds no duplicates and changed documents re-embed
- Labeled relevance ordering improves without discarding the true policy passage
Explanation
Correct Answer
D:Labeled relevance ordering improves without discarding the true policy passage. This specifically validates the remediation to Rerank the candidate set against the full query with a suitable reranker for the failure that High semantic similarity alone ranks a misleading policy clause first. Second-stage reranking can improve relevance where first-stage vectors are approximate. A response that merely looks fluent or a successful configuration save would not be sufficient evidence.
Incorrect Answers
A:“Test queries retrieve full clause meaning with original heading metadata” is associated with this technical property: Structure-aware chunking preserves context and filters better than indiscriminate splitting. The question instead turns on “Labeled relevance ordering improves without discarding the true policy passage”: Second-stage reranking can improve relevance where first-stage vectors are approximate.
B:“Sample entities retain IDs, numeric types and provenance fields” is associated with this technical property: Structured APIs should be read as structures rather than rendered web text. The question instead turns on “Labeled relevance ordering improves without discarding the true policy passage”: Second-stage reranking can improve relevance where first-stage vectors are approximate.
C:“Second run without changes adds no duplicates and changed documents re-embed” is associated with this technical property: Idempotent updates prevent duplicate indexed chunks and limit processing cost. The question instead turns on “Labeled relevance ordering improves without discarding the true policy passage”: Second-stage reranking can improve relevance where first-stage vectors are approximate.