exam questions

Exam DP-203 All Questions

View all questions & answers for the DP-203 exam

Exam DP-203 topic 1 question 63 discussion

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

You have an Azure Databricks workspace that contains a Delta Lake dimension table named Table1.
Table1 is a Type 2 slowly changing dimension (SCD) table.
You need to apply updates from a source table to Table1.
Which Apache Spark SQL operation should you use?

  • A. CREATE
  • B. UPDATE
  • C. ALTER
  • D. MERGE
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
labriji
Highly Voted 2 years, 4 months ago
Selected Answer: D
When applying updates to a Type 2 slowly changing dimension (SCD) table in Azure Databricks, the best option is to use the MERGE operation in Apache Spark SQL. This operation allows you to combine the data from the source table with the data in the destination table, and then update or insert the appropriate r ecords. The MERGE operation provides a powerful and flexible way to handle updates for SCD tables, as it can handle both updates and inserts in a single operation. Additionally, this operation can be performed on Delta Lake tables, which can easily handle the ACID transactions needed for handling SCD updates.
upvoted 13 times
...
Naman1605
Highly Voted 2 years, 8 months ago
Selected Answer: D
correct D
upvoted 9 times
...
EmnCours
Most Recent 5 months, 2 weeks ago
Selected Answer: D
Correct Answer: D
upvoted 1 times
...
dgerok
1 year, 1 month ago
Type 2 SCD means you have a new row to insert for the changes. The only MERGE supports this operation among the possible answers
upvoted 1 times
...
rocky48
1 year, 3 months ago
Selected Answer: D
MERGE Operation: The MERGE operation in Apache Spark SQL (and specifically in Delta Lake) combines the capabilities of both INSERT and UPDATE. It allows you to upsert data (insert new records or update existing records) based on a specified condition. When you have a slowly changing dimension (SCD) table like Table1, where historical data needs to be maintained. Therefore, the correct answer is D. MERGE
upvoted 3 times
...
kkk5566
1 year, 8 months ago
Selected Answer: D
To update or upsert records in a delta lake in Databricks use the "Merge" command.
upvoted 4 times
...
ajhak
1 year, 11 months ago
Selected Answer: D
To update or upsert records in a delta lake in Databricks use the "Merge" command. https://learn.microsoft.com/en-us/azure/databricks/delta/merge
upvoted 4 times
...
anks84
2 years, 8 months ago
Correct
upvoted 3 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago