ExamGecko
Home Home / Microsoft / MB-820

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

Question list
Search
Search

List of questions

Search

Related questions











You ate creating a view for a Business Central app.

The view requires a custom layout that displays only customer records with a balance greater than 500 in local currency.

You need to configure the view to specify that it has a custom layout.

Which property combination should you use?

A.

shareLayout = false; Filters = where (Balance = filter (> 500), ''Currency Code' = filter ('ICY*));

A.

shareLayout = false; Filters = where (Balance = filter (> 500), ''Currency Code' = filter ('ICY*));

Answers
B.

SharedLayout - true; Filters - where (Balance filter (> 506), ''Currency Code' - filter ('LCY')>;

B.

SharedLayout - true; Filters - where (Balance filter (> 506), ''Currency Code' - filter ('LCY')>;

Answers
C.

SharedLayout - false; Filters - where ('Balance (ICY)' - filter (> 500));

C.

SharedLayout - false; Filters - where ('Balance (ICY)' - filter (> 500));

Answers
D.

Sharediayout = true; Filters - where ('Balance (ICY)' - filter (> 500));

D.

Sharediayout = true; Filters - where ('Balance (ICY)' - filter (> 500));

Answers
Suggested answer: B

Explanation:

SharedLayout = true allows for the layout to be shared across views, and it is often used when defining a custom layout that should follow specific filtering conditions.

The Filters property specifies the exact filter criteria for the view, in this case, filtering on Balance > 500 and the Currency Code = LCY (local currency).

A uses incorrect filter syntax and shareLayout = false, which doesn't allow the layout to be shared, so it's not ideal for this use case.

C and D both have issues with the filter syntax and do not use proper Currency Code filtering or share layout settings.

For more details, check Creating Views in Business Central.

A company uses Business Central.

You plan to help users through the installation process by using Assisted Setup.

You need to create a wizard page.

Which two actions should you perform? Each correct answer presents a complete solution.

NOTE: Each correct selection is worth one point.

A.

Set the PageType property to NavigatePage.

A.

Set the PageType property to NavigatePage.

Answers
B.

For each step needed in the guide, add a group0 control to the root-level of the layout > area(Content) control

B.

For each step needed in the guide, add a group0 control to the root-level of the layout > area(Content) control

Answers
C.

Set the PageType property to Worksheet

C.

Set the PageType property to Worksheet

Answers
D.

For each step needed in the guide, add a repeater!) control to the root-level of the layout > area(Content) control.

D.

For each step needed in the guide, add a repeater!) control to the root-level of the layout > area(Content) control.

Answers
Suggested answer: A, B

Explanation:

A: In Business Central, wizard pages are created using the NavigatePage type because it allows step-by-step navigation, which is perfect for wizard-like user experiences.

B: The group control organizes the content for each step in the guide, and it's essential to add these controls to the layout's Content area for each step of the wizard.

C: Worksheet is used for pages designed to handle larger datasets, not for wizard or step-by-step flows.

D: Repeater controls are used for displaying multiple records, not for guiding users through steps, so it's incorrect for this scenario.

For more information, you can refer to Assisted Setup in Business Central.

HOTSPOT

A company uses a Vendor-List report from the Base Application.

The company has new requirements that cannot be met by extending the Vendor - List report.

You create a new report named My Customized Vendor - List.

You need to replace the Vendor - List report with My Customized Vendor - List.

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 83
Correct answer: Question 83

You plan to call a web service by using the data type HttpClient from a Business Central AL extension

You must provide the following implementation for the web service call:

* The web service must authenticate the client with a certificate.

* The certificate must include a password.

* The password must be hidden when you debug the code

You need to include the certificate in the web service call. Which instruction should you use?

A.

Httpclient.Addertifieate(certificate: Text, Password: Text);

A.

Httpclient.Addertifieate(certificate: Text, Password: Text);

Answers
B.

HttpClient.AddCertificate{Certifkate: SecretText, Password: SecretText);

B.

HttpClient.AddCertificate{Certifkate: SecretText, Password: SecretText);

Answers
C.

Httpclient.Addeertifieate(Certifieate: Blob, Password: secretText);

C.

Httpclient.Addeertifieate(Certifieate: Blob, Password: secretText);

Answers
D.

HttpClient.AddCertificate{Password: SecreTiext);

D.

HttpClient.AddCertificate{Password: SecreTiext);

Answers
Suggested answer: B

Explanation:

ou plan to call a web service using HttpClient from a Business Central AL extension. The web service must authenticate using a certificate that includes a password, and the password must be hidden during debugging.

Options Explanation=

The question asks for the correct implementation where the certificate and password are provided and where the password is hidden when debugging.

SecretText is a special data type in Business Central that hides sensitive data (like passwords) during debugging.

A company has a test application.

A user observes the following error messages when running the test:

* 'Unhandled Ul: Message'

* 'Unhandled Ul: Confirm'

You need to resolve the errors. Which action should you take?

A.

Create a separate test runner codeunit that has Message Handler and Confirm Handler methods.

A.

Create a separate test runner codeunit that has Message Handler and Confirm Handler methods.

Answers
B.

Create the Message Handler and Confirm Handler methods in the test runner codeunit.

B.

Create the Message Handler and Confirm Handler methods in the test runner codeunit.

Answers
C.

Create a separate test codeunit that has Message Handler and Confirm Handler methods.

C.

Create a separate test codeunit that has Message Handler and Confirm Handler methods.

Answers
D.

Create the Message Handler and Confirm Handler methods in the test codeunit.

D.

Create the Message Handler and Confirm Handler methods in the test codeunit.

Answers
Suggested answer: B

Explanation:

A user observes error messages such as:

'Unhandled UI: Message'

'Unhandled UI: Confirm'

These messages indicate that the test code is not handling system prompts like Message and Confirm dialogs, which can appear during test execution.

Options Explanation=

Message Handler and Confirm Handler methods are used to intercept and handle these UI prompts during automated testing.

These methods should be added to the test runner codeunit, which is responsible for running the tests and handling these system-level interactions.

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'

A.

SessionSettings Handle'

Answers
B.

SendNotificationHandler

B.

SendNotificationHandler

Answers
C.

Recall Notification Hand let

C.

Recall Notification Hand let

Answers
D.

StrMenuHandler

D.

StrMenuHandler

Answers
Suggested 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.

You have a query object named Items Query. You write code using an Items Query query variable. You need to export the Items Query query data to a file. Which SaveAs function should you use?

A.

SaveAsExcel

A.

SaveAsExcel

Answers
B.

SaveAsWoid

B.

SaveAsWoid

Answers
C.

SaveAsHiml

C.

SaveAsHiml

Answers
D.

SaveAsCsv

D.

SaveAsCsv

Answers
Suggested answer: D

Explanation:

SaveAsCsv is the correct function to export the query data to a CSV (Comma-Separated Values) file, which is a commonly used text format for data exports.

SaveAsExcel would export to an Excel file, SaveAsWord to a Word document, and SaveAsHtml to an HTML file, but since the requirement is to export to a file and the question doesn't specify any particular file format other than what fits standard data exports, CSV is the most fitting and efficient format for this scenario.

For more information, see the Query Object Functions in Business Central.

A company has extended Business Central.

You plan to submit the extension to AppSource.

You need to ensure that an application meets the technical requirements before submitting it for validation.

Which three actions should you perform? Each correct answer presents a complete solution.

NOTE: Each correct selection is worth one point.

A.

Use the OnBeforeCompanyOpen event for improved sign in time

A.

Use the OnBeforeCompanyOpen event for improved sign in time

Answers
B.

Include extension translation files with the submission.

B.

Include extension translation files with the submission.

Answers
C.

Ensure the app file is digitally signed

C.

Ensure the app file is digitally signed

Answers
D.

Code all date fields in the mm-dd-yyyy format

D.

Code all date fields in the mm-dd-yyyy format

Answers
E.

Use data classification on all tables and extension fields.

E.

Use data classification on all tables and extension fields.

Answers
Suggested answer: B, C, E

Explanation:

B. Include extension translation files with the submission.

AppSource submissions require that the extension be localized to different languages, and including translation files is part of the requirement.

C. Ensure the app file is digitally signed.

Digitally signing the app file is a security requirement for AppSource submissions to ensure the integrity and authenticity of the app.

E. Use data classification on all tables and extension fields.

Microsoft requires that all data, especially personal data, be classified using the data classification feature to comply with GDPR and other data privacy regulations.

A company uses Business Central.

The company plans to use the AL object model in Business Central to extend the Base Application.

You need to extend the objects.

Which two objects can you extend? Each correct answer presents a complete solution.

NOTE: Each correct selection is worth one point.

A.

Codeunit

A.

Codeunit

Answers
B.

Report

B.

Report

Answers
C.

Query

C.

Query

Answers
D.

API page

D.

API page

Answers
E.

Enum

E.

Enum

Answers
Suggested answer: A, B

Explanation:

A . Codeunit

Codeunits can be extended in AL to add or modify functionality in Business Central.

B . Report

Reports can also be extended to customize the format or data presented in the reports without modifying the base report.

Incorrect Options:

C . Query: Queries cannot be extended. You would need to create new queries or modify the existing ones directly.

D . API page: You cannot extend API pages, but you can create new API pages.

E . Enum: You cannot extend Enums because they are predefined sets of values.

HOTSPOT

You create a procedure to check if a purchase order has lines.

The procedure returns false for purchase order PO-00001 even though it has purchase lines.

You need to fix the code to get the correct result.

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 90
Correct answer: Question 90
Total 98 questions
Go to page: of 10