mcAfee Secure Website
23

Databricks Certified Generative AI Engineer Associate Bundle

Exam Code: Certified Generative AI Engineer Associate

Exam Name Certified Generative AI Engineer Associate

Certification Provider: Databricks

Corresponding Certification: Databricks Certified Generative AI Engineer Associate

Certified Generative AI Engineer Associate Training Materials $19.99

Reliable & Actual Study Materials for Certified Generative AI Engineer Associate Exam Success

The Latest Certified Generative AI Engineer Associate Exam Questions as Experienced in the Actual Test!

  • 24
    Questions & Answers

    Certified Generative AI Engineer Associate Questions & Answers

    123 Questions & Answers

    Includes questions types found on actual exam such as drag and drop, simulation, type in, and fill in the blank.

  • exam =30
    Study Guide

    Certified Generative AI Engineer Associate Study Guide

    230 PDF Pages

    Study Guide developed by industry experts who have written exams in the past. They are technology-specific IT certification researchers with at least a decade of experience at Fortune 500 companies.

exam =32

Certified Generative AI Engineer Associate Practice Tests

Guarantee

Satisfaction Guaranteed

Pass4sure has a remarkable Databricks Candidate Success record. We're confident of our products and provide no hassle product exchange. That's how confident we are!

99.3% Pass Rate
Total Cost: $154.98
Bundle Price: $134.99

Purchase Individually

  • exam =34
    Questions & Answers

    Questions & Answers

    123 Questions

    $124.99
    exam =35
  • exam =36
    Study Guide

    Study Guide

    230 PDF Pages

    $29.99

Databricks Certified Generative AI Engineer Associate Practice Test 32

Question 310

After the immediate fix, what safeguard should remain in the release policy? A production team logs raw access tokens and complete customer chats when adding observability.

  1. Never assume diagnostics justify indefinite storage of unrestricted personal data or secrets.
  2. Revisit the choice as workload and evaluation data change instead of permanently trusting benchmark ranking.
  3. Never label judge outputs as factual correctness when the required reference evidence is absent.
  4. Do not hide expert disagreement by excluding difficult cases or averaging away severe failures.

Explanation

Correct Answer

A:

Correct. Inference logs and tracing permit diagnosis of real issues but must be sampled, retained and redacted safely. In the given situation — A production team logs raw access tokens and complete customer chats when adding observability. — the targeted safeguard action is: Never assume diagnostics justify indefinite storage of unrestricted personal data or secrets. It preserves an enduring engineering or governance boundary after the current issue is fixed.

Incorrect Answers

B:

Not the strongest safeguard choice for this specific question. Revisit the choice as workload and evaluation data change instead of permanently trusting benchmark ranking. This action primarily relates to Model selection from quantitative task metrics: Select candidate LLMs by measured task success, latency, safety and token cost, not parameter count or leaderboard rank. However, the described case — A production team logs raw access tokens and complete customer chats when adding observability. — is testing Inference logging and production trace privacy. It does not directly establish the safeguard outcome or constraint that the question requires; it may still be useful in a different stage or incident.

C:

Not the strongest safeguard choice for this specific question. Never label judge outputs as factual correctness when the required reference evidence is absent. This action primarily relates to Ground-truth requirement for correctness versus reference-free judges: A correctness comparison often needs an expected answer; other judges such as format or safety can operate without a reference. However, the described case — A production team logs raw access tokens and complete customer chats when adding observability. — is testing Inference logging and production trace privacy. It does not directly establish the safeguard outcome or constraint that the question requires; it may still be useful in a different stage or incident.

D:

Not the strongest safeguard choice for this specific question. Do not hide expert disagreement by excluding difficult cases or averaging away severe failures. This action primarily relates to Human SME feedback rubric and reviewer calibration: Domain experts should use a shared rubric, calibrate disagreements and maintain adjudicated examples to improve model evaluation. However, the described case — A production team logs raw access tokens and complete customer chats when adding observability. — is testing Inference logging and production trace privacy. It does not directly establish the safeguard outcome or constraint that the question requires; it may still be useful in a different stage or incident.

Question 311

