exam questions

Exam DP-600 All Questions

View all questions & answers for the DP-600 exam

Exam DP-600 topic 1 question 159 discussion

Actual exam question from Microsoft's DP-600
Question #: 159
Topic #: 1
[All DP-600 Questions]

HOTSPOT
-

You have a Fabric tenant that contains a workspace named Workspace1. Workspace1 contains a lakehouse named LH1 and a warehouse named DW1. LH1 contains a table named signindata that is in the dbo 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: Each correct selection is worth one point.

Show Suggested Answer Hide Answer
Suggested Answer:

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
tizian10
3 months ago
BEGIN DISTINCT 🎯 When to Use What? Scenario Use Standard stored procedure with single-database operations ✅ AS BEGIN Multi-database transaction requiring rollback if one step fails ✅ AS BEGIN DISTRIBUTED TRANSACTION Changing session settings before executing queries ✅ AS SET DISTINCT because: Given that you need to deduplicate the signindata table, here's the logic behind choosing DISTINCT or GROUP BY: If you want to deduplicate based on certain fields (like UserID and SignInTime), DISTINCT is simpler and more straightforward. If you want to apply an aggregation (like counting, summing, etc.) while also deduplicating, GROUP BY would be appropriate. Why Choose DISTINCT in This Scenario? If you're simply deduplicating and not applying any aggregation, DISTINCT is the right tool. You only need to ensure that each row is unique based on a combination of columns (e.g., UserID and SignInTime).
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

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.

SaveCancel
Loading ...