Exam MB-500 Topic 4 Question 155 Discussion
Actual exam question for Microsoft's MB-500 exam
Question #: 155
Topic #: 4
Question #: 155
Topic #: 4
You are the Dynamics 365 Finance Developer.
You have the following class definition:

You need to create an extension class and wrap the method by using Chain of Command (CoC), if the value of the Qty variable is less than 5, the code must cause an exception.
How should you complete the code segment? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

You have the following class definition:

You need to create an extension class and wrap the method by using Chain of Command (CoC), if the value of the Qty variable is less than 5, the code must cause an exception.
How should you complete the code segment? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

Suggested Answer:

Explanation:
Box 1: final class WebShopOrderVal_Extension
Box 2: public static void checkQtyValue(int Qty)
Incorrect Answers:
Public void ...
If a static method is the target that will be wrapped, the method in the extension must be qualified by using the static keyword.
Int Qty=0
The method signature in the wrapper method must not include the default value of the parameter.
Public int
Reference:
https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/extensibility/method-wrapping-coc
by Adair at Jun 28, 2026, 03:53 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).