Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free Microsoft Dynamics 365 Business Central Developer MB-820 Exam Questions

Last updated: · 11 practice questions with answers and explanations

Page: 1 / 13 Total 122 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Describe Business Central

Skill tested: Distinguishes the system app from the base application when assessing extension dependencies.

A partner is designing an AppSource extension that adds specialized fulfillment functionality to Business Central. The extension uses standard customer and sales document tables, but the team wants to keep dependencies as small as possible and avoid depending on implementation details that belong to the platform. They are reviewing the application architecture before finalizing the app manifest. Which dependency decision best reflects the roles of the Business Central system app and base application?

Correct Answer: A. Depend on the system app for platform-level functionality and on the base application for standard business functionality used by the extension.
Explanation:

The system app provides platform-level functionality, while the base application contains the standard Business Central business functionality, including commonly used application tables and processes. An extension that integrates with standard sales and customer functionality needs an appropriate dependency on the base application; platform functionality is provided through the system app. Depending only on the system app does not provide the base application's business objects, and the base application does not replace the system app. Extensions also need appropriate declared dependencies rather than assuming all objects are available implicitly.

Question 2

New Single answer

Topic: Install, develop, and deploy for Business Central

Skill tested: Configures AL project dependencies and target platforms for a multi-extension workspace.

A development team maintains two AL projects in one Visual Studio Code workspace. Project Core publishes a table extension and a codeunit; project Operations consumes both. The developers deploy Core to a sandbox, but Operations reports unresolved symbols even though both projects compile when opened separately with locally downloaded symbols. The team wants a repeatable workspace setup that builds against the published Core app and does not accidentally target a different runtime. What should they do next?

Correct Answer: B. Set Operations' app.json dependency to Core's published app identity and version, then download symbols from the target sandbox.
Explanation:

An AL project that consumes objects from another extension must declare that extension in its app.json dependencies, using the published app identity and a compatible version. Downloading symbols from the target environment supplies the compiled metadata that the AL compiler needs. Copying source code would defeat extension boundaries and can create ownership conflicts. launch.json controls debugging and launch behavior, not compile-time symbol resolution. Raising the runtime version does not locate or substitute for a missing dependency.

Question 3

New Multiple answers

Topic: Develop by using AL objects

Skill tested: Applies XMLport configuration for delimited import and export with explicit field mapping.

A retailer must exchange product data with a supplier using a UTF-8 comma-delimited file. The first row contains column names, fields can contain quoted commas, and the import must create or update item records. The same XMLport will later be used to export the accepted data. The partner requires a flat file rather than an XML document, and the team wants AL code to control the import/export operation. Which two design decisions are appropriate? Select two.

Correct Answer: A. Configure the XMLport dataitem and fields against the Item table, with the required direction and field mapping.; C. Set the XMLport format to VariableText and configure the field separator and text qualifier to match the supplier's file.
Explanation:

VariableText XMLports are suited to delimited text, where the field separator and text qualifier define how values - including quoted commas - are parsed. Mapping XMLport dataitems and fields to Item fields provides the data structure for import and export; AL code can invoke the XMLport and implement the required record handling. Xml format is for XML rather than the specified flat file. FixedText uses fixed-width positions, not inferred comma-delimited columns. A request page can collect user input but does not itself implement record creation and update logic.

Question 4

New Single answer

Topic: Develop by using AL objects

Skill tested: Selects the correct report trigger for populating a calculated dataset value.

A sales analysis report includes a temporary buffer dataitem that groups posted invoice lines by customer and month. For each buffer row, the report must calculate a margin percentage from aggregated amounts and display it in the dataset. The calculation depends on the current buffer record and must be performed as each row is read. The report is not intended to update database records. Which implementation is most appropriate?

Correct Answer: A. Calculate the value in the report dataitem's OnAfterGetRecord trigger and expose it through a report column.
Explanation:

OnAfterGetRecord runs for each retrieved dataitem record, making it the appropriate place to calculate a value that depends on the current buffer row. A report column can then expose that calculated variable to the report dataset without modifying persisted records. OnPreDataItem runs before iteration, so it does not naturally provide each row's values. OnPostReport runs after dataset processing and cannot populate a per-row column at that point. A table OnModify trigger is unrelated to read-only report calculation and would introduce unintended data changes.

Question 5

New Multiple answers

Topic: Develop by using AL objects

Skill tested: Uses installation and upgrade codeunits to initialize and migrate extension data safely.

A Business Central extension is already installed at customer sites. Version 2 introduces a new configuration table that must be initialized for new installations. It also renames a stored field conceptually: existing values in the old field must be preserved in a new field during a version upgrade, without asking users to reinstall. The team needs a lifecycle design that supports both clean installation and controlled migration. Which two actions should it take? Select two.

Correct Answer: A. Use an Upgrade codeunit to transfer existing values during the version upgrade.; E. Use an Install codeunit to create the initial configuration for a new installation.
Explanation:

Install codeunits are intended for initialization associated with a new installation. Upgrade codeunits provide controlled upgrade logic when an installed extension moves between versions, making them the appropriate mechanism to preserve and migrate existing data. A page trigger would run in a user-interaction path, could repeat, and is not a reliable application lifecycle migration mechanism. Reinstalling risks data loss and is unnecessary for a supported upgrade. Report request pages have no role in extension schema migration.

Question 6

New Single answer

Topic: Develop by using AL objects

Skill tested: Uses AL interfaces to decouple interchangeable business-rule implementations.

A distributor's extension calculates an environmental surcharge for posted sales documents. The calculation differs by jurisdiction, and new jurisdictions are added frequently. The posting code should call one stable contract, while separate implementations supply the jurisdiction-specific calculation. The team wants to avoid a growing set of hard-coded branches in the posting subscriber and to make implementations replaceable without changing the consumer. Which AL design best meets this requirement?

Correct Answer: B. Define an AL interface for surcharge calculation and provide separate codeunits that implement it.
Explanation:

An AL interface defines a stable contract that different codeunits can implement, allowing the consumer to depend on the required behavior rather than on jurisdiction-specific implementation details. This supports replaceable implementations and reduces branching in posting logic. Table fields do not provide a clean polymorphic calculation contract, and OnModify is an unsuitable place for posting calculations. Copying posting code duplicates critical logic. Multiple subscribers modifying the same value can produce order-dependent or conflicting results rather than a controlled implementation choice.

Question 7

New Single answer

Topic: Develop by using AL objects

Skill tested: Uses permission set extension objects to grant least-privilege access to new objects.

A publisher adds a table and a page to an existing Business Central extension. Customers already assign the publisher's permission set to warehouse staff, and the publisher wants those users to access the new page and its underlying table without replacing the permission set customers already use. The publisher also wants to avoid granting broad SUPER access. Which approach is most appropriate?

Correct Answer: C. Create a permission set extension that adds the required object permissions to the existing permission set.
Explanation:

A permission set extension can augment an existing permission set with permissions for objects introduced by an extension, preserving the customer's established role assignment while applying least privilege. SUPER would grant far more access than required. Entitlements govern access to applications and licensing-related eligibility; they are not a substitute for granting object permissions to ordinary users. Public object accessibility affects AL symbol visibility and does not bypass Business Central runtime authorization.

Question 8

New Single answer

Topic: Develop by using AL

Skill tested: Implements an onboarding checklist using Business Central assisted setup patterns.

A company ships an extension with several first-run configuration steps. Administrators must be able to revisit the setup later, see which tasks remain incomplete, and launch each task from a central onboarding experience. The team wants to use Business Central's established assisted-setup and onboarding mechanisms rather than build a custom dashboard. Which design is the best fit?

Correct Answer: C. Register the setup experience through assisted setup and expose the relevant tasks through an onboarding checklist.
Explanation:

Assisted setup provides a discoverable entry point for guided configuration, while an onboarding checklist can present relevant tasks and their completion state to users. This matches the need to launch setup tasks centrally and revisit incomplete steps. A Role Center part could be custom-built, but it bypasses the established setup experience requested. Teaching tips guide users through UI elements; they are not a task-completion tracking system. Profiles customize role-oriented UI rather than represent individual setup tasks.

Question 9

New Multiple answers

Topic: Work with development tools

Skill tested: Builds automated AL tests using test codeunits and test procedures for repeatable validation.

A development team wants repeatable automated validation for an extension's pricing rules in a Business Central sandbox. The tests must run without relying on a developer manually opening pages, and the team needs to use the Business Central test framework conventions so test results can be analyzed consistently. They already have a test app and access to the Test Toolkit. Which two practices best support this goal? Select two.

Correct Answer: A. Create test codeunits with test procedures that exercise the pricing behavior and assert expected results.; C. Run the tests through the Test Runner using the installed test framework and relevant test libraries.
Explanation:

Business Central automated tests are implemented as test codeunits containing test procedures, with assertions that verify expected outcomes. The Test Runner and installed test framework execute these tests and report results in a consistent manner. A page trigger is ordinary application behavior, not a repeatable test harness, and successful rendering does not validate pricing rules. A report layout only formats output and cannot replace AL test execution. Removing assertions defeats the purpose of testing because failures would not be detected.

Question 10

New Single answer

Topic: Work with development tools

Skill tested: Correlates custom AL telemetry signals with extension operations for production diagnosis.

After deploying a new extension version, a support team sees intermittent failures in an external pricing calculation. Existing platform telemetry shows requests to the service, but it does not identify which extension operation or business document produced each failure. The team needs production diagnostics that can be correlated with extension behavior while avoiding logging sensitive customer payloads. What should the developers do?

Correct Answer: D. Emit custom telemetry signals from the relevant AL error and operation paths, including safe correlation dimensions.
Explanation:

Custom telemetry signals let an extension add diagnostic context to operational telemetry, such as the relevant operation and safe correlation identifiers. This helps investigators relate failures to extension behavior without exposing sensitive payloads. Logging full customer request and response bodies creates unnecessary data-protection risk and is not required for correlation. Teaching tips are UI assistance, not production monitoring. A scheduled scan of posted documents is delayed, potentially intrusive, and does not capture the failing call's runtime context.

Question 11

New Multiple answers

Topic: Integrate Business Central with other applications

Skill tested: Calls external REST services from AL using HTTP classes and parses JSON responses.

A Business Central extension must call a supplier's HTTPS REST endpoint, send a JSON request, and read a JSON response. The endpoint may return an HTTP error status with a JSON error body. The extension must not assume every response is successful, and it must avoid leaving HTTP resources undisposed. Which two implementation practices are appropriate? Select two.

Correct Answer: B. Read the response body as JSON using AL JSON types, including when handling an error response where a body is provided.; D. Use AL HTTP request, content, and client objects to construct and send the request, and inspect the response status before treating it as successful.
Explanation:

AL's HTTP types are used to construct and send REST requests and obtain an HttpResponseMessage. A transport-level send result does not replace checking the HTTP status code: an HTTP error response can still be a received response. When the service supplies a JSON body, AL JSON types can parse it for success or error handling. XMLports handle XML or text data structures, not automatic JSON property inference. The response body comes from the response message, not the request body.