After revising the application, which test BEST demonstrates the intended behavior? A maintenance assistant queries a vector index by exact serial number without preserving metadata filters.

  1. Validate returned IDs, relevant scores and grounded answer citations on known reference queries.
  2. Start a clean container smoke test and exercise both old and new client payloads where compatibility is promised.
  3. Test model invocation under realistic throughput and verify output schema, quota and governance constraints.
  4. Load the logged pyfunc model in an isolated environment and test the declared signature on sample requests.

Explanation

Correct Answer

A:

Correct. Semantic retrieval uses an embedding model to query a compatible index, returns ranked passages and metadata for grounded generation. In the given situation — A maintenance assistant queries a vector index by exact serial number without preserving metadata filters. — the targeted verify action is: Validate returned IDs, relevant scores and grounded answer citations on known reference queries. It tests an observable outcome using realistic inputs rather than relying on a working demo alone.

Incorrect Answers

B:

Not the strongest verify choice for this specific question. Start a clean container smoke test and exercise both old and new client payloads where compatibility is promised. This action primarily relates to Deployed model dependency drift and environment compatibility: Models logged in experiments can fail in serving if Python dependencies or inference signatures differ between build and target. However, the described case — A maintenance assistant queries a vector index by exact serial number without preserving metadata filters. — is testing Vector Search retrieval workflow and query integration. It does not directly establish the verify outcome or constraint that the question requires; it may still be useful in a different stage or incident.

C:

Not the strongest verify choice for this specific question. Test model invocation under realistic throughput and verify output schema, quota and governance constraints. This action primarily relates to Foundation Model API versus custom serving choices: Databricks Foundation Model APIs offer managed access to supported models; custom serving is suitable for specialized models or control needs. However, the described case — A maintenance assistant queries a vector index by exact serial number without preserving metadata filters. — is testing Vector Search retrieval workflow and query integration. It does not directly establish the verify outcome or constraint that the question requires; it may still be useful in a different stage or incident.

D:

Not the strongest verify choice for this specific question. Load the logged pyfunc model in an isolated environment and test the declared signature on sample requests. This action primarily relates to MLflow pyfunc packaging for pre- and post-processing: A custom MLflow pyfunc model wraps request parsing, retriever/model invocation and output formatting inside a reproducible predict interface. However, the described case — A maintenance assistant queries a vector index by exact serial number without preserving metadata filters. — is testing Vector Search retrieval workflow and query integration. It does not directly establish the verify outcome or constraint that the question requires; it may still be useful in a different stage or incident.

Question 312

Before changing the GenAI pipeline, which investigation is MOST useful? An agent receives a customer message requesting deletion of every table while only ticket lookup is authorized.

  1. Inspect adversarial prompt examples, tool permissions and whether refusals are enforced outside the model.
  2. Inspect user conversation state, current intent, entity resolution and selected tool trace.
  3. Inspect nested traces, span order, tool duration and captured payload security.
  4. Inspect agent routing to Genie, space permissions, metric definitions and tool-returned values.

Explanation

Correct Answer

A:

Correct. User-provided instructions may attempt to bypass agent policies or cause data leakage; classification and tool boundaries need separate tests. In the given situation — An agent receives a customer message requesting deletion of every table while only ticket lookup is authorized. — the targeted diagnose action is: Inspect adversarial prompt examples, tool permissions and whether refusals are enforced outside the model. It inspects the stage or constraint most likely to explain the observed failure before changing the system.

Incorrect Answers

B:

Not the strongest diagnose choice for this specific question. Inspect user conversation state, current intent, entity resolution and selected tool trace. This action primarily relates to Conversation context and intent routing: Multi-turn assistants need explicit conversational state while routing each new request to the correct tool or topic. However, the described case — An agent receives a customer message requesting deletion of every table while only ticket lookup is authorized. — is testing Unsafe model output and jailbreak response diagnosis. It does not directly establish the diagnose outcome or constraint that the question requires; it may still be useful in a different stage or incident.

C:

Not the strongest diagnose choice for this specific question. Inspect nested traces, span order, tool duration and captured payload security. This action primarily relates to MLflow tracing in an Agent Framework workflow: MLflow tracing records agent steps, tool calls and latency; integration must retain child spans and inputs without leaking secrets. However, the described case — An agent receives a customer message requesting deletion of every table while only ticket lookup is authorized. — is testing Unsafe model output and jailbreak response diagnosis. It does not directly establish the diagnose outcome or constraint that the question requires; it may still be useful in a different stage or incident.

D:

Not the strongest diagnose choice for this specific question. Inspect agent routing to Genie, space permissions, metric definitions and tool-returned values. This action primarily relates to Multi-agent Genie Space tool routing and governed answers: Genie Spaces can provide governed natural-language access to structured business metrics; an agent should choose authorized Genie tools over guessing SQL facts. However, the described case — An agent receives a customer message requesting deletion of every table while only ticket lookup is authorized. — is testing Unsafe model output and jailbreak response diagnosis. It does not directly establish the diagnose outcome or constraint that the question requires; it may still be useful in a different stage or incident.

Question 313

A Databricks engineer is correcting the following workflow: A medical appointment chatbot replaces all dates with redaction tokens, making scheduling answers impossible. Which change best addresses the documented requirement?

  1. Use server-side ownership checks and transaction approval on the refund tool in addition to input screening.
  2. Review license and reuse conditions and use authorized sources or link without copying protected text.
  3. Filter toxic or instruction-like content and use reviewed trusted source subsets for customer-facing retrieval.
  4. Differentiate direct identifiers from permissible temporal fields and apply purpose-specific protection.

Explanation

Correct Answer

D:

Correct. Masking must preserve information needed for the task, such as non-sensitive dates or amounts, and cannot replace access control. In the given situation — A medical appointment chatbot replaces all dates with redaction tokens, making scheduling answers impossible. — the targeted implement action is: Differentiate direct identifiers from permissible temporal fields and apply purpose-specific protection. This directly meets the stated workflow constraint instead of addressing an adjacent capability.

Incorrect Answers

A:

Not the strongest implement choice for this specific question. Use server-side ownership checks and transaction approval on the refund tool in addition to input screening. This action primarily relates to Prompt safety filtering and tool allowlists: Content filters and action allowlists are complementary; a moderation score is not a substitute for authorization of external effects. However, the described case — A medical appointment chatbot replaces all dates with redaction tokens, making scheduling answers impossible. — is testing Contextual masking versus destructive data removal. It does not directly establish the implement outcome or constraint that the question requires; it may still be useful in a different stage or incident.

B:

Not the strongest implement choice for this specific question. Review license and reuse conditions and use authorized sources or link without copying protected text. This action primarily relates to Training and retrieval corpus license rights: Public accessibility does not automatically authorize copying, embedding or using content in commercial RAG services. However, the described case — A medical appointment chatbot replaces all dates with redaction tokens, making scheduling answers impossible. — is testing Contextual masking versus destructive data removal. It does not directly establish the implement outcome or constraint that the question requires; it may still be useful in a different stage or incident.

C:

Not the strongest implement choice for this specific question. Filter toxic or instruction-like content and use reviewed trusted source subsets for customer-facing retrieval. This action primarily relates to Toxic, inaccurate and adversarial corpus cleaning: Unreliable source text can teach unsafe behavior through retrieval; quarantine and source review matter before embeddings. However, the described case — A medical appointment chatbot replaces all dates with redaction tokens, making scheduling answers impossible. — is testing Contextual masking versus destructive data removal. It does not directly establish the implement outcome or constraint that the question requires; it may still be useful in a different stage or incident.

Question 314

Which solution directly addresses this application requirement? A manuals corpus produces 2.5 million vectors and exceeds the planned index capacity after 120-token chunks.

  1. Build a relevance-labeled query set and measure recall@k and rank quality on actual returned chunks.
  2. Increase suitable chunk length and reduce unnecessary overlap while checking passage-level answer recall.
  3. Use document-aware sections plus parent-child metadata to connect symptom to resolution.
  4. Parse and chunk documents, write keyed chunk rows with provenance to a governed Delta table, then index them.

Explanation

Correct Answer

B:

Correct. Chunk size determines the number of vectors and coherence; overlap reduces boundary loss but increases index size and cost. In the given situation — A manuals corpus produces 2.5 million vectors and exceeds the planned index capacity after 120-token chunks. — the targeted implement action is: Increase suitable chunk length and reduce unnecessary overlap while checking passage-level answer recall. This directly meets the stated workflow constraint instead of addressing an adjacent capability.

Incorrect Answers

A:

Not the strongest implement choice for this specific question. Build a relevance-labeled query set and measure recall@k and rank quality on actual returned chunks. This action primarily relates to Retrieval recall precision and ranking diagnostics: Measure hit recall, precision, MRR or nDCG on labeled query-to-relevant-chunk pairs before tuning retrieval. However, the described case — A manuals corpus produces 2.5 million vectors and exceeds the planned index capacity after 120-token chunks. — is testing Chunk size and overlap tradeoffs. It does not directly establish the implement outcome or constraint that the question requires; it may still be useful in a different stage or incident.

C:

Not the strongest implement choice for this specific question. Use document-aware sections plus parent-child metadata to connect symptom to resolution. This action primarily relates to Semantic boundaries versus fixed-window chunks: Headings, paragraphs and tables can require structure-aware splitting rather than arbitrary token windows. However, the described case — A manuals corpus produces 2.5 million vectors and exceeds the planned index capacity after 120-token chunks. — is testing Chunk size and overlap tradeoffs. It does not directly establish the implement outcome or constraint that the question requires; it may still be useful in a different stage or incident.

D:

Not the strongest implement choice for this specific question. Parse and chunk documents, write keyed chunk rows with provenance to a governed Delta table, then index them. This action primarily relates to Delta and Unity Catalog pipeline for chunk tables: A governed retrieval corpus stores chunk text, IDs, source lineage and metadata in managed Delta/Unity Catalog tables before indexing. However, the described case — A manuals corpus produces 2.5 million vectors and exceeds the planned index capacity after 120-token chunks. — is testing Chunk size and overlap tradeoffs. It does not directly establish the implement outcome or constraint that the question requires; it may still be useful in a different stage or incident.

Question 315

The Generative AI team observes: An order assistant answers shipping questions without using the provided account_id, mixing orders across customers. Which implementation decision is MOST appropriate?

  1. Compare both models on the same held-out support questions, citations, cost and safety cases.
  2. Remove unused side-effect tools and use a plain summarization chain with bounded output.
  3. Design a precise instruction on evidence and uncertainty, then compare against baseline using the same evaluation set.
  4. Validate account and order IDs, enforce identity scope, and retrieve the matching order status before generation.

Explanation

Correct Answer

D:

Correct. User intent and structured fields such as account_id should drive authorized SQL lookups or retrieval filters, not be ignored in free text. In the given situation — An order assistant answers shipping questions without using the provided account_id, mixing orders across customers. — the targeted implement action is: Validate account and order IDs, enforce identity scope, and retrieve the matching order status before generation. This directly meets the stated workflow constraint instead of addressing an adjacent capability.

Incorrect Answers

A:

Not the strongest implement choice for this specific question. Compare both models on the same held-out support questions, citations, cost and safety cases. This action primarily relates to Model evaluation with paired benchmarks: Accuracy, faithfulness, relevance and refusal behavior require task-specific scoring, and a model switch needs common test conditions. However, the described case — An order assistant answers shipping questions without using the provided account_id, mixing orders across customers. — is testing Query-field driven prompt and retrieval filters. It does not directly establish the implement outcome or constraint that the question requires; it may still be useful in a different stage or incident.

B:

Not the strongest implement choice for this specific question. Remove unused side-effect tools and use a plain summarization chain with bounded output. This action primarily relates to Agent tool wrappers versus direct LLM responses: A tool-using agent needs explicit callable interfaces and typed tool results, whereas plain generation requires no action execution. However, the described case — An order assistant answers shipping questions without using the provided account_id, mixing orders across customers. — is testing Query-field driven prompt and retrieval filters. It does not directly establish the implement outcome or constraint that the question requires; it may still be useful in a different stage or incident.

C:

Not the strongest implement choice for this specific question. Design a precise instruction on evidence and uncertainty, then compare against baseline using the same evaluation set. This action primarily relates to Prompt changes evaluated against baseline: A prompt improvement should be measured against a fixed baseline set, not accepted because a few outputs sound better. However, the described case — An order assistant answers shipping questions without using the provided account_id, mixing orders across customers. — is testing Query-field driven prompt and retrieval filters. It does not directly establish the implement outcome or constraint that the question requires; it may still be useful in a different stage or incident.

Question 316

A deployment approval is requested for this case: A proposed LLM wins on general benchmark score but fails grounded FAQ questions more frequently than incumbent. Which acceptance test should reviewers require?

  1. Run paired representative requests and record quality versus p95 latency and cost tradeoffs.
  2. Verify matched query and document vectors use the approved version and retrieval improves on held-out examples.
  3. Check embedding dimensions or extracted-field validation against task-specific acceptance tests.
  4. Run reproducible pairwise experiments with confidence and segment-level result analysis.

Explanation

Correct Answer

D:

Correct. Accuracy, faithfulness, relevance and refusal behavior require task-specific scoring, and a model switch needs common test conditions. In the given situation — A proposed LLM wins on general benchmark score but fails grounded FAQ questions more frequently than incumbent. — the targeted verify action is: Run reproducible pairwise experiments with confidence and segment-level result analysis. It tests an observable outcome using realistic inputs rather than relying on a working demo alone.

Incorrect Answers

A:

Not the strongest verify choice for this specific question. Run paired representative requests and record quality versus p95 latency and cost tradeoffs. This action primarily relates to Model selection by quality latency and budget: Select the smallest suitable model that meets a task's accuracy and latency constraints under realistic workload, not marketing rank. However, the described case — A proposed LLM wins on general benchmark score but fails grounded FAQ questions more frequently than incumbent. — is testing Model evaluation with paired benchmarks. It does not directly establish the verify outcome or constraint that the question requires; it may still be useful in a different stage or incident.

B:

Not the strongest verify choice for this specific question. Verify matched query and document vectors use the approved version and retrieval improves on held-out examples. This action primarily relates to Embedding model swap and reindex compatibility: Changed embedding dimensions or model semantics typically require re-embedding and index consistency before comparing search quality. However, the described case — A proposed LLM wins on general benchmark score but fails grounded FAQ questions more frequently than incumbent. — is testing Model evaluation with paired benchmarks. It does not directly establish the verify outcome or constraint that the question requires; it may still be useful in a different stage or incident.

C:

Not the strongest verify choice for this specific question. Check embedding dimensions or extracted-field validation against task-specific acceptance tests. This action primarily relates to Specialized model versus general LLM: Embedding, reranking, extraction and generative models solve different stages and should be evaluated for their actual role. However, the described case — A proposed LLM wins on general benchmark score but fails grounded FAQ questions more frequently than incumbent. — is testing Model evaluation with paired benchmarks. It does not directly establish the verify outcome or constraint that the question requires; it may still be useful in a different stage or incident.

Question 317

After the immediate fix, what safeguard should remain in the release policy? A crawler fetches HTML product manuals but outputs menu text instead of article content.

  1. Never equate a successful embedding API call with a governed and reproducible source-data pipeline.
  2. Separate missing knowledge from bad generation during incident triage and refresh upstream data responsibly.
  3. Version preprocessing rules and sample exceptions so cleansing never strips legal requirements.
  4. Route documents by actual format and flag low-confidence extraction rather than silently indexing blank text.

Explanation

Correct Answer

D:

Correct. Extract text with a parser suited to source format; image-only scans require OCR rather than HTML or plain-text parsing. In the given situation — A crawler fetches HTML product manuals but outputs menu text instead of article content. — the targeted safeguard action is: Route documents by actual format and flag low-confidence extraction rather than silently indexing blank text. It preserves an enduring engineering or governance boundary after the current issue is fixed.

Incorrect Answers

A:

Not the strongest safeguard choice for this specific question. Never equate a successful embedding API call with a governed and reproducible source-data pipeline. This action primarily relates to Delta and Unity Catalog pipeline for chunk tables: A governed retrieval corpus stores chunk text, IDs, source lineage and metadata in managed Delta/Unity Catalog tables before indexing. However, the described case — A crawler fetches HTML product manuals but outputs menu text instead of article content. — is testing Format-specific document extraction and OCR needs. It does not directly establish the safeguard outcome or constraint that the question requires; it may still be useful in a different stage or incident.

B:

Not the strongest safeguard choice for this specific question. Separate missing knowledge from bad generation during incident triage and refresh upstream data responsibly. This action primarily relates to Authoritative source coverage for factual answers: A RAG model cannot answer accurately if the required authoritative record is missing or stale in its index. However, the described case — A crawler fetches HTML product manuals but outputs menu text instead of article content. — is testing Format-specific document extraction and OCR needs. It does not directly establish the safeguard outcome or constraint that the question requires; it may still be useful in a different stage or incident.

C:

Not the strongest safeguard choice for this specific question. Version preprocessing rules and sample exceptions so cleansing never strips legal requirements. This action primarily relates to Boilerplate and navigation filtering in source corpora: Duplicated headers, disclaimers and navigation menus contaminate embeddings and cause irrelevant hits. However, the described case — A crawler fetches HTML product manuals but outputs menu text instead of article content. — is testing Format-specific document extraction and OCR needs. It does not directly establish the safeguard outcome or constraint that the question requires; it may still be useful in a different stage or incident.

Question 318 (Select TWO)

Choose TWO measures: one specific correction and one lasting safeguard. A repairs workflow wants parts suggestions but does not state which serial number, failure code or stock fields matter.

  1. Define the equipment identifiers, failure observations and inventory query as required inputs, with approved part IDs as outputs.
  2. Split read-only diagnostic tools from authorized destructive operations with separate permissions.
  3. Do not treat model fluency or demo satisfaction as a substitute for measurable business acceptance criteria.
  4. Revisit cost/latency budgets whenever context window or retrieval size changes significantly.

Explanation

Correct Answers

A:

Correct (immediate corrective action). Define the equipment identifiers, failure observations and inventory query as required inputs, with approved part IDs as outputs. In this scenario, A repairs workflow wants parts suggestions but does not state which serial number, failure code or stock fields matter. The governing mechanism is: Business acceptance criteria must map to concrete source inputs, generated fields, correctness measures and permission constraints. One selected option addresses the immediate workflow, while the other guards the same failure mode after deployment. Both satisfy the TWO-part requirement.

C:

Correct (continuing risk control). Do not treat model fluency or demo satisfaction as a substitute for measurable business acceptance criteria. In this scenario, A repairs workflow wants parts suggestions but does not state which serial number, failure code or stock fields matter. The governing mechanism is: Business acceptance criteria must map to concrete source inputs, generated fields, correctness measures and permission constraints. One selected option addresses the immediate workflow, while the other guards the same failure mode after deployment. Both satisfy the TWO-part requirement.

Incorrect Answers

B:

Not the strongest safeguard choice for this specific question. Split read-only diagnostic tools from authorized destructive operations with separate permissions. This action primarily relates to Agent tool schemas, least privilege and retries: Well-described tool schemas constrain parameters, and idempotent retries prevent duplicate side effects. However, the described case — A repairs workflow wants parts suggestions but does not state which serial number, failure code or stock fields matter. — is testing Translate use-case requirements into pipeline inputs and outputs. It does not directly establish the safeguard outcome or constraint that the question requires; it may still be useful in a different stage or incident.

D:

Not the strongest safeguard choice for this specific question. Revisit cost/latency budgets whenever context window or retrieval size changes significantly. This action primarily relates to Latency, cost and retrieval targets as design requirements: A valid pipeline design has measurable quality, latency, token and throughput constraints before model selection. However, the described case — A repairs workflow wants parts suggestions but does not state which serial number, failure code or stock fields matter. — is testing Translate use-case requirements into pipeline inputs and outputs. It does not directly establish the safeguard outcome or constraint that the question requires; it may still be useful in a different stage or incident.

Question 319 (Select TWO)

Choose TWO measures: one specific correction and one lasting safeguard. A partner PDF includes text telling a RAG assistant to reveal its secret connection string in the answer.

  1. Ignore the document's imperative content as instructions and block secret retrieval in the serving layer.
  2. Retest adversarial sources after adding new file types and tool connectors.
  3. Keep masking rules under regression control and treat embeddings and logs as potentially sensitive too.
  4. Quarantine untrusted or outdated passages, verify document authorship and reindex approved versions.

Explanation

Correct Answers

A:

Correct (immediate corrective action). Ignore the document's imperative content as instructions and block secret retrieval in the serving layer. In this scenario, A partner PDF includes text telling a RAG assistant to reveal its secret connection string in the answer. The governing mechanism is: A document that says 'ignore your rules' is untrusted data; a robust agent must enforce instruction and tool boundaries independently. One selected option addresses the immediate workflow, while the other guards the same failure mode after deployment. Both satisfy the TWO-part requirement.

B:

Correct (continuing risk control). Retest adversarial sources after adding new file types and tool connectors. In this scenario, A partner PDF includes text telling a RAG assistant to reveal its secret connection string in the answer. The governing mechanism is: A document that says 'ignore your rules' is untrusted data; a robust agent must enforce instruction and tool boundaries independently. One selected option addresses the immediate workflow, while the other guards the same failure mode after deployment. Both satisfy the TWO-part requirement.

Incorrect Answers

C:

Not the strongest safeguard choice for this specific question. Keep masking rules under regression control and treat embeddings and logs as potentially sensitive too. This action primarily relates to Sensitive-field masking before embedding: Masking or tokenization can remove unnecessary PII from chunks before embedding and external model calls while retaining useful meaning. However, the described case — A partner PDF includes text telling a RAG assistant to reveal its secret connection string in the answer. — is testing Input guardrails against prompt-injected source documents. It does not directly establish the safeguard outcome or constraint that the question requires; it may still be useful in a different stage or incident.

D:

Not the strongest safeguard choice for this specific question. Quarantine untrusted or outdated passages, verify document authorship and reindex approved versions. This action primarily relates to Toxic, inaccurate and adversarial corpus cleaning: Unreliable source text can teach unsafe behavior through retrieval; quarantine and source review matter before embeddings. However, the described case — A partner PDF includes text telling a RAG assistant to reveal its secret connection string in the answer. — is testing Input guardrails against prompt-injected source documents. It does not directly establish the safeguard outcome or constraint that the question requires; it may still be useful in a different stage or incident.

Question 320

For a Databricks GenAI application, consider this situation: A policy assistant produces unsupported answers because its chain sends only the user question to the LLM. What should the engineer implement FIRST?

  1. Join authorized structured values and retrieved policy context through a controlled composition stage.
  2. Define a schema-constrained prompt with field types, required keys and strict structured-output validation at the consumer.
  3. Assemble query-to-retriever-to-context-grounded-prompt-to-LLM stages and attach citations to retrieved passages.
  4. Split read-only diagnostic tools from authorized destructive operations with separate permissions.

Explanation

Correct Answer

C:

Correct. A basic RAG chain separates user input, query transformation, retrieval, prompt assembly, model generation and output validation. In the given situation — A policy assistant produces unsupported answers because its chain sends only the user question to the LLM. — the targeted implement action is: Assemble query-to-retriever-to-context-grounded-prompt-to-LLM stages and attach citations to retrieved passages. This directly meets the stated workflow constraint instead of addressing an adjacent capability.

Incorrect Answers

A:

Not the strongest implement choice for this specific question. Join authorized structured values and retrieved policy context through a controlled composition stage. This action primarily relates to Parallel retrieval and deterministic chain postprocessing: Combining structured lookup and semantic retrieval requires explicit routing, result joining, and downstream schema checks. However, the described case — A policy assistant produces unsupported answers because its chain sends only the user question to the LLM. — is testing Retriever-generator chain component boundaries. It does not directly establish the implement outcome or constraint that the question requires; it may still be useful in a different stage or incident.

B:

Not the strongest implement choice for this specific question. Define a schema-constrained prompt with field types, required keys and strict structured-output validation at the consumer. This action primarily relates to Structured JSON schema prompt and format compliance: A model can produce plausible prose rather than machine-readable JSON unless the output contract and validation are explicit. However, the described case — A policy assistant produces unsupported answers because its chain sends only the user question to the LLM. — is testing Retriever-generator chain component boundaries. It does not directly establish the implement outcome or constraint that the question requires; it may still be useful in a different stage or incident.

D:

Not the strongest implement choice for this specific question. Split read-only diagnostic tools from authorized destructive operations with separate permissions. This action primarily relates to Agent tool schemas, least privilege and retries: Well-described tool schemas constrain parameters, and idempotent retries prevent duplicate side effects. However, the described case — A policy assistant produces unsupported answers because its chain sends only the user question to the LLM. — is testing Retriever-generator chain component boundaries. It does not directly establish the implement outcome or constraint that the question requires; it may still be useful in a different stage or incident.