MB-820 Online Practice Questions

Home / Microsoft / MB-820

Latest MB-820 Exam Practice Questions

The practice questions for MB-820 exam was last updated on 2025-07-19 .

Viewing page 1 out of 8 pages.

Viewing questions 1 out of 42 questions.

Question#1

A company plans to optimize its permission sets.
The company has the following permission sets:



You need to provide the following implementation for a third permission set:
• Create a new Permission Set C that is a composite of Permission Set A and Permission Set B.
• Assign Permission Set C to a user.
You need to ensure that the user has only read access to the Job table.
Solution: Set the IncludedPermissionSets property to Permission Set A and the ExcludedPermissionSets property to Permission Set B.
Does the solution meet the goal?

A. Yes
B. No

Question#2

HOTSPOT
You are developing a codeunit for a company that uses Business Central.
The code unit must be run only during installation of an extension package.
You need to create the codeunit.
How should you complete the code' To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.


A. 

Explanation:
Subtype: Install
Trigger: OnInstallAppPerCompany
You are developing a codeunit that should only run during the installation of an extension package.
Options:
Subtype: The correct subtype is Install, as it indicates that the codeunit runs only when the extension is being installed.
Trigger: The correct trigger for running during installation is OnInstallAppPerCompany, which handles code execution when the app is installed for a specific company.

Question#3

A company plans to optimize its permission sets.
The company has the following permission sets:



You need to provide the following implementation for a third permission set:
• Create a new Permission Set C that is a composite of Permission Set A and Permission Set B.
• Assign Permission Set C to a user.
You need to ensure that the user has only read access to the Job table.
Solution: Set the IncludedPermissionSets property to Permission Set B and the ExcludedPermissionSets property to Permission Set A.
Does the solution meet the goal?
A. Yes
B. No

A. B

Question#4

You plan to write unit test functions to test newly developed functionality in an app.
You must create a test codeunit to write the functions.
You need to select the property to use for the test codeunit.
Which property should you use to ensure that the requirements are fulfilled?

A. SubType
B. Access
C. Description

Explanation:
When creating a test codeunit in Microsoft Dynamics 365 Business Central to write unit test functions, the SubType property (A) of the codeunit should be set to Test. This property is crucial for defining the codeunit's purpose and behavior within the application. By setting the SubType property to Test, you are indicating that the codeunit contains test functions intended to validate the functionality of other parts of the application, such as customizations or new developments. This distinction ensures that the testing framework within Business Central recognizes the codeunit as a container for test functions, allowing it to execute these functions in a testing context, which can include setting up test data, running the tests, and cleaning up after the tests have completed.

Question#5

DRAG DROP
You develop a table named Contoso Setup and a page.
You plan to use No. Series to automatically assign a unique number to data entries. You set up No.
Series on the Vendor Nos. field of the Contoso Setup table.
You need to apply the No. Series Design Pattern to the trigger Onlnsert().
Which four code segments should you use to develop the solution? To answer, move the appropriate code segments from the list of code segments to the answer area and arrange them in the correct order.


A. 

Explanation:
To properly apply the No. Series Design Pattern in the OnInsert() trigger, the correct sequence of actions should be as follows:
ContosoSetup.Get();
First, retrieve the Contoso Setup record using the Get method. This ensures that the necessary setup information is available, including the No. Series.
if "No." = '' then begin
Next, check if the No. field is empty. If it is, a new number from the No. Series should be assigned.
NoSeriesManagement.InitSeries(ContosoSetup."Vendor Nos.", "No. Series", 0D, "No.", "No. Series");
Call the InitSeries function to assign a new number from the No. Series. This initializes the No. Series for the Vendor Nos. field.
ContosoSetup.TestField("Vendor Nos.");
Lastly, ensure that the Vendor Nos. field is populated and valid by calling TestField.
Correct Order for Code Segments:
ContosoSetup.Get();
if "No." = '' then begin
NoSeriesManagement.InitSeries(ContosoSetup."Vendor Nos.", "No. Series", 0D, "No.", "No. Series"); ContosoSetup.TestField("Vendor Nos.");

Exam Code: MB-820Q & A: 113 Q&AsUpdated:  2025-07-19

 Get All MB-820 Q&As