Microsoft DP-750 Azure Databricks Data Engineer 1-10

表示モード
画像位置
文字位置
理解度の自動記録
STATUS FILTER

Choose confidence levels to display

Loading...
Q1DP-750
Show answer
Correct answer: D. Grant the analyst SELECT permission on the Transactions table and apply column masks to the email_address and credit_card_number columns.

A column mask does not return the original column value to the user as-is; instead it replaces it with the result of a user-defined function registered in Unity Catalog.
For email_address you can set a function that returns the part after “@”, and for credit_card_number a function that returns only the last four digits.
Because SELECT permission is granted on the table, the analyst can query all rows and the non-sensitive columns without errors.
A row filter restricts the rows themselves, which is not suitable for hiding column values in this case.
Removing SELECT permission on the sensitive columns would cause query errors, so column masks are what satisfy the least-privilege requirement.
Row filters and column masks
Column mask clause

Q2DP-750
GRANT ___ ON SCHEMA catalog1.schema1 (permissions to grant)

GRANT … ON SCHEMA catalog1.schema1 ___ (grantee)

Show answer
Correct answer: USAGE,CREATE TABLE / TO ROLE group1

As posed in this question, USAGE allows the use of schema1, and CREATE TABLE allows creating tables within the schema.
Because MANAGE and ownership are not granted, group1 is not given the ability to manage permissions.
Note that current Unity Catalog uses USE CATALOG and USE SCHEMA instead of USAGE, and the grantee uses the TO principal form rather than TO ROLE.
To let group1 query and modify all existing tables, grant SELECT and MODIFY separately.
This question is based on the older syntax.
Unity Catalog privileges reference
GRANT

Q3DP-750
Authentication type

Permission

Show answer
Correct answer: Databricks access connector / Read volume

An Azure Databricks Access Connector uses a managed identity to connect to Azure Storage, so there is no need to store or rotate credentials such as client secrets inside Databricks.
READ VOLUME allows reading the files and directories in the volume but does not allow adding, deleting, or modifying them.
BROWSE is a permission for discovering objects and cannot read file contents.
WRITE VOLUME allows modifying files, which is outside the requirements.
Therefore, the combination of a Databricks access connector and READ VOLUME satisfies least privilege.
Connect to an Azure Data Lake Storage Gen2 (ADLS Gen2) external location

Q4DP-750
Show answer
Correct answer: B. No.

Lakeflow Connect ingests data from SQL Server into Azure Databricks and stores it in destination Delta tables, so it does not meet the requirement of “not copying the data to Databricks-managed storage.”
To query the DB1 data without moving it, use Lakehouse Federation to create a foreign catalog from the connection.
A foreign catalog surfaces the schemas and tables of the external database inside Unity Catalog and provides read-only access to the data on the original SQL Server.
Therefore the answer is No.
Run federated queries on Microsoft SQL Server
Manage and work with foreign catalogs

Q5DP-750
Show answer
Correct answer: B. No.

To expose the schemas and tables of DB1 to Unity Catalog without copying data, create a foreign catalog using the existing connection.
A foreign catalog mirrors the external database and lets you run read-only federated queries from Databricks.
An Azure Databricks access connector is a resource that associates a managed identity with Databricks and is used for authentication to Azure Storage and similar services; it does not register SQL Server schemas or tables in Unity Catalog.
Therefore this solution does not meet the requirements.
Run federated queries on Microsoft SQL Server
Manage and work with foreign catalogs

Q6DP-750
Show answer
Correct answer: A. Yes.

A foreign catalog mirrors an external database inside Unity Catalog and lets its schemas and tables be displayed and queried just like other catalog objects.
With query federation through Lakehouse Federation, the data on SQL Server is queried read-only while remaining in place, so no copy is made to Databricks-managed storage.
Therefore, this solution of creating a foreign catalog in Catalog Explorer meets all requirements.
What is query federation?
Manage and work with foreign catalogs

Q7DP-750
Show answer
Correct answer: B. No.

Creating a new ordinary native catalog does not automatically reflect the schemas and tables of DB1 on SQL Server.
To display and query them inside Unity Catalog without copying data, you must use the existing connection and create a Lakehouse Federation foreign catalog.
A foreign catalog mirrors the external database and can run read-only queries while keeping the data on the original SQL Server.
Therefore this solution does not meet the requirements.
What is query federation?
Manage and work with foreign catalogs

Q8DP-750
Show answer
Correct answer: D. Continuous

A continuous trigger keeps the job always running and starts the next run as soon as a run completes or fails.
This suits the requirement to continuously process new records without waiting for a fixed schedule.
A file arrival trigger is limited to cases where a new file arrives in a monitored Unity Catalog storage location.
In this question the input is not specified to be files, so a continuous trigger is appropriate.
Note that the continuous trigger of Lakeflow Jobs is a different feature from Spark’s Continuous Processing trigger.
Automate jobs using schedules and triggers
Production considerations for Structured Streaming

Q9DP-750
Show answer
Correct answer: C. Add a NOT NULL constraint to transaction_id and a CHECK constraint to amount.

A NOT NULL constraint prohibits storing NULL in transaction_id, and combined with a CHECK constraint that defines amount as greater than 0, writes that do not meet the conditions are rejected at the table level.
These are data quality constraints enforced on Delta tables.
A WHERE clause or a view only excludes invalid rows at query time and cannot prevent invalid data from being written to the underlying table.
RLS is also a feature that controls the range of rows visible and is not used for data quality validation.
Constraints on Azure Databricks
ADD CONSTRAINT clause

Q10DP-750
Show answer
Correct answer: A. Values that appear more than once in both tables are displayed.

In each SELECT, GROUP BY groups rows by each column value, and HAVING COUNT(*) > 1 extracts only the values that appear more than once within that table.
HAVING is a clause that filters the aggregated results of GROUP BY by a condition.
INTERSECT returns only the values that exist in both the preceding and following SELECT results.
Because ALL is not specified, it is processed as the default DISTINCT and duplicates in the result are also removed.
Therefore, values that appear more than once in both Table1 and Table2 are displayed once each.
Set operators
HAVING clause