MB-820 Practice Test Questions

113 Questions


Topic 1: Case Study Alpine Ski House

You need to access the RoomsAPI API from the canvas app.
What should you do?


A. Use the default API configuration in Business Central


B. Enable the APIs for the Business Central online environment.


C. Open the Web Services page and publish the RoomsAPI page as a web service.


D. Include in the extension a codeunit of type Install that publishes RoomsAPI.





C.
  Open the Web Services page and publish the RoomsAPI page as a web service.

You need to configure telemetry for the SaaS tenant and test whether the ingested signals are displayed.
Which three 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.






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.






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.








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.

You need to handle the removal of the Description field and the Clone procedure without breaking other extensions.
Which three 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: More than one order of answer choices is correct. You will receive credit for any of the correct orders you select.






You need to create the API page according to the requirements.
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.






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.






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.






You need to create the access modifier for IssueTotal.
Which variable declaration should you use?


A. Protected vat IssueTotal: Decimal


B. Internal var IssueTotal: Decimal


C. Public var IssueTotal: Decimal


D. Local var IssueTotal: Decimal


E. Var IssueTotal; Decimal





B.
  Internal var IssueTotal: Decimal

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:
Scenario Justification:
Microsoft Dynamics 365 Business Central Developer References:
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 extensions source: 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.

You need to determine why the debugger does not start correctly.
What is the cause of the problem?


A. The "userld" parameter must have the GUID of the user specified, not the username.


B. The "breakOnNext" parameter is not set to -WebServiceClient".


C. The "userld" parameter is specified, and the next user session that is specified in the 'breakOnNext" parameter is snapshot debugged.


D. The "executionContext* parameter is not set to "Debug".





A.
  The "userld" parameter must have the GUID of the user specified, not the username.

Explanation: In Microsoft Dynamics 365 Business Central, when configuring snapshot debugging, it is crucial that the parameters in the configuration file are correctly set. From the options provided, the issue with the debugger not starting correctly is most likely due to an incorrect "userId" parameter.
Option A is the cause of the problem. The "userId" parameter must be the GUID of the user, not the username. The snapshot debugger needs the exact GUID to attach to the right session for debugging.
Option B is incorrect because "breakOnNext" set to "WebClient" is a valid setting.
This tells the debugger to break on the next client action in the web client, which is a typical scenario.
Option C is not the cause of the problem. The "userId" parameter is meant to specify which user session to debug, and this works in conjunction with the "breakOnNext" parameter.
Option D is incorrect as the "executionContext" parameter does not need to be set to "Debug" for snapshot debugging to work. "DebugAndProfile" is a valid value for the "executionContext" parameter, as it allows for debugging and collecting performance information.
Therefore, the reason why the debugger does not start correctly is due to Option A: The "userId" parameter must have the GUID of the user specified, not the username.

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.






You need to determine why the extension does not appear in the tenant.
What are two possible reasons for the disappearance? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.


A. The extension was published as a DEV extension.


B. The extension was not compatible with the new version within 60 days of the first notification.


C. The extension was published as PTE. and the Platform parameter was not updated in the application file.


D. The extension was published as PTE. and the Platform and Runtime parameters were not updated in the application file.


E. The extension was not compatible with the new version within 90 days of the first notification.





B.
  The extension was not compatible with the new version within 60 days of the first notification.

D.
  The extension was published as PTE. and the Platform and Runtime parameters were not updated in the application file.


Page 2 out of 10 Pages
Previous