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 MB-500 Exam - Topic 3 Question 15 Discussion

Posted by Valentin on May 05, 2022 at 01:08 PM

You are a Dynamics 365 Finance developer. You have two tables as shown in the following exhibit:

You need to configure Table1 to ensure that records cannot be deleted from Table1 if Table2 contains related records.

Which value should you use for the OnDelete property?

Suggested Answer: D

Example of Restricted

Suppose we have two tables (Customer & Order) and the relation is of One-To-Many i.e Customer can have many orders.

So on a parent table i.e.(Customer) if I set a delete action property to ''RESTRICTED'' for Order table. Then If I go and delete the record from a Customer table. It will first check the record in the child table and if exist that warning prompt saying that first we need to delete a record from child table.

Incorrect Answers:

B: Example of Cascade:

Suppose we have two tables (Customer & Order) and the relation is of One-To-Many i.e. Customer can have many orders.

So on a parent table i.e.(Customer) if I set a delete action property to ''CASCADE'' for Order table. Then If I go and delete the record from a Customer table. It will also delete all the related records in Order table automatically.

C: Example of Cascade + Restricted

Suppose we have three tables (Person ,Customer & Order) Now Person is a parent of Customer table, and Customer is a parent of Order table having (One-To-Many) relations

If I set a Delete action property on Person table to ''CASCADE'' for customer table and If I set a Delete Action property on a CUSTOMER table for Order table to ''CASCADE +RESTRICTED''.

So if I delete a record from Customer table then It will first check the record in the child table(order table) and if exist that warning prompt saying that first we need to delete a record from child table.

But if I delete a record from Person table it will automatically delete a record in Customer table and all records related to customer table in Order table would also be deleted.


https://amazingax.wordpress.com/2013/01/13/microsoft-dynamics-ax-2012example-of-cascaderestricted-and-cascade-restricted-delete-action-property-for-a-table-relation/

Get Premium MB-500 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
12 comments · newest first
VA
Valentin 12 months ago
I’m not sure about that, isn’t Cascade usually more common?
EI
Eileen 1 year ago
Agreed, Restricted is the standard approach for this scenario.
MO
Mozelle 1 year ago
Wait, can you really not delete if there are related records? Sounds odd.
TA
Tawna 1 year ago
I think C is better, it gives more control.
GA
Galen 1 year ago
Definitely go with D, Restricted is the way to prevent deletions.
JU
Jutta 1 year ago
I recall that using "None" would allow deletions regardless of related records, so that can't be right. I'm leaning towards "Restricted" as the safest option.
LA
Lashawnda 1 year ago
I’m a bit confused about the Cascade + Restricted option. Does that mean it allows some deletions but not others? I need to double-check that.
BE
Belen 1 year ago
This question feels familiar! I practiced something similar where I had to choose between Cascade and Restricted. I think Restricted might be the right choice here.
ED
Eden 1 year ago
I think I remember that the OnDelete property can control how deletions are handled, but I'm not entirely sure which option prevents deletion if related records exist.
ST
Stephania 1 year ago
Ugh, I'm struggling with this one. There are a few potential issues mentioned, but I'm not totally sure which one is the most significant risk in this case. I'll have to re-read the question and options carefully.
SA
Salome 1 year ago
Hmm, I'm a bit confused about what the question is really asking. I need to carefully re-read the information and think through the implications.
CL
Clay 1 year ago
Okay, I've got this. The projected error is the difference between the recorded and audit amounts, multiplied by the sampling interval. So the answer should be $2,000.
0/2000 characters

Save Cancel