Databricks Generative AI Engineer Associate · 8% practice allocation

Databricks Generative AI Engineer Associate: Governance Practice Questions

5 free sample questions from the Governance domain, with answers and explanations. The full Generative AI Engineer Associate bank has 250 questions across 6 domains. Questions are scenario-based and written from the official Databricks exam guide.

1.

A Databricks workspace administrator needs to grant a model serving endpoint's service principal the minimum permissions required to read embeddings from a Unity Catalog Vector Search index during inference, without allowing it to create, modify, or delete the index. Which Unity Catalog privilege should be granted to the service principal on the Vector Search index object?

  • A. USE CATALOG on the parent catalog only
  • B. CREATE TABLE on the schema containing the index
  • C. ALL PRIVILEGES on the schema containing the index
  • D. SELECT on the Vector Search index✓ Correct
Explanation

In Unity Catalog, the SELECT privilege on a Vector Search index grants the ability to query (read) the index, which is exactly what a serving endpoint needs during inference. This follows the principle of least privilege. Option A (USE CATALOG alone) is a prerequisite for navigating the catalog hierarchy but does not itself grant read access to the index data. Option C (ALL PRIVILEGES on the schema) would grant far more than necessary, including the ability to create, modify, and delete objects — violating least privilege. Option B (CREATE TABLE) grants the ability to create new tables in the schema, which is unrelated to reading the index and exceeds what is needed.

2.

An ML engineer is configuring a RAG pipeline that retrieves chunks from a corpus of legal contracts. Some contracts contain Social Security Numbers (SSNs) and bank account numbers. The engineer must ensure that PII never appears in the context window sent to the LLM or in the final response. Which TWO of the following controls should be applied to achieve this? (Select TWO)

  • A. Apply a PII detection and masking step to retrieved document chunks before they are appended to the LLM prompt.✓ Correct
  • B. Set the LLM's max_tokens parameter to a low value to prevent lengthy responses that might include PII.
  • C. Configure Unity Catalog dynamic data masking on the columns containing SSNs and account numbers in the source table used by the retrieval step.✓ Correct
  • D. Enable Delta Lake time travel on the contracts table so that previous versions of documents can be audited.
  • E. Enable Databricks Secret Scopes to encrypt the SSN column at rest within the contracts table.
Explanation

Option A is correct: a PII detection/masking step applied to retrieved chunks before prompt construction ensures that even if a document contains raw PII, that PII is replaced or redacted before it enters the LLM context. Option C is correct: Unity Catalog dynamic data masking on the source table prevents PII from being returned to any downstream process (including the retrieval step) for users or service principals that do not have explicit access, stopping PII at the data layer. Option D (time travel) is an auditing/versioning feature and does not mask PII. Option B (max_tokens) limits response length but does not prevent PII from being included in whatever tokens are generated. Option E (Secret Scopes) is for managing API keys and passwords, not for masking column-level PII in Delta tables.

3.

A team is designing a RAG pipeline in which a vector store retrieves chunks from a corpus of internal HR policy documents. Some documents are classified as 'Executive Only.' The team wants to enforce document-level access control so that users without executive clearance never receive chunks from restricted documents in their retrieved context. Which approach BEST enforces this in Databricks?

  • A. Store all document chunks in a single Delta table with a classification column and create a dynamic view that filters rows based on the querying user's group membership, then back the Vector Search index on the dynamic view so that retrieval respects row-level security.
  • B. Store executive documents in a separate Unity Catalog schema with restricted USAGE grants, and create a separate vector index for those documents; the application layer routes queries to the appropriate index based on user role.✓ Correct
  • C. Add a metadata filter on the vector search query that appends classification != 'Executive Only' for all non-executive users at query time, relying solely on the application layer to apply this filter.
  • D. Encrypt executive document chunks with a separate KMS key and distribute the decryption key only to executive users so the LLM cannot process restricted content.
Explanation

Option B is correct because separating sensitive documents into a Unity Catalog schema with restricted permissions enforces access control at the data platform level rather than relying on application logic alone. Having a dedicated index ensures that unauthorized users' retrieval queries never touch restricted content, even if the application layer is misconfigured. Option A is wrong in practice because Databricks Vector Search indexes must be backed by a Delta table or materialized view, not a dynamic (logical) view; the row-level filtering would not propagate into the vector index at query time. Option C is wrong because an application-layer metadata filter is a 'soft' control that is easily bypassed by a misconfigured or malicious caller; platform-level enforcement is preferred. Option D is wrong because the LLM itself does not perform decryption; data is decrypted before being passed to the model, so this approach does not prevent the restricted content from appearing in retrieved chunks passed to the LLM prompt.

4.

An enterprise data team registers a fine-tuned LLM in Unity Catalog and wants to enforce the principle of least privilege. They need service principal sp_inference to serve the model, data scientists to evaluate logged traces, and no other principal to have any access. Which THREE Unity Catalog/MLflow actions correctly scope these permissions? (Select THREE)

  • A. Grant MODIFY on the registered model to the data scientists group so they can read trace metadata.
  • B. Grant ALL PRIVILEGES on the catalog to sp_inference to ensure the serving infrastructure has all required access.
  • C. Grant SELECT on the MLflow experiment's linked Delta table of traces to the data scientists group.
  • D. Grant USE CATALOG and USE SCHEMA on the parent catalog and schema to both sp_inference and the data scientists group.✓ Correct
  • E. Grant READ VOLUME on the model artifact volume to sp_inference if model artifacts are stored in a Unity Catalog Volume.✓ Correct
  • F. Grant EXECUTE on the registered model to sp_inference so it can load and serve the model.✓ Correct
Explanation

Option F is correct because EXECUTE on the model object is the specific privilege needed to load and serve a registered model. Option D is correct because USE CATALOG and USE SCHEMA are prerequisite hierarchical privileges required to access any object within a catalog/schema; without them, even object-level grants are ineffective. Option E is correct because if model binaries are stored in a Unity Catalog Volume, the service principal also needs READ VOLUME to access the artifact files at serving time. Option C is wrong because the trace data is accessed through MLflow's UI and API rather than a direct SELECT on a Delta table; this is not the standard access pattern. Option B is wrong because ALL PRIVILEGES violates least-privilege and grants unnecessary permissions (e.g., CREATE, MODIFY) beyond what serving requires. Option A is wrong because MODIFY allows writing/editing the model object, which is broader than what data scientists need merely to read trace metadata.

5.

A machine learning engineer wants to grant a team of data scientists read-only access to a registered model in Unity Catalog so they can load and evaluate it, without allowing them to create new model versions. Which Unity Catalog privilege should be granted on the model object?

  • A. READ PRIVATE FILES
  • B. EXECUTE✓ Correct
  • C. APPLY TAG
  • D. SELECT
Explanation

Option B (EXECUTE) is the correct Unity Catalog privilege that allows a principal to load and use a registered model (including calling model serving endpoints backed by it) without the ability to register new versions. Option D (SELECT) is a privilege applied to tables and views, not to model objects. Option C (APPLY TAG) only permits adding metadata tags to the object and does not enable model loading. Option A (READ PRIVATE FILES) relates to external locations and storage credentials, not to model registry objects.

Test yourself across every Generative AI Engineer Associate domain

The free Generative AI Engineer Associate practice test mixes about 20 questions weighted like the exam. The full 250-question bank adds instant grading, flashcards and a timed mock exam.

Study this domain

Governance study guide (Generative AI Engineer Associate) →

Other Generative AI Engineer Associate domains

← All Databricks Generative AI Engineer Associate study resources