Question 1
Which approach reduces the risk that an LLM reveals confidential information included in its system prompt?
- Put the secrets at the end of the prompt, where models rarely look
- Keep secrets out of prompts entirely and access them only inside secure tools — Correct
- Ask the model politely in the prompt to keep the secrets confidential from all users
- 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?
- Traffic splitting
- Rate limits per user to reduce the volume of leaked PII
- Usage tracking
- 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?
- Only tables can be governed; models and indexes are outside Unity Catalog
- Governance applies only to batch workloads
- Vector indexes are public to all workspace users by default
- 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?
- Gateway guardrails require code changes
- Gateway guardrails apply centrally to all callers of the endpoint — Correct
- Agent code guardrails apply to every endpoint in the workspace automatically, even unrelated ones
- 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?
- That the model's temperature is set to 1
- That the transcripts are longer than 1,000 words
- Rights to use the data and handling of sensitive content — Correct
- 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?
- Logged payloads may contain personal data that needs governance — Correct
- Inference tables delete source documents after each request
- Logging prompts makes the model's answers less accurate over time
- 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?
- Use a larger context window
- Increase max_tokens so the model can explain why it is unsafe
- Screen inputs with a safety guardrail and reject flagged ones — Correct
- 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?
- To understand dependencies for audits and debugging — Correct
- To increase the context window
- To reduce token costs
- 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?
- Allow unlimited response length
- Remove the system prompt
- Use the highest possible temperature
- 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?
- Store all documents in one index and trust users not to ask about restricted topics
- Enforce Unity Catalog permissions and identity-based filters in retrieval — Correct
- Shuffle chunks randomly so confidential ones rarely appear
- 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.