Home / Microsoft Dynamics 365 Finance and Operations Apps Developer (MB-500) / Mock exam
Microsoft Dynamics 365 Finance and Operations Apps Developer (MB-500) Exam-style mock test

Microsoft MB-500 Dynamics 365 Finance and Operations Developer Practice Exams|Practice test

Full explanations Exam format Pass line 70%
33 USD One-time · lifetime access
Enroll →

Sample questions

Example1 · X++ Programming and Development Concepts
A developer at a B2B SaaS company must add custom validation logic to the standard SalesTable form's write process without altering any Microsoft source code, so the change survives future platform updates. Which approach should the developer use?
✓Create a chain-of-command extension class decorated with [ExtensionOf] that wraps the target method and calls next()
Correct. A chain-of-command (CoC) extension class with [ExtensionOf] wraps the method and uses next() to preserve base behavior, keeping customizations upgrade-safe.
・Overlayer the standard element and directly modify the method body in the base object
Incorrect. Overlayering directly modifies Microsoft source and is deprecated in extension-only models, so it is not upgrade-safe.
・Create an event handler subscribed to the OnValidating delegate instead
Incorrect. Subscribing to a delegate event is valid for some scenarios but does not wrap the write method with next() as required here.
・Duplicate the standard table into a new custom table and redirect all references to it
Incorrect. Duplicating the standard table and redirecting references creates heavy maintenance and breaks standard framework integration, which is not the intended pattern.
Explanation
Chain-of-command is the recommended extension pattern to wrap standard methods while remaining upgrade-safe.
Example2 · Data Model: Tables, EDTs, Enums, and Data Entities
A developer at a B2B SaaS company is building a new table named SubscriptionPlan to store recurring billing tiers. The business requires that no two rows can ever share the same combination of TenantId and PlanCode, and the system must enforce this at the data layer. Which table configuration should the developer apply?
✓Add a unique index that includes both the TenantId and PlanCode fields
Correct. A unique index spanning TenantId and PlanCode has the kernel reject any insert or update that would duplicate that key combination, enforcing uniqueness at the data layer.
・Set the CreatedBy and ModifiedBy system fields on the table to Yes
Incorrect. The CreatedBy and ModifiedBy fields capture audit metadata about who changed a row and do nothing to prevent duplicate key values.
・Set the TableGroup property of the SubscriptionPlan table to Main
Incorrect. The TableGroup property classifies the table for licensing and documentation purposes and has no effect on row uniqueness.
・Create a non-unique index on PlanCode and add a validateWrite override that loops all rows to check for duplicate TenantId and PlanCode combinations before insert
Incorrect. A manual validateWrite loop is slower, race-prone, and bypassable through other code paths, so it is not the kernel-enforced uniqueness the requirement calls for.
Explanation
Uniqueness across a field combination is enforced declaratively with a unique index, which the database kernel validates on every write.
Example3 · User Interface: Forms, Controls, and Workspaces
A developer at a B2B SaaS billing company must create a new form that displays a filterable list of subscription records and, when a row is selected, shows the full details of that subscription below the grid. Which form pattern should the developer apply to meet this requirement with minimal custom work?
・Simple List
Incorrect. Simple List renders only a grid for lightweight reference data and has no details section for the selected record.
✓Details Master
Correct. Details Master presents a filtered list at the top and the selected record's details beneath it, matching a grid-plus-details layout exactly.
・List Page
Incorrect. List Page is tuned for action-pane driven navigation to a separate details form rather than showing details inline below the grid.
・Table of Contents
Incorrect. Table of Contents organizes settings into tabbed sections and is not meant for record lists with inline details.
Explanation
The Details Master pattern is purpose-built for a filterable list combined with an inline details view of the selected record, which is the described requirement.
Example4 · Business Logic, Classes, and Extensions
A developer at a healthcare services firm must add a validation method to a standard Microsoft class that processes patient intake records. Company policy forbids overlayering of standard source. Which approach adds the method without modifying the base class source?
・Overlayer the standard class in the application suite model and recompile the entire package from scratch
Incorrect. Overlayering modifies the standard source, which is exactly what the firm's extension-only policy prohibits.
✓Create an extension class decorated with the ExtensionOf attribute that targets the standard class
Correct. An extension class marked with ExtensionOf augments the target class with new methods at compile time without touching the base source.
・Inherit from the standard class and replace every reference to the base class across the whole application
Incorrect. Inheriting and swapping references is invasive, breaks standard call sites, and is not a supported extensibility pattern.
・Register a pre-event handler to inject the new method into the class
Incorrect. Event handlers subscribe to delegates and events; they cannot add arbitrary new methods to a class.
Explanation
Augmentation through an ExtensionOf extension class is the supported way to add methods to a standard class without overlayering.
Example5 · Security, Performance, Testing, and Deployment
A developer at a healthcare services firm builds a custom table that stores patient referral records. Clinical staff must be able to view and edit the records, but billing staff must only read them. The developer needs to grant these access levels through the standard security framework. Which security object should the developer define first to represent each distinct access level before assigning them to roles?
・A security policy that filters the table rows based on the current worker's organization and legal entity assignment
Incorrect. A security policy implements extensible data security (XDS) row-level filtering, not the base grant of read or edit access to the table.
✓A privilege that grants a specific access level on the table-level entry points
Correct. A privilege grants a specific access level (such as Read or Update) to entry points like a table, and privileges are the lowest-level building block assembled into duties and roles.
・A duty that bundles several privileges together for a job function
Incorrect. A duty groups privileges for a function, but you must first define the privileges that carry the access levels before bundling them.
・A role that is assigned directly to the clinical and billing users
Incorrect. A role is assigned to users but is composed of duties and privileges, so the access-level grant still originates from a privilege.
Explanation
In the D365 security hierarchy (roles, duties, privileges, permissions), privileges carry the actual access levels on entry points. Define privileges first, then group them into duties and roles.
Example6 · X++ Programming and Development Concepts
A healthcare services firm needs to add a new method to the standard SalesTable table without overlayering. A developer creates an extension class and marks it so the compiler recognizes it as augmenting the table. Which attribute must decorate the extension class declaration?
✓[ExtensionOf(tableStr(SalesTable))]
Correct. The [ExtensionOf] attribute on a static final class declares it as an augmentation of the named AOT element, enabling new methods without overlayering.
・[SubscribesTo(tableStr(SalesTable))]
Incorrect. [SubscribesTo] wires a method to a delegate; it does not turn a class into an extension of a table.
・[DataEventHandler(tableStr(SalesTable), DataEventType::Inserting)]
Incorrect. [DataEventHandler] registers an event handler method for a table event, not an augmentation of the table itself.
・[FormEventHandler(formStr(SalesTable), FormEventType::Initialized)]
Incorrect. [FormEventHandler] attaches a handler to a form event and cannot add methods to a table.
Explanation
Extension classes that augment AOT elements are declared with the [ExtensionOf] attribute, keeping customizations in extensions rather than overlayering.
Example7 · X++ Programming and Development Concepts
A developer at UrbanThread, an apparel retailer, must add new behavior to the standard SalesTable form without overlayering it, so the customization survives future platform updates. Which X++ approach should the developer use?
✓Create an extension class decorated with the ExtensionOf attribute and add event handler methods to it
Correct. An extension class with the ExtensionOf attribute lets you add methods and chain-of-command logic without modifying the original object, so updates are preserved.
・Edit the base SalesTable class methods directly in the standard model and recompile the package
Incorrect. Editing the base class in the standard model is overlayering, which is deprecated and breaks update compatibility.
・Add a new COC method in a class marked [ExtensionOf(formStr(SalesTable))] that chains the original
Incorrect. ExtensionOf targeting a form string is not how chain of command is applied; COC targets classes with the correct form object reference, not formStr in this manner.
・Duplicate the SalesTable form into a custom model and point the menu item to the copy
Incorrect. Duplicating the form creates maintenance debt and does not extend the original object as required.
Explanation
Extensions via the ExtensionOf attribute are the supported, update-safe way to add behavior without overlayering standard objects.
Example8 · X++ Programming and Development Concepts
UrbanThread needs to run extra validation after the standard insert() method of the InventTable finishes. In a chain of command wrapper method, where must the developer place the call to next insert()?
・Omit the next call entirely so only the custom validation executes during insert
Incorrect. Omitting next in a CoC wrapper is not allowed and prevents the original logic from running.
✓Call next insert() first, then run the custom validation after it returns
Correct. To run validation after the base logic completes, call next insert() first, then execute the custom validation on the returned result.
・Run the custom validation first, then call next insert() at the very end of the method
Incorrect. Running validation before next would execute it before the base insert logic, which is the opposite of the requirement.
・Call next insert() inside a try block and place the validation inside the matching catch block
Incorrect. Placing validation in a catch block only runs it on an exception, not after a successful insert.
Explanation
In chain of command, the position of the next call controls whether custom logic runs before or after the wrapped method; calling next first runs your code afterward.
Example9 · X++ Programming and Development Concepts
A developer at UrbanThread declares a variable to hold a product's base price that must support decimal values in X++. Which primitive data type is most appropriate?
・str
Incorrect. The str type stores text, not numeric values usable for price arithmetic.
✓real
Correct. The real data type stores decimal numbers and is the correct choice for monetary or price values that require fractional precision.
・int
Incorrect. The int type stores whole numbers only and cannot represent decimal price values.
・boolean
Incorrect. The boolean type stores only true or false and cannot hold a price.
Explanation
The real type is X++'s primitive decimal numeric type, appropriate for prices and amounts requiring fractional precision.
Example10 · X++ Programming and Development Concepts
A developer at a financial services firm declares a variable to hold a customer's outstanding loan balance that may include fractional cents and must support decimal precision for reporting. Which X++ primitive data type is the most appropriate choice for this balance field?
・The int data type, since balances in the ledger are internally stored as scaled whole numbers and later divided for display formatting
Incorrect. int stores whole numbers only and cannot represent fractional cents or decimal precision required for a balance.
・The str data type, because currency values are concatenated with symbols before being written to the posting journal
Incorrect. str holds text, not numeric values, and using it for arithmetic on monetary amounts is invalid.
✓The real data type, which stores fixed-decimal values suitable for monetary amounts
Correct. The real data type stores fixed-decimal numeric values and is the standard choice for monetary and balance amounts in X++.
・The utcdatetime data type
Incorrect. utcdatetime represents a date and time value, not a numeric currency amount.
Explanation
Monetary balances require decimal precision, which the real (fixed-decimal) data type provides; int, str, and utcdatetime are unsuitable for currency values.
Example11 · X++ Programming and Development Concepts
In a loan approval routine, a developer must execute different blocks of code depending on an integer risk tier value ranging from 1 to 5, where each tier has distinct handling and some tiers share logic through fall-through. Which X++ control statement is the most idiomatic choice for this requirement?
✓A switch statement evaluating the risk tier, using case labels with intentional fall-through where tiers share logic
Correct. A switch statement with case labels cleanly maps discrete integer values to handlers and supports fall-through for shared logic.
・A series of nested ternary conditional operators that each return the handler name for the matching tier value
Incorrect. Nested ternary operators become unreadable for five branches and do not model fall-through handling well.
・A while loop that increments a counter and compares it against the tier
Incorrect. A while loop is for iteration, not for branching on a discrete value, and would not express tier handling clearly.
・A do-while loop that repeatedly evaluates the tier until the matching handler block has finished executing for that iteration
Incorrect. A do-while loop also expresses iteration, not multi-way branching on a discrete tier value.
Explanation
Branching on a discrete integer value with shared fall-through logic is exactly what a switch statement is designed for; loops and ternary chains are inappropriate.
Example12 · X++ Programming and Development Concepts
At a manufacturing distributor, a developer builds a base class PalletLabel and a derived class HazmatPalletLabel that overrides the printFormat() method. Inside HazmatPalletLabel.printFormat(), the developer needs to run the base class logic first, then append hazard codes. Which X++ keyword invokes the base class implementation of the overridden method?
・Use the this keyword followed by the method name to call the current object's printFormat() implementation directly
Incorrect. Calling this.printFormat() would recursively invoke the derived override itself, causing infinite recursion rather than the base logic.
✓The super() keyword to call the parent class version of printFormat() before adding logic
Correct. super() calls the immediate base class implementation of the overridden method, letting the derived method run parent logic first.
・Reference the base class name explicitly, as in PalletLabel::printFormat(), from within the derived method
Incorrect. X++ does not resolve an overridden instance method through ClassName::methodName() syntax; that form is reserved for static methods.
・The extends keyword placed before the printFormat() call inside the derived method body
Incorrect. extends is a class declaration keyword used only in the class header, not a statement that can call a method.
Explanation
In X++, super() invokes the base class version of the method currently being overridden, which is the standard pattern for augmenting rather than replacing inherited behavior.
Example13 · X++ Programming and Development Concepts
A developer at a distribution warehouse must add a method to the WHSShipment table that validates whether all lines are picked. The method should be callable without first selecting or loading a specific shipment record. Which method type should the developer declare on the table?
・An instance method, because table methods always require an active cursor record to execute their body
Incorrect. Instance table methods operate on a loaded record buffer, which is exactly what the requirement says must not be needed.
・A display method, so the picked status is recalculated automatically each time a form field is refreshed
Incorrect. Display methods return a computed value bound to a form control and are not general-purpose callable validators.
✓A static method on the table, since it can be called on the table type without an existing record buffer
Correct. A static method belongs to the table type itself and can be invoked without a populated record buffer, matching the requirement.
・A table-level trigger method such as validateWrite() that runs during the record write operation
Incorrect. validateWrite() is an instance trigger tied to persisting a specific record, not a standalone callable validator.
Explanation
Static methods are associated with the type rather than a record instance, so they can be called without first fetching a row into a buffer.
Example14 · X++ Programming and Development Concepts
A developer at a telecom operator must add behavior to the standard CustTable form without altering the base Microsoft code, because the modification must survive the next platform update. The base form is sealed for over-layering. Which approach should the developer use to add the logic?
・Over-layer the CustTable form element and modify its methods directly in a custom model layer
Incorrect. Over-layering sealed objects is blocked and is discouraged because it creates upgrade conflicts when Microsoft ships updates.
✓Create a form extension and attach an event handler class to the required form events
Correct. Extensions plus event handlers add behavior without changing the base source, so the customization is preserved across updates.
・Duplicate the CustTable form into a new form object and redirect all menu items to it
Incorrect. Cloning the form and rewiring menu items abandons standard logic and creates a heavy maintenance burden.
・Edit the standard CustTable form object in the Application Foundation model so the change is global
Incorrect. Directly editing a standard object in a Microsoft model is not permitted and breaks the upgrade-safe model.
Explanation
Extensions are the preferred, update-safe customization pattern; over-layering standard sealed objects is blocked and editing Microsoft models directly is not allowed.
Example15 · X++ Programming and Development Concepts
In a telecom billing extension, a developer wraps a public method named calculateCharge on a standard class using Chain of Command. The developer needs the standard logic to run and then wants to adjust the returned amount. What must the wrapper method include?
・A declaration marked with the final keyword and no call to the inherited implementation at all
Incorrect. Omitting the next call is a compile error in Chain of Command because the base method must be invoked.
・A replacement of the entire original method body so that the base calculation is skipped
Incorrect. Replacing the whole body defeats the purpose of CoC and still requires the next call to compile.
✓A call to next calculateCharge() before reading and modifying the returned value
Correct. Calling next captures the base result, which the wrapper can then adjust before returning it.
・A COC attribute placed on the class only, with the method left completely empty
Incorrect. The attribute belongs on the extension class, but the method must still call next to be valid.
Explanation
Chain of Command requires every wrapper to call next on the wrapped method; the result can then be read and modified before returning.
▶ Try 10 free questions (graded)
Measure your readiness with a full mock exam
All questions · full explanations · lifetime access
Enroll(33 USD)