Microsoft Dynamics 365 Business Central Developer - MB-820 Exam Practice Test

You create a table with fields.
You observe errors in the code
You need to resolve the errors.

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Correct Answer:

Explanation:
* In line 12, declare "Job Task" as a variable. = NO
* Add the property FieldClass = FlowField; for field 3. = YES
* Add the property FieldClass = FlowFilter; for field 3. = NO
* In line 23, assign the "User Setup" table to a field. = YES
For "In line 12, declare 'Job Task' as a variable": In the AL code provided, the "Job Task" appears to be part of a CalcFormula of a FlowField, which means it references a table and not a variable. The "Job Task" does not need to be declared as a variable because it is used to reference a table in a CalcFormula expression.
For "Add the property FieldClass = FlowField; for field 3": The line of code CalcFormula = sum("Job Task
"."Recognized Sales Amount" where("Job No." = field("No."))); indicates that this field is calculated from other table data, which is the definition of a FlowField. Therefore, adding the property FieldClass = FlowField; is necessary for the field to function correctly.
For "Add the property FieldClass = FlowFilter; for field 3": FlowFilters are used to filter data based on the value in a flow field. Since field 3 is using a CalcFormula to sum values, it is a FlowField and not a FlowFilter. Therefore, this statement is not correct.
For "In line 23, assign the 'User Setup' table to a field": The line TableRelation = "User Setup"; suggests that the "Project Manager" field has a relation to the "User Setup" table, which is a method of assigning a table to a field to ensure that the values in "Project Manager" correspond to values in the "User Setup" table.
Hence, this statement is true.
You need to create the codeunit to read the POS terminal APIs.
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.
Correct Answer:

Explanation:

codeunit 52102 "POS API Management"
{
Access = Public;
Permissions = TableData "POS Information" = rwdx;
trigger OnRun()
begin
readAPI();
end;
procedure readAPI()
begin
// Your code here to read from the POS API
end;
}
You are customizing Business Central by using Visual Studio Code. You create a project that will extend Business Central. The AL extension contains JSON files, which are automatically generated and are used to store configuration data For testing purposes, you plan to add the following changes to the files:
* Specify that page 21 must be opened after publishing.
* Enable debugging
* Disable the capability to download the source code
You need to add the configurations to the JSON files.
Which two configurations should you add? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
Correct Answer: A,C
Explanation: Only visible for ExamsLabs members. You can sign-up / login (it's free).
You need to create the configuration table and page for the non-conformity functionality.
Which table configurations should you use? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point
Correct Answer:

Explanation:
Design pattern for the setup table:
* The correct selection here is Adapter. The Adapter design pattern is commonly used when you need to handle integration points or create a setup table that acts as an intermediary for data manipulation, which fits the requirement for the configuration of the non-conformity functionality.
Data type of the primary key field:
* The correct data type is Code. In Business Central, when creating a table with a primary key field, the Code data type is typically used for fields such as document numbers, codes, and identifiers. For a setup table, a Code field is appropriate for keys like "No." series or setup identifiers.
Property required to prevent users from adding records:
* The correct property is InitValue. This property is used to set initial values for fields and can be configured in such a way that users are prevented from adding records directly, typically enforcing control over record creation and editing in configuration scenarios.
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?
Correct Answer: A
A company is deploying Business Central on-premises.
The company plans to use a single-tenant deployment architecture.
You need to describe how the data is stored and how the Business Central Server is configured.
In which two ways should you describe the single-tenant architecture? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
Correct Answer: B,E
Explanation: Only visible for ExamsLabs members. You can sign-up / login (it's free).
You need to determine why the debugger does not start correctly.
What is the cause of the problem?
Correct Answer: B
Explanation: Only visible for ExamsLabs members. You can sign-up / login (it's free).
You need to write the code to call the subcontractor's REST API.
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.
Correct Answer:

Explanation:

Topic 2, Case Study Alpine Ski House
Alpine Ski House is a company that owns and operates hotels, restaurants, and stores. Currently, the company uses the following software and interlace:
* Property management software (PMS) to manage hotel rooms
* On-premises accounting software to generate sales invoices and create purchase orders
* An API that allows restaurants and stores to obtain necessary information Restaurants and stores use standalone software for point of sale (POS) devices. Each day, the POS terminals generate a text file of sales data and save the files in a serval folder. An account assistant must manually import the files to the current software tables to be processed by the system.
The general manager receives several reports monthly from department managers. The reports take too much time to prepare.
The company is moving from a different system to Business Central online to manage the whole company.
The company plans to increase efficiency in every department by using APIs to obtain or share information between the different systems.
Each department involved in purchasing must be able to make purchase requests automatically and easily.
The departments do not need access to the full ERP management system.
Alpine Ski House requires the development of several extensions for the planned improvements. Business Central design patterns must be used to develop all extensions.
Alpine Ski House must develop the following pages:
* Pages that provide multiple configurations in a multistep dialog, like a wizard, to provide required information when the extensions are first installed
* Department-specific Role Center pages to show relevant information and pages with additional information The IT department plans to use Power 61 to analyze departmental information. The database must be configured to provide optimal performance.
The housekeeping department requires the following to increase efficiency and help avoid data entry errors:
* A Housekeeping Role Center to minimize navigation to relevant areas In Business Central online and to show relevant information in it
* Pages to embed into a new Room page to show additional information about the Room entity
* A table named Room Incident for the housekeeping team to enter room issue information
* A Housekeeping canvas app that connects to an extension
The department requires the development of an extension with a new API page named RoomsAPI.
* The housekeeping team will use RoomsAPI to publish room details, update when work is complete, or provide repair notifications from the canvas app.
* This custom API page must expose a custom table named Rooms and have an ID 50000. The table must be able to update from the PMS. The PMS team must know the end to connect to the custom API.
* A developer provides the following details for the API page:
APIPublisher = 'alpine';
APIGroup - 'integration';
APIVersion - 'v2.6';
fntityName # 'room';
EntitySetName = 'rooms';
* The extension must be published in Business Central online and include a list page named Room List that includes all hotel rooms.
* Installation or updates to this extension must meet the following requirements:
o Some web services must be published automatically.
o The version of the specified application's metadata must be obtained in AL language.
o The code required to perform tasks cannot be accessible from other parts of the application.
The Room Incident table information must include the following fields:
* Incident entry: An incremental number
* Room No.: A room from the Room table
* Incident Date: The work date
o The table definition in the Room Incident table must autofill the Incident Date when the housekeeping team inserts a new record, o The value for Incident Date must be the work date configured in the Business Central online client.
* Status: Includes the following options lo identify the status of the incident:
o Open: When the Room Incident is created
o In Progress: When someone starts repair work
o Closed: When the incident is solved
* Incident Closing Date: Auto-updating field (when the status passes to Closed, the field will update with the work date)
* Incident Description: Text
* Image. Media data type
o The stored picture must be downloadable from a menu action.
o A Room Incident page must be developed to contain the download action.
To increase efficiency, the new system must manage the generated data from the restaurants and stores directly by using the API on the POS terminals.
* The company requires a code unit called from a job queue to read the information from the POS terminal APIs.
* The POS terminal information must be stored in a table named POS Information, have an ID 50100. and be editable on a page.
* The account manager requires an option on the menu of the page to run the process manually.
To analyze the information received from the POS terminals, the company requires:
* A custom API named ticketAPI to export the information to Power BI
* Use of the Read Scale-Out feature to improve database performance
The purchasing department requites a new entity in Business Central online to log non-conformities of goods received from vendors. The entity must be set up as follows:
* The non-conformity entity must have two tables:
o a header with common information
o one or more lines with the detailed received items that are non-conforming
* The entity requires a page named Non-conformity and a subpage named Non-Conformity Lines to store the information.
When a purchase order with incorrect quantity 01 quality issues is received, the entity must create a non- conformity document in the system. The following information must be nick the document:
* Non-conformity Number: must use the No. Series table from Business Central online to manage this field and use these features:
o Alphanumeric values
o Number format that includes "NO and the year as part of the number: for example, NC24-001
* Non-conformity Date: stores only the creation date
* Vendor No.: stores the number of the vendor that sent the items; only vendors from the company must be included
* Owner: code of an employee defined in the company
* Receipt No.: must meet the following conditions:
o Be an existing receipt No.
o Be received from the vendor indicated in the Vendor No. field
* Comments: can include comments with rich text and pictures to illustrate quality problems
* Status: includes nonconformity statuses, such as:
o Open
o Notified
o Closed
* Lines must contain the following details:
o Item No.: item received (for existing inventory items only)
o Description: item description
0 Quantity: non-conforming quantity
0 Non-conformity Type:
# Quality
# Quantity
# Delivery date
The serial numbers of the non-conformities and the period in which they can be created must be in a configuration table and its corresponding page to allow them to be modified for the users.
A company uses Azure Application Insights for Business Central online in its production environment.
A user observes that some job queues go into the failed state and require manual intervention.
You need to analyze job queue lifecycle telemetry.
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.
Correct Answer:

Explanation:

KQL Code Segment:
* First command (traces):
* The query begins with traces to analyze telemetry data logs. The next command determines how the results are filtered or displayed.
* take 100: This is the correct option to retrieve the top 100 rows from the traces table.
* Command for selecting fields:
* project: This command is used to select specific fields from the telemetry data, allowing you to retrieve and display only the fields relevant to the job queue telemetry.
* The correct answer is project, as it allows you to choose fields like jobQueueObjectId, jobQueueObjectType, etc., from the customDimensions table.
You are treating an app tor Business Central.
You plan to specify the following parameters and properties of the server and app.
* Startup object type and object ID
* Runtime
* Dependencies
You need to configure the JSON file for the specified parameters and properties Which JSON files should you configure? To answer, move the appropriate files to the correct object purposes You may use each file once, more than once, or not at all You may need to move the split bar between panes or scroll to view content NOTE Each correct selection is worth one point.
Correct Answer:

Explanation: