MB-820
Exam Name: Microsoft Dynamics 365 Business Central
Developer
Full version: 99 Q&As
Full version of MB-820 Dumps
Share some MB-820 exam dumps below.
1. HOTSPOT
A developer creates a profile for part-time shop supervisors and adds customizations.
You plan to add new requirements to the profile.
You need to analyze the code to understand the profile and make sure there are no 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.
Answer:
Explanation:
The Part Time Shop Supervisor profile will be applied only to users with "Register Time" = true
on User Setup: No
Variables, procedures, and triggers cannot be added on page customization objects: Yes
Line 10 should use extends instead of customizes: No
In line 18, "Unit Cost" will be moved after "Costing Method": Yes
The Part Time Shop Supervisor profile will be applied only to users with "Register Time" = true
on User Setup.
No
The code doesn't contain any reference to the User Setup table or the Register Time field, so
this is not correct. Profiles are not applied conditionally based on fields like this.
Variables, procedures, and triggers cannot be added on page customization objects.
Yes
Page customization objects are meant for UI modifications, such as moving or hiding fields. You
cannot add variables, procedures, or triggers in a page customization object.
Line 10 should use extends instead of customizes. No
In AL, when customizing a page within a profile, you use customizes rather than extends.
Extends is used when modifying base application objects, but customizes is used to customize
pages within a profile.
In line 18, "Unit Cost" will be moved after "Costing Method".
Yes
The code in line 18 is correct. The moveafter directive will move the "Unit Cost" field after the
"Costing Method" field on the page layout.
2. HOTSPOT
You need to write an Upgrade codeunit and use the DataTransfer object to handle the data
upgrade.
Which solution should you use for each requirement? To answer, select the appropriate options
in the answer area. NOTE: Each correct selection is worth one point.
Answer:
Explanation:
Upgrade codeunit trigger: OnValidateUpgradePerDatabase
Since the question specifies that you are handling data upgrades, and you need to use
validation before upgrading at the database level, the correct choice is
OnValidateUpgradePerDatabase. This method ensures that the upgrade process is validated
before applying to the entire database, making it more efficient when data affects multiple
companies or structures. DataTransfer method to use: CopyRows
CopyRows is the appropriate method when you are handling large data transfers between
tables, especially in an upgrade scenario where you are migrating or transferring data from one
table to another. It copies entire rows of data and is optimal for bulk data operations during
upgrades.
3. HOTSPOT
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.
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;
}
4. A company has a Business Central online environment.
You are exporting a file from a client by using the DownloadFromStream method.
You need to create an InStream data type to send the data
Which solution should you use?
A. Use OeatelnStream method from codeunit "Temp Blob".
B. Use OeatelnStream method for BLOB field of "TempBlob" table.
C. Use CreatelnStream method for File type variable.
Answer: A
Explanation:
When exporting a file from a client using the DownloadFromStream method in a Business
Central online environment, you need to create an InStream data type to send the data. The
solution is to use the CreateInStream method from codeunit "Temp Blob" (A). The Temp Blob
codeunit provides temporary storage of BLOBs (Binary Large Objects) and is commonly used
for handling files and streams in Business Central. By using the CreateInStream method on a
Temp Blob, you create an InStream that can then be used with the DownloadFromStream
method to send the file data to the client. This approach is efficient for file handling and transfer
in Business Central, especially in scenarios involving data export or file manipulation.
5. A company has a task that is performed infrequently. Users often need to look up the
procedure to complete the task.
The company requires a wizard that leads users through a sequence of steps to complete the
task.
You need to create the page to enable the wizard creation.
Which page type should you use?
A. NavigatePage
B. Card
C. RoleCenter
D. List
Answer: A
Explanation:
For a task that is performed infrequently and requires users to follow a sequence of steps, a
wizard-like interface is ideal. In Microsoft Dynamics 365 Business Central, the NavigatePage
page type (A) is best suited for this purpose. NavigatePage is designed to guide users through
a series of steps or pages, allowing them to complete a task by making choices or entering data
in a structured manner. This page type is often used for setup wizards, data migration tasks, or
any other process that benefits from a step-by-step approach. Unlike the other page types like
Card (B), RoleCenter (C), or List (D), NavigatePage specifically supports the navigation and
decision-making flow required for wizard creation, making it the optimal choice for this
requirement.
6. You need to allow debugging in an extension to view the source code.
In which file should you specify the value of the allowDebugging property?
A. settings.json
B. rad.json
C. app.json
D. launchjson
Answer: C
Explanation:
To enable debugging in an extension and allow the source code to be viewed, the
allowDebugging property should be specified in the app.json file (C). The app.json file serves as
the manifest for an AL project in Microsoft Dynamics 365 Business Central, defining the
project's properties, dependencies, and features. By setting the allowDebugging property to true
in this file, developers enable the debugging of the extension's source code, facilitating
troubleshooting and development. This is essential for analyzing the behavior of the extension
and identifying issues during the development process.
7. DRAG DROP
A company uses four objects in development in Business Central.
The company plans to make changes to the objects.
You need to identify the application layer for each object in Visual Studio Code.
Which objects ate available in each application layer? To answer, move the appropriate
application layer to the correct objects You may use each application layer 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.
Answer:
Explanation:
Language table ? System layer
Activities Cue table ? Base layer
Extension Management codeunit ? System layer
Business Unit Card page ? Base layer
Application Layers in Business Central:
In Business Central, there are different layers such as Base and System, which represent
different
levels of the application architecture. Here's a breakdown of where each object is likely to
belong
based on typical Business Central architecture:
Language Table:
This table typically belongs to the System layer, as language and localization features are often
part
of the foundational aspects of the system.
Activities Cue Table:
This would likely be found in the Base layer because it involves business logic that supports
user interface elements (like activity cues) specific to the Business Central application.
Extension Management Codeunit:
The Extension Management Codeunit likely belongs to the System layer, as it deals with
handling extensions, which is closely related to the core system functionality for managing and
deploying changes.
Business Unit Card Page:
This object would typically be part of the Base layer, as it is a business-specific object that
handles the user interface for business unit data, part of the core Business Central application.
8. You ate creating a test codeumt for a company that uses Business Central.
The company requites the following list of choices while posting a sales order:
• Ship
• Invoice
• Ship & Invoice
You must create a test codeunit that automatically selects one of these options. You need to
create the test codeunit.
Which handler should you use?
A. SessionSettings Handle'
B. SendNotificationHandler
C. Recall Notification Hand let
D. StrMenuHandler
Answer: D
Explanation:
StrMenuHandler is used to simulate the selection of an option from a string-based menu, such
as the "Ship," "Invoice," or "Ship & Invoice" options when posting a sales order. This handler
allows you to programmatically select an option during automated testing.
Other handlers, such as SessionSettingsHandler or SendNotificationHandler, do not simulate
the selection of menu choices, which is specifically required in this scenario.
For more details on StrMenuHandler and how it simulates user interaction with menu choices,
refer to the Test Handlers in Business Central.
9. HOTSPOT
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.
Answer:
Explanation:
To correctly write the code to call the subcontractor's REST API, you would need to set the
Authorization header with the base64 encoded username and password for basic
authentication. The code segment indicates the use of the Base64Convert codeunit to convert
the username and password to base64 format, which is then prefixed with "Basic " to form the
proper Authorization header value.
The correct method to add the Authorization header to the RequestHeaders would be:
RequestHeaders.Add('Authorization', 'Basic ' + Base64Convert.ToBase64(Username + ':' +
Password));
And the correct method to set the httpContent with the body of the request would be:
httpContent.WriteFrom(Body);
These are the necessary steps to form a well-structured HTTP request for basic authentication
and to include the body of the request in the API call.
10. HOTSPOT
You plan to create a table to hold client data.
You have the following data integrity requirements:
• Lookups into other records must be established.
• Validate if a record exists in a destination record.
You need to select the table field property to use for each requirement.
Which table field property should you use? To answer, select the appropriate options in the
answer area. NOTE: Each correct selection is worth one point.
Answer:
Explanation:
For the data integrity requirements, the table field properties to use are:
To establish lookups into other records, use the TableRelation property.
To validate if a record exists in a destination record, use the ValidateTableRelation property.
In Business Central, when creating tables to hold data, maintaining data integrity is crucial:
TableRelation Property:
This property is used to create a relationship between the field in one table and a field in
another table, which is typically used for lookups. When you set the TableRelation property on a
field, it allows users to select from a list of values that exist in the related table.
ValidateTableRelation Property:
This property is used to ensure that the value entered in a field matches one of the values in a
related table. If a user tries to enter a value that doesn't exist in the related table, an error will
occur.
11. A company has an on-premises Business Central instance named TEST The instance uses
Windows authorization and a developer services port of 7149 Visual Studio Code is installed on
the same server.
You create a new AL project but cannot download the symbols.
The launch json file contains the following code:
You need to download the symbols.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
A. Change the server Instance parameter to TEST
B. Add the port: 7149 parameter.
C. Change the name parameter to TEST.
D. Change the authentication parameter to UserPassword.
E. Check which server the instance is installed on and replace http//localhost with the correct IP
address.
Answer: AB
Explanation:
You are working on an on-premises Business Central instance and unable to download symbols
for a new AL project. The current configuration in launch.json does not allow you to download
symbols, and you need to make corrections.
Key Points in the Scenario:
Instance name is TEST.
Developer services port is 7149.
Windows authentication is being used.
Correct Answers:
A. Change the server Instance parameter to TEST.
The server Instance parameter must match the name of the Business Central instance, which is
TEST in this scenario. You need to modify this to reflect the correct instance name.
B. Add the port: 7149 parameter.
Since the developer services are using port 7149, you need to specify this in the launch.json file
by adding the port parameter with the value 7149.
Incorrect Options:
C. Change the name parameter to TEST: The name parameter is just a label and does not
affect downloading symbols, so changing this won't help.
D. Change the authentication parameter to UserPassword: The authentication method is
already set to Windows, which is valid for this scenario. Changing it to UserPassword is
unnecessary unless
specified by the system.
E. Check which server the instance is installed on and replace http://localhost with the correct IP
address: Since the server is on the same machine as Visual Studio Code (as specified),
localhost is correct.
12. HOTSPOT
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.
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.
13. DRAG DROP
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.
Answer:
Explanation:
Each JSON file has its own purpose in Business Central extensions:
app.json
Purpose: This file holds metadata about the application and contains configuration settings for
dependencies and startup object information.
Startup object type and object ID should be configured here.
launch.json
Purpose: This file defines how to run and debug the application during development.
Runtime settings are configured here.
Final Answer (Drag and Drop):
Startup object type and object ID ? app.json
Runtime ? launch.json
Dependencies ? app.json
14. HOTSPOT
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.
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.
15. Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear on the review screen.
A company creates a Business Central app and a table named MyTable to store records when
sales orders are posted.
Users report the following issues:
• The users receive permission errors related to MyTable.
• Users are no longer able to post sales orders since installing the new app.
• The users cannot access the list page created in MyTable.
You need to resolve the user issues without creating new permission sets. You must use the
principle of least privilege.
Solution: Assign a SUPER permission set.
Does the solution meet the goal?
A. Yes
B. No
Answer: B
Explanation:
Assigning a SUPER permission set to all users would indeed resolve the permission errors and
access issues reported by the users, as it grants full permissions across all objects and data in
Business Central. However, this approach contradicts the principle of least privilege, which
advocates for providing only the minimum levels of access necessary for users to perform their
jobs. The SUPER permission set would excessively elevate user privileges, potentially leading
to security risks and unintended modifications to critical data. Therefore, while assigning the
SUPER permission set might technically resolve the immediate issues, it does not meet the goal
of adhering to the principle of least privilege and is not a recommended solution.
More Hot Exams are available.
350-401 ENCOR Exam Dumps
350-801 CLCOR Exam Dumps
200-301 CCNA Exam Dumps
Powered by TCPDF (www.tcpdf.org)