Microsoft certification · Exam DP-700

DP-700 Mock Exam Page 2

Implementing Data Engineering Solutions Using Microsoft Fabric

Free DP-700 questions on Topic 3: Misc. Questions Set, each with the answer and an explanation.

20 questions · 33 minutes · free, no sign-up

Topic 3: Misc. Questions Set questions

11–20 of 27 free
Question 11
You have a Fabric workspace that contains a warehouse named Warehouse1. Warehouse! contains a table named Customer. Customer contains the following data.



You have an internal Microsoft Entra user named User1 that has an email address of user1@contoso.com.
You need to provide User1 with access to the Customer table. The solution must prevent User1 from accessing the CreditCard column.
How should you complete the statement? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

Show answerHide answer

Explanation



Explanation:
You need to grant column-level SELECT permissions to hide the CreditCard column. The GRANT command with specified columns allows access only to those columns. The user must be referenced by their Microsoft Entra user principal name (email) in brackets because it contains a special character (@).

Correct Option:
GRANT SELECT – GRANT is the permission command. SELECT is required for reading data. This combination gives User1 permission to query the specified columns.

ON Customers(CustomerID, FirstName, LastName, Phone) – Listing columns explicitly after the table name restricts access to only these four columns. The CreditCard column is omitted, so User1 cannot see or query it.

TO [user1@contoso.com] – In Fabric warehouse, external users must be identified by their Entra user principal name enclosed in brackets due to the @ symbol, not by a simple name like “User1”.

Incorrect Option (per answer area choices):
ALTER / EXECUTE / READ / VIEW – ALTER modifies schema, EXECUTE runs procedures, READ is not a valid object permission in Fabric warehouses (SELECT is used instead), and VIEW is not a permission type. Only SELECT provides read access to table data.

TO User1 / [User1] – User1 alone is not a recognized security principal in Entra without domain context. [User1] lacks the email format required for external users; Fabric expects the full UPN for Entra users.

Customers( * ) or Customers without column list – Omitting the column list grants SELECT on all columns, including CreditCard, which violates the requirement to prevent access to that column.

Reference:
Microsoft Fabric documentation: Column-level security in Fabric data warehouse – GRANT SELECT ON schema.table (column_list) TO user; and Specifying external users – Use [user@domain.com] for Entra users with special characters.
Question 12 Choose 2
You have a Fabric workspace that contains an eventhouse and a KQL database named Database1. Database1 has the following:

A table named Table1
A table named Table2
An update policy named Policy1
Policy1 sends data from Table1 to Table2.
The following is a sample of the data in Table2.



Recently, the following actions were performed on Table1:

An additional element named temperature was added to the StreamData column.
The data type of the Timestamp column was changed to date.
The data type of the DeviceId column was changed to string.
You plan to load additional records to Table2.
Which two records will load from Table1 to Table2? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.

Show answerHide answer

Correct answer: B, D Option BOption D

Explanation

Explanation: Changes to Table1 Structure:

StreamData column: An additional temperature element was added.
Timestamp column: Data type changed from datetime to date.
DeviceId column: Data type changed from guid to string.

Impact of Changes:

Only records that comply with Table2’s structure will load.
Records that deviate from Table2’s column data types or structure will be rejected.

Record B:

Timestamp: Matches Table2 (datetime format).
DeviceId: Matches Table2 (guid format).
StreamData: Contains only the index and eventid, which matches Table2.
Accepted because it fully matches Table2’s structure and data types.

Record D:

Timestamp: Matches Table2 (datetime format).
DeviceId: Matches Table2 (guid format).
StreamData: Matches Table2’s structure.
Accepted because it fully matches Table2’s structure and data types.
Question 13 Choose 1
You have a Fabric workspace named Workspace1 that contains a warehouse named Warehouse1.
You plan to deploy Warehouse1 to a new workspace named Workspace2.
As part of the deployment process, you need to verify whether Warehouse1 contains invalid references. The solution must minimize development effort.
What should you use?
Show answerHide answer

Correct answer: C a Python script

Explanation

Explanation:
Invalid references in a Fabric warehouse typically include broken schema-bound dependencies (e.g., views, functions, stored procedures referencing missing columns or tables). A database project (SQL Database Project in Azure Data Studio or Visual Studio) provides built-in static code analysis to detect unresolved object references before deployment, with minimal manual effort.

Correct Option (A – database project):

Database projects compile the warehouse schema and validate all object dependencies at build time.

They flag invalid references (e.g., a view selecting from a non-existent column) immediately without needing to execute code against a live environment.

This is the lowest-effort, declarative approach for pre-deployment validation in Fabric.

Why C (Python script) is generally incorrect for this specific requirement:

A Python script would require manually querying system views (e.g., sys.sql_expression_dependencies) and writing custom logic to detect invalid references.

This involves significant development, testing, and maintenance effort — the opposite of minimizing effort.

It also requires execution against a live warehouse, not a pre-deployment validation.

Incorrect Options (B and C as per original answer key):

B (deployment pipeline):
Deployment pipelines in Fabric copy artifacts between workspaces but do not inherently validate broken object references before deployment. Validation is runtime-bound.

C (Python script):
High effort, custom code required. Not minimal.

D (T-SQL script):
Could query sys.sql_expression_dependencies, but still requires manual writing and execution. More effort than a database project.

Reference:

Microsoft Fabric documentation: SQL database projects in Fabric – “Build and validate your warehouse schema, detect unresolved dependencies before deployment.”

Also: Deployment pipelines – “Copies items but does not perform static validation of object references.”
Question 14 Choose 1
You have a Fabric workspace that contains a Real-Time Intelligence solution and an eventhouse.
Users report that from OneLake file explorer, they cannot see the data from the eventhouse.
You enable OneLake availability for the eventhouse.
What will be copied to OneLake?
Show answerHide answer

Correct answer: D both new data and existing data in the eventhouse

Explanation

Explanation:
Eventhouse in Fabric Real-Time Intelligence stores data in KQL databases. By default, this data is not visible via OneLake. Enabling "OneLake availability" creates a logical copy (parquet format) of both existing and future data into OneLake, making it accessible through tools like OneLake file explorer without duplicating storage costs.

Correct Option (D – both new data and existing data in the eventhouse):

When you enable OneLake availability on an eventhouse, Microsoft Fabric automatically backfills all existing data into OneLake.

Additionally, any new data ingested after enabling the feature continuously syncs to OneLake.

This provides a unified view without manual migration or reprocessing.

Incorrect Options:

A (only new data added to new databases):
Incorrect. OneLake availability applies to the entire eventhouse, not just new databases, and includes existing databases and data.

B (only existing data in the eventhouse):
Incorrect. Enabling the feature captures both historical and future data, not just existing data.

C (no data):
Incorrect. Enabling OneLake availability explicitly copies data to OneLake; it is not a no-op operation.

E (only new data added to the eventhouse):
Incorrect. This would create an incomplete view. Microsoft's implementation ensures backfill of existing data to maintain consistency.

Reference:
Microsoft Fabric documentation: OneLake availability in Eventhouse – "When enabled, existing data is backfilled and all new data is automatically made available in OneLake in Parquet format."
Question 15 Choose 1
You have a Fabric workspace named Workspace1 that contains a notebook named Notebook1.
In Workspace1, you create a new notebook named Notebook2.
You need to ensure that you can attach Notebook2 to the same Apache Spark session as Notebook1.
What should you do?
Show answerHide answer

Correct answer: A Enable high concurrency for notebooks.

Explanation

Explanation:
In Microsoft Fabric, Apache Spark sessions are typically isolated per notebook by default. To attach multiple notebooks to the same Spark session, you must enable high concurrency for notebooks. This feature allows multiple notebooks to share a single Spark session, reusing the same context, variables, and cached data across notebooks.

Correct Option (A – Enable high concurrency for notebooks):

High concurrency mode allows multiple notebooks to attach to the same interactive Spark session within a workspace.

When enabled, Notebook2 can be attached to Notebook1's session instead of starting its own, reducing startup overhead and enabling variable sharing.

This is a workspace-level or environment-level setting specifically designed for collaborative, session-sharing scenarios.

Incorrect Options:

B (Enable dynamic allocation for the Spark pool):
Dynamic allocation adjusts the number of executors based on workload, but it does not allow multiple notebooks to share a single session. Sessions remain isolated.

C (Change the runtime version):
Runtime version affects library compatibility and Spark version, not session sharing across notebooks. Both notebooks already need the same runtime to share a session, but changing it alone does not enable sharing.

D (Increase the number of executors):
More executors increase computational capacity but do not change session isolation behavior. Each notebook still launches its own session unless high concurrency is enabled.

Reference:
Microsoft Fabric documentation: High concurrency mode for notebooks – "Enable high concurrency to attach multiple notebooks to the same Apache Spark session, allowing session reuse and variable sharing across notebooks."
Question 16 Choose 1
You have a Fabric workspace.
You have semi-structured data.
You need to read the data by using T-SQL, KQL, and Apache Spark. The data will only be written by using Spark.
What should you use to store the data?
Show answerHide answer

Correct answer: A a lakehouse

Explanation

