Exam DP-600 Topic 2 Question 11 Discussion
Actual exam question for Microsoft's DP-600 exam
Question #: 11
Topic #: 2
Question #: 11
Topic #: 2
You have a Fabric tenant that contains a workspace named Workspace1. Workspace1 contains a lakehouse named I.H1 and a warehouse named DW1. I.H1 contains a table named signindata that is in the dho schema.
You need to create a stored procedure in DW1 that deduplicates the data in the signindata table.
How should you complete the T-SQL statement? To answer, select the appropriate options in the answer area.
NOTE: Fach correct selection is worth one point.

You need to create a stored procedure in DW1 that deduplicates the data in the signindata table.
How should you complete the T-SQL statement? To answer, select the appropriate options in the answer area.
NOTE: Fach correct selection is worth one point.

Suggested Answer:

Explanation:

Scenario Recap
Fabric tenant # Workspace1
Contains:
Lakehouse LH1 (with table signindata in schema dho)
Warehouse DW1
Task: Create a stored procedure in DW1 that deduplicates rows in signindata.
Step 1: Stored procedure structure
In T-SQL, stored procedures begin with:
AS
BEGIN
-- logic
END
So the correct option for the first blank is BEGIN.
BEGIN DISTRIBUTED TRANSACTION is not needed because we are not spanning multiple servers or needing distributed transactions.
SET is not the right way to start the logic block.
Step 2: Deduplication logic
To remove duplicates from signindata, the query should return unique rows.
The simplest way is:
SELECT DISTINCT PersonID, FirstName, LastName
FROM dho.signindata;
Thus the correct choice for the second blank is DISTINCT.
GROUP BY could also deduplicate but is less efficient here since no aggregation is requested.
TOP 100 PERCENT WITH TIES is irrelevant.
Step 3: Final T-SQL stored procedure
CREATE PROCEDURE dbo.usp_GetPerson
AS
BEGIN
SELECT DISTINCT PersonID, FirstName, LastName
FROM dho.signindata;
END;
Why this is correct
BEGIN # correct stored procedure structure.
DISTINCT # ensures deduplication of rows from signindata.
References
CREATE PROCEDURE (Transact-SQL)
DISTINCT (Transact-SQL)
by Vic at Jul 03, 2026, 03:45 AM
0
0
0
10
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).