Demo Microsoft MB-500 Exam Questions

Demo practice questions for guest users.

Section: Practice Mode 1 Questions
Demo Practice
Question 1

You have an enumeration named truckStatus that has the following statuses:

Empty
Loaded
Completed

Correct Answer: B
Explanation:
When you add new values (Quarantine and InTransit) to an existing extensible enumeration in Dynamics 365 Finance and Operations, you should use an event handler (post handler) to extend the existing logic rather than modifying the original code.
Correct Answer:
B. Add a post handler to the method that checks the enumeration and logic for your new enumeration values using the enumeration value.
Why B?
  • Follows the extension model and avoids overlayering.
  • Uses the enumeration value directly, which is the recommended and maintainable approach.
  • Ensures the customization remains upgrade-safe.
Why not the others?
A. Add a new case statement in the model of the existing code
  • Requires modifying the original application code (overlayering).
C. Use the integer value of the enumeration
  • Enum integer values can change between environments or versions.
  • Microsoft recommends using the enum value itself, not its underlying integer.
D. Use a range comparison for the new values
  • Enum extensions do not guarantee a specific order or range of values.
  • Range comparisons are unreliable for extensible enums.

Demo Practice Mode

You are viewing only the questions marked as Demo.

BACK TO EXAM