ExamGecko
Home Home / Microsoft / MB-820

Microsoft MB-820 Practice Test - Questions Answers, Page 8

Question list
Search
Search

List of questions

Search

Related questions











HOTSPOT

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


Question 71
Correct answer: Question 71

HOTSPOT

You need to populate the Incident Date and Status fields in the Room Incident table.

Which instructions or trigger should you use? To answer, select the appropriate options in the answer area

NOTE: Each correct selection is worth one point


Question 72
Correct answer: Question 72

You need to create the access modifier for IssueTotal.

Which variable declaration should you use?

A.

Protected vat IssueTotal: Decimal

A.

Protected vat IssueTotal: Decimal

Answers
B.

Internal var IssueTotal: Decimal

B.

Internal var IssueTotal: Decimal

Answers
C.

Public var IssueTotal: Decimal

C.

Public var IssueTotal: Decimal

Answers
D.

Local var IssueTotal: Decimal

D.

Local var IssueTotal: Decimal

Answers
E.

Var IssueTotal; Decimal

E.

Var IssueTotal; Decimal

Answers
Suggested answer: B

Explanation:

In Business Central development using AL (the language for Business Central extensions), the use of access modifiers defines how variables and procedures are accessed within and outside of an object or codeunit.

Access Modifiers in AL:

Public: A public variable can be accessed from any object or codeunit within the same module or extension.

Protected: This restricts access to the current object and objects that inherit from the current object. However, in AL (at least in versions used for Business Central), the Protected access modifier is used with methods but not variables.

Internal: This modifier restricts the visibility to the current extension. This means that variables or methods declared as internal can only be accessed from within the same extension. This is appropriate when you want to provide functionality that is shared within the extension but not exposed externally.

Local: This restricts the variable or method to the current object or method where it is declared. It cannot be accessed from anywhere else, even within the same extension.

Scenario Justification:

In the scenario for Contoso, Ltd., IssueTotal is a global variable in the ISSUE BASE extension, and the ISSUE EXT extension needs to access it. Therefore, the variable cannot be declared as Local, because this would restrict access to just the current object (or method).

Using Public would expose the variable outside of the extension, which is unnecessary because you only want other parts of the extension (specifically the ISSUE EXT extension) to have access.

The best choice in this case is Internal because it restricts access to the variable to within the same extension, which includes the base extension and any dependent extensions like ISSUE EXT. It strikes the right balance between visibility and encapsulation.

Microsoft Dynamics 365 Business Central Developer

DRAG DROP:

Access Modifiers in AL: Microsoft's documentation on AL provides the details on access modifiers, where it is specified that internal variables can be accessed within the extension, and the public variable is accessible across all extensionssource: Microsoft Learn on AL Programming.

Best Practices for AL Development: Business Central development best practices suggest keeping variables internal unless they need to be accessed outside of the current extensionsource: Microsoft Learn on AL development guidelines.

DRAG DROP

You need to implement the Issue Management module and expose the Postlssue method.

Which four actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

NOTE: Note than one order of answer choices is correct. You will receive credit for any of the correct orders you select.


Question 74
Correct answer: Question 74

HOTSPOT

You need to log an error in telemetry when the business process defined in the custom application developed for Contoso, Ltd fails.

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.


Question 75
Correct answer: Question 75

HOTSPOT

You need to parse the API JSON response and retrieve each order no. in the response body.

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.


Question 76
Correct answer: Question 76

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.


Question 77
Correct answer: Question 77

HOTSPOT

You create a 'Contoso Post' procedure to send an http POST request in JSON format. You publish the procedure to your environment.

You write the following procedure code:

The procedure does not work as expected.

You need to find and fix all errors in HTTP class usage.

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

NOTE: Each correct selection is worth one point.


Question 78
Correct answer: Question 78

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.


Question 79
Correct answer: Question 79

You must simulate the user interaction of selecting a posting option. The options must include:

* Ship

* Invoice

* Ship & Invoice

You need to create a test codeunit to run the test.

What should you use?

A.

Normal attribute

A.

Normal attribute

Answers
B.

Handler method

B.

Handler method

Answers
C.

Test attribute

C.

Test attribute

Answers
Suggested answer: B

Explanation:

Handler methods are used in tests to simulate user interactions, such as responding to dialogs, confirmation messages, or option selections. Since you need to simulate the user interaction of selecting a posting option (Ship, Invoice, Ship & Invoice), a Handler method would be the appropriate choice for capturing this kind of user input.

Normal attribute and Test attribute are used for marking methods for test execution, but they do not simulate user interaction, making Handler method the correct answer.

For more details, see the Microsoft Docs on Test Codeunits and Handler Methods.

Total 98 questions
Go to page: of 10