Explanation:
You need a single storage location accessible via T-SQL, KQL, and Apache Spark, but written only by Spark. A lakehouse in Microsoft Fabric stores data in open Parquet/Delta format in OneLake. It can be read by T-SQL (via SQL endpoint), KQL (via OneLake availability or shortcut), and Spark (natively), while allowing Spark-only writes.

Correct Option (A – a lakehouse):
Lakehouse uses Delta Parquet format in OneLake, making it natively readable by Spark.

The automatic SQL endpoint enables T-SQL queries over lakehouse tables.

KQL can read lakehouse data by creating a shortcut or enabling OneLake availability, without requiring KQL-native writes.

Spark writes, T-SQL/KQL reads satisfy the requirement exactly.

Incorrect Options:

B (an eventhouse):
Eventhouse is optimized for streaming and time-series data using KQL. T-SQL access is limited, and Spark writes are not the primary ingestion path. It does not efficiently support Spark-first write patterns for semi-structured data.

C (a datamart):
Datamart is a read-optimized, fully managed relational store primarily accessed via T-SQL. It does not support direct Spark writes or KQL queries as a primary access method.

D (a warehouse):
Warehouse supports T-SQL and Spark reads, but KQL access is not native. More importantly, warehouses are not designed for Spark-first write patterns; they are optimized for T-SQL operations.

Reference:
Microsoft Fabric documentation: Lakehouse – OneLake data lake – "Lakehouse tables can be read via T-SQL (SQL endpoint), Spark, and KQL (via shortcuts), while writes can be performed using Spark notebooks."
Question 17 Choose 1
You are implementing a medallion architecture in a Fabric lakehouse.
You plan to create a dimension table that will contain the following columns:

• ID
• CustomerCode
• CustomerName
• CustomerAddress
• CustomerLocation
• ValidFrom
• ValidTo

You need to ensure that the table supports the analysis of historical sales data by customer location at the time of each sale Which type of slowly changing dimension (SCD) should you use?
Show answerHide answer

Correct answer: A Type 2

Explanation

Explanation:
You need to analyze historical sales data by customer location at the time of each sale. This requires preserving the full history of location changes over time. A Type 2 slowly changing dimension (SCD) tracks historical changes by adding new rows with valid-from and valid-to dates, allowing point-in-time analysis of sales relative to customer location.

Correct Option (A – Type 2):

SCD Type 2 creates a new row for each change in a dimension attribute (here, CustomerLocation), with effective date columns (ValidFrom, ValidTo).

The presence of ValidFrom and ValidTo in your table design directly indicates Type 2.

Historical sales records can join to the correct version of the customer based on the sale date, preserving historical accuracy.

Incorrect Options:

B (Type 0):
Type 0 retains original values forever and never overwrites or adds rows. Changes are ignored. This would not track location changes, making historical analysis by location impossible.

C (Type 1):
Type 1 overwrites the existing value without preserving history. If a customer moves, all past sales would incorrectly show the new location, breaking historical accuracy.

D (Type 3):
Type 3 stores only one previous value (e.g., CurrentLocation, PreviousLocation). It tracks only the most recent change, not a full history of all location changes over time, which is insufficient for your requirement.

Reference:
Microsoft Fabric documentation: Slowly changing dimensions in lakehouse – "Use SCD Type 2 when you need to preserve full history of attribute changes, typically with ValidFrom and ValidTo columns for point-in-time analysis."
Question 18
You have a Fabric workspace named Workspace1 that contains a warehouse named Warehouse2. A team of data analysts has Viewer role access to Workspace1. You create a table by running the following statement.



You need to ensure that the team can view only the first two characters and the last four characters of the Creditcard attribute.
How should you complete the statement? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

Show answerHide answer

Explanation



Explanation:
You need to mask the CreditCard column so that users see only the first two and last four characters. Fabric warehouse supports dynamic data masking using the PARTIAL function. The ALTER TABLE ... ALTER COLUMN ... WITH (FUNCTION = 'PARTIAL(2,4)') statement applies this masking rule directly to the existing column.

Correct Option:

ALTER (first blank): ALTER TABLE is used to modify an existing table structure, including adding or altering column masking.

ALTER (second blank): ALTER COLUMN modifies the properties of the existing CreditCard column.

PARTIAL – The PARTIAL masking function exposes a prefix and suffix of the string, hiding the middle characters. The syntax PARTIAL(2,4) shows the first 2 characters and last 4 characters.

UPDATE is not used here; masking is applied via WITH (FUNCTION = ...) clause.

Incorrect Options (for each blank):

CREATE / DROP – CREATE TABLE creates a new table, but the table already exists. DROP would remove the table or column, not apply masking.

DEFAULT / EMAIL / REPLACE – DEFAULT is a constraint, EMAIL is an email masking function (not for credit cards), REPLACE is a string function, not a masking function name in Fabric.

UPDATE – UPDATE modifies data values, not column properties or masking rules.

Reference:
Microsoft Fabric documentation: Dynamic data masking in Fabric data warehouse – "Use ALTER TABLE ... ALTER COLUMN ... WITH (FUNCTION = 'PARTIAL(prefix, suffix)') to mask sensitive string data, showing only the first N and last M characters."
Question 19
HOTSPOT
You have a Fabric workspace that contains two lakehouses named Lakehouse1 and Lakehouse2. Lakehouse1 contains staging data in a Delta table named Orderlines.
Lakehouse2 contains a Type 2 slowly changing dimension (SCD) dimension table named Dim_Customer.
You need to build a query that will combine data from Orderlines and Dim_Customer to create a new fact table named Fact_Orders. The new table must meet the following requirements:

Enable the analysis of customer orders based on historical attributes.
Enable the analysis of customer orders based on the current attributes.
How should you complete the statement? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

Show answerHide answer

Explanation



Explanation:
You need to join staging order lines with a Type 2 SCD dimension table. To analyze both historical and current attributes, the join must use the dimension's validity dates (valid_from, valid_to) against the order date. Including is_current = 1 ensures current attributes are also available for analysis.

Correct Options (for each blank in the answer area):

o.OrderDate >= c.valid_from – Ensures the order date is on or after the customer record became valid.

o.OrderDate < c.valid_to – Ensures the order date is before the customer record expired. Using < (not <=) is standard for Type 2 to avoid overlapping boundaries.

c.is_current = 1 – Filters to the current version of each customer, enabling analysis based on today's attributes alongside historical joins.

Incorrect Options (implied from the fragmented text):

i.i_customer = 1 – This is a meaningless reference (i not defined, i_customer not a standard SCD column).

o.UnitValue < ... – UnitValue is not a column in the schema; the requirement uses unitPrice already aliased.

o.OrderDate <= valid_end_date without proper column reference – Must explicitly reference c.valid_to; equality on end date can double-count boundary cases.

Omitting is_current = 1 – Without this, you cannot analyze based on current attributes as required.

Reference:
Microsoft Fabric / Lakehouse documentation: Querying Type 2 SCD dimensions – "Join fact rows to dimension using fact_date >= valid_from AND fact_date < valid_to. Add is_current = 1 for current attribute analysis."
Question 20 Choose 1
You have an Azure SQL database named DB1.
In a Fabric workspace, you deploy an eventstream named EventStreamDBI to stream record changes from DB1 into a lakehouse.
You discover that events are NOT being propagated to EventStreamDBI.
You need to ensure that the events are propagated to EventStreamDBI.
What should you do?
Show answerHide answer

Correct answer: D Enable change data capture (CDC) for DB1.

Explanation

Explanation:
For Fabric eventstreams to capture record changes from an Azure SQL database, the source database must track insert, update, and delete operations. Change data capture (CDC) is the SQL Server/Azure SQL feature that logs these changes to a change table. Without CDC enabled, the eventstream has no mechanism to detect or propagate record-level changes.

Correct Option (D – Enable change data capture (CDC) for DB1):

CDC captures insert, update, and delete activity applied to SQL Server tables, storing changes in a lightweight relational format.

Fabric eventstreams can connect to Azure SQL DB with CDC enabled and read the change feed natively.

Once CDC is enabled on DB1 and specific tables, EventStreamDB1 will begin propagating events to the lakehouse.

Incorrect Options:

A (Create a read-only replica of DB1):
A read-only replica provides a copy for reporting or load balancing, but it does not generate or expose a change feed. It will not solve the missing event propagation.

B (Create an Azure Stream Analytics job):
Stream Analytics processes streaming data from sources like Event Hubs or IoT Hub. It does not enable change tracking on a source Azure SQL database.

C (Enable Extended Events for DB1):
Extended Events is a lightweight performance monitoring and debugging system. It is not designed for reliably capturing row-level changes to feed into an eventstream.

Reference:

Microsoft Fabric documentation: Eventstreams – Azure SQL DB source – "The source Azure SQL database must have Change Data Capture (CDC) enabled on the database and the specific tables you want to track."

Azure SQL documentation: About Change Data Capture (CDC) – "CDC records insert, update, and delete activity on a table."
Full mock exam

Sit the DP-700 exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real DP-700 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full DP-700 mock exam
  • 65questions per mock
  • 105 mintime limit
  • 109questions in the bank
  • Newmock on every attempt