Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft DP-750 Exam - Topic 1 Question 8 Discussion

Posted by Tyisha on Oct 01, 2026 at 05:01 AM

You have an Azure Databricks workspace that is enabled for Unity Catalog and contains a managed Delta table named Payments.

Payments stores transaction data and contains a column named payment_amount of the Decimal data type.

You must enforce the following business rule:

payment_amount must be between 0 and 10,000, inclusive

You need to ensure that records that violate the rule are rejected when data is written to the Payments table.

What should you do?

Suggested Answer: A

A CHECK constraint enforces a Boolean condition whenever data is inserted or updated. The constraint can require payment_amount >= 0 AND payment_amount <= 10000, causing a transaction containing an invalid value to fail instead of allowing the record into Payments. This provides storage-level data-quality enforcement regardless of which pipeline, notebook, or SQL statement performs the write. Row-level security controls which existing records users can see; it does not reject invalid writes. SELECT statements filter results only when they are executed and therefore cannot protect the underlying table. Table update triggers are not the standard Delta Lake mechanism for this requirement. Azure Databricks classifies CHECK constraints as enforced constraints and rejects transactions when their conditions are violated. Microsoft Learn


Get Premium DP-750 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
11 comments · newest first
CL
Clement
I disagree, RLS won't actually reject the data.
PA
Patria 5 days ago
A) Add a CHECK constraint is the way to go!
TA
Tarra 10 days ago
I thought SELECT statements could handle this too, but not for rejection?
VE
Verda 15 days ago
Definitely A, it’s the simplest solution!
DO
Dong 20 days ago
Wait, can you really use triggers in Delta tables?
SH
Shala 26 days ago
I disagree, RLS won't actually reject the data.
AN
Anisha 1 month ago
A) CHECK constraint is the way to go!
MO
Moira 1 month ago
I feel like using a trigger could be overkill for this situation, but I can't recall if it would actually enforce the rule effectively.
SE
Selma 1 month ago
Row-level security seems like it could work, but it doesn't actually prevent invalid data from being written, right?
MA
Malcolm 2 months ago
I remember practicing a similar question where we had to enforce data integrity, and I think CHECK constraints were the solution there too.
LI
Lino 2 months ago
I think adding a CHECK constraint to payment_amount is the right approach, but I'm not entirely sure if it will reject the records as intended.
0/2000 characters

Save Cancel