ExamGecko
Home Home / Microsoft / MB-820

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

Question list
Search
Search

List of questions

Search

Related questions











A company plans to set up a local Business Central Development Docker container. The environment will be used for testing new project ideas.

You need to ensure that the most recent Business Central artifact URL has been selected. Which command should you use?

A.

Get-BcArtifactUrl -type sandbox -select Current

A.

Get-BcArtifactUrl -type sandbox -select Current

Answers
B.

Get-BcArtifactUrl -type sandbox -select Closest

B.

Get-BcArtifactUrl -type sandbox -select Closest

Answers
C.

Get-BcArtifactUrl -type sandbox -select NextMinor

C.

Get-BcArtifactUrl -type sandbox -select NextMinor

Answers
D.

Get-BcArtifactUrl -type sandbox -select NextMajor

D.

Get-BcArtifactUrl -type sandbox -select NextMajor

Answers
Suggested answer: A

Explanation:

To ensure the most recent Business Central artifact URL is selected for setting up a local Business Central Development Docker container, the command to use is Get-BcArtifactUrl -type sandbox -select Current (A). This PowerShell command retrieves the URL for the latest available Business Central artifact for a sandbox environment, ensuring that the Docker container is set up with the most up-to-date version for testing new project ideas. The -select Current parameter is crucial as it specifies that the current, or latest, version of the artifact is to be retrieved, as opposed to selecting a version based on other criteria such as Closest, NextMinor, or NextMajor.

A company has a Business Central online environment.

You need to create an HTTP GET request that connects to an external REST service.

Which solution should you use?

A.

HttpContent data type variable

A.

HttpContent data type variable

Answers
B.

Codeunit 1299 'Web Request Helper'

B.

Codeunit 1299 'Web Request Helper'

Answers
C.

Codeunit S459 'JSON Management'

C.

Codeunit S459 'JSON Management'

Answers
D.

Codeunit 1297 'Http Web Request Mgt''

D.

Codeunit 1297 'Http Web Request Mgt''

Answers
E.

HttpClient data type variable

E.

HttpClient data type variable

Answers
Suggested answer: E

Explanation:

To create an HTTP GET request that connects to an external REST service in a Business Central online environment, the solution to use is the HttpClient data type variable (E). The HttpClient data type in AL language is designed for sending HTTP requests and receiving HTTP responses from a resource identified by a URI. This makes it the ideal choice for interfacing with external REST services, as it provides the necessary methods and properties to configure and execute HTTP GET requests, handle the responses, and process the data returned by the REST service. This approach is more direct and flexible compared to using specific codeunits like 'Web Request Helper' (B) or 'Http Web Request Mgt' (D), which might not provide the same level of control or specificity needed for RESTful interactions.

HOTSPOT

You create an 'AddltemsToJson' procedure and publish it.

The procedure fails to run.

You need to fix the errors in the code.

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


Question 43
Correct answer: Question 43

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 lo 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: In the MyTable object add the property InherentPermissions = Rl. Does the solution meet the goal?

A.

Yes

A.

Yes

Answers
B.

No

B.

No

Answers
Suggested answer: B

Explanation:

The property InherentPermissions is used to automatically grant permissions to the table object it is applied to, but setting it to Rl (which seems to be a typo and should likely be 'RL' for Read and Insert permissions) is not sufficient in this scenario. The issues reported by the users suggest that they need more than just read and insert permissions on MyTable. Since users are unable to post sales orders, they likely need Modify, Delete, or Execute permissions on certain tables or objects related to the sales order process. Additionally, the inability to access the list page created in MyTable could be due to lacking Read permissions on other related objects or pages. Therefore, merely setting InherentPermissions = RL on MyTable does not comprehensively address the users' permission issues, especially when considering the principle of least privilege. A more tailored approach to permissions, potentially involving adjustments to the app's code or configuration to ensure proper permissions are applied where necessary, would be needed.

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

A.

Yes

Answers
B.

No

B.

No

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

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 set 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: Decorate the event subscriber used for inserting data in MyTable by entering (lnherentPermissions(PermissionOb]ectType:TableDat a. Database:MyTable. 'R')]

Does the solution meet the goal?

A.

Yes

A.

Yes

Answers
B.

No

B.

No

Answers
Suggested answer: A

Explanation:

Using InherentPermissions in an event subscriber with the specified syntax could potentially resolve the permission issues related to MyTable, provided that the permissions specified (in this case, 'R' for Read) align with the minimum necessary for the users to perform their tasks. This approach allows the app to grant permissions dynamically based on the context of the event subscriber, which in this case is involved with inserting data into MyTable. By granting Read permission at the event level, it ensures that users have the necessary permissions to interact with MyTable in the context of the operations facilitated by the event subscriber, without needing to alter existing permission sets or grant broader permissions than necessary. This solution adheres to the principle of least privilege by ensuring that permissions are granted only within the narrow scope needed for specific operations, thereby potentially resolving the reported user issues in a secure and controlled manner.


HOTSPOT

A company uses Business Central. The company has branches in different cities.

A worker reports that each time they generate a daily summary report they get an error message that they do not have permissions.

You need to resolve the issue.

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

You are exporting data from Business Central.

You must export the data in a non-fixed length and width in CSV format.

You need to generate an XMLport to export the data in the required format

Which Format property value should you use?

A.

XML

A.

XML

Answers
B.

VariableText

B.

VariableText

Answers
C.

FixedText

C.

FixedText

Answers
Suggested answer: B

Explanation:

When exporting data from Business Central and the requirement is for the data to be in a non-fixed length and width CSV format, the Format property of the XMLport should be set to VariableText (B). The VariableText format is designed for handling data exports where the fields are separated by a delimiter, such as a comma or tab, which is typical of CSV (Comma-Separated Values) files. This format allows for the flexibility needed when dealing with varying field lengths, as it does not enforce a fixed width for each field, making it ideal for CSV data exports. Setting the Format property to FixedText (C) would enforce a fixed width for each field, which is not suitable for CSV files, while the XML format (A) is used for exporting data in an XML structure, which is different from the CSV format requirements.

You are creating an entitlement object in Business Central to enable transactability for AppSource apps.

You must map the entitlement object to a plan in Partner Center.

You need to select the value of the Type property to use in the entitlement object.

Which value should you use?

A.

PerUserServicePlan

A.

PerUserServicePlan

Answers
B.

Implicit

B.

Implicit

Answers
C.

Unlicensed

C.

Unlicensed

Answers
D.

Role

D.

Role

Answers
Suggested answer: A

Explanation:

In Business Central, when creating an entitlement object to enable transactability for AppSource apps and mapping it to a plan in Partner Center, the Type property of the entitlement object should be set to PerUserServicePlan (A). The PerUserServicePlan type is used to define an entitlement that is based on a service plan, which is typically how transactability features are managed for apps distributed through AppSource. This type of entitlement allows for the mapping of specific features or capabilities of the app to a service plan in Partner Center, enabling granular control over what users are entitled to use based on their subscription. The other values, such as Implicit (B), Unlicensed (C), and Role (D), are used in different contexts and do not apply to the scenario of mapping an entitlement object to a plan for AppSource apps.

HOTSPOT

You need to download a stored picture from the Room Incident page.

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