databricks Generative AI Engineer Associate · Practice questions

Section 5: Governance Practice Questions

Review 10 sample questions with their correct answers and explanations. Sign up free to continue with the full topic quiz.

Sign up free for the full quiz

Question 1

Which approach reduces the risk that an LLM reveals confidential information included in its system prompt?

  1. Put the secrets at the end of the prompt, where models rarely look
  2. Keep secrets out of prompts entirely and access them only inside secure tools — Correct
  3. Ask the model politely in the prompt to keep the secrets confidential from all users
  4. Encode the secrets in base64 inside the prompt so users cannot read them

Correct answer

Keep secrets out of prompts entirely and access them only inside secure tools

Explanation

Anything in a prompt may be extracted; secrets belong in secure tools and services.

Question 2

A team wants to prevent PII in responses from reaching users. Which AI Gateway feature addresses this directly?

  1. Traffic splitting
  2. Rate limits per user to reduce the volume of leaked PII
  3. Usage tracking
  4. Output guardrails with PII detection — Correct

Correct answer

Output guardrails with PII detection

Explanation

Guardrails can detect and block or mask PII and unsafe content in requests and responses.

Question 3

Which statement about governance of GenAI assets in Unity Catalog is correct?

  1. Only tables can be governed; models and indexes are outside Unity Catalog
  2. Governance applies only to batch workloads
  3. Vector indexes are public to all workspace users by default
  4. Models, functions, indexes and tables get permissions and lineage — Correct

Correct answer

Models, functions, indexes and tables get permissions and lineage

Explanation

Unity Catalog governs data and AI assets, including registered models, functions and vector indexes.

Question 4

Which statement about guardrails on the AI Gateway versus guardrails in agent code is correct?

  1. Gateway guardrails require code changes
  2. Gateway guardrails apply centrally to all callers of the endpoint — Correct
  3. Agent code guardrails apply to every endpoint in the workspace automatically, even unrelated ones
  4. They are identical

Correct answer

Gateway guardrails apply centrally to all callers of the endpoint

Explanation

Gateway-level controls are configured once per endpoint; code-level checks are specific to an application.

Question 5

A team fine-tunes a model on customer support transcripts. What should be checked first from a governance perspective?

  1. That the model's temperature is set to 1
  2. That the transcripts are longer than 1,000 words
  3. Rights to use the data and handling of sensitive content — Correct
  4. That the transcripts are stored as CSV

Correct answer

Rights to use the data and handling of sensitive content

Explanation

Training data must have proper consent and licensing, and sensitive information should be removed or protected.

Question 6

Which regulatory concern applies when logging full prompts and responses in inference tables?

  1. Logged payloads may contain personal data that needs governance — Correct
  2. Inference tables delete source documents after each request
  3. Logging prompts makes the model's answers less accurate over time
  4. Inference tables are automatically public and visible to every Databricks customer

Correct answer

Logged payloads may contain personal data that needs governance

Explanation

Logged payloads must be governed with access control and retention policies.

Question 7

Which approach adds a guardrail that blocks unsafe user inputs before they reach the main model?

  1. Use a larger context window
  2. Increase max_tokens so the model can explain why it is unsafe
  3. Screen inputs with a safety guardrail and reject flagged ones — Correct
  4. Add more chunks to the retrieved context

Correct answer

Screen inputs with a safety guardrail and reject flagged ones

Explanation

Input guardrails screen requests for unsafe content before generation.

Question 8

What is the main purpose of tracking lineage from source documents to a vector index and an agent?

  1. To understand dependencies for audits and debugging — Correct
  2. To increase the context window
  3. To reduce token costs
  4. To make retrieval faster

Correct answer

To understand dependencies for audits and debugging

Explanation

Lineage supports governance and troubleshooting across data and AI assets.

Question 9

Which practice reduces the risk of harmful or offensive outputs from a public-facing assistant?

  1. Allow unlimited response length
  2. Remove the system prompt
  3. Use the highest possible temperature
  4. Input and output safety guardrails plus safety evaluation — Correct

Correct answer

Input and output safety guardrails plus safety evaluation

Explanation

Safety filtering and evaluation reduce harmful outputs.

Question 10

A RAG application must only return chunks from documents that the requesting user is allowed to read. Which approach is most appropriate?

  1. Store all documents in one index and trust users not to ask about restricted topics
  2. Enforce Unity Catalog permissions and identity-based filters in retrieval — Correct
  3. Shuffle chunks randomly so confidential ones rarely appear
  4. Add an instruction asking the model not to reveal confidential documents

Correct answer

Enforce Unity Catalog permissions and identity-based filters in retrieval

Explanation

Access control must be enforced in retrieval, not left to prompt instructions.

Ready for the full quiz?

Create a free QuizAnalyst account to practice the complete question set and save your progress.

Sign up free for the full quiz