Microsoft certification · Exam MB-820

MB-820 Mock Exam

Microsoft Dynamics 365 Business Central Developer

Free MB-820 questions on Topic 3: Fabrikam Inc, each with the answer and an explanation.

20 questions · 33 minutes · free, no sign-up

Topic 3: Fabrikam Inc questions

1–3 of 3 free
Question 1
You need to assist the development department with setting up Visual Studio Code to design the purchase department extension, meeting the quality department requirements.
How should you complete the app.json file? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

Show answerHide answer

Explanation



Explanation:
This question focuses on correctly configuring the app.json file for an extension in Visual Studio Code, specifically to meet deployment and telemetry requirements. The key is to understand the purpose of each configuration property: applicationInsightsInstrumentationKey is for enabling telemetry, while target and runtime must be set to "Cloud" for deploying extensions to the cloud-hosted Dynamics 365 environment. "OnPrem" would be used for on-premises deployments.

Correct Option (Based on typical configuration):
To complete the app.json file for a cloud deployment with telemetry, the configuration should be:

applicationInsightsInstrumentationKey:
This property must be set to the actual Instrumentation Key string (e.g., "243d2dc8-60e2....") provided by the Azure Application Insights resource. This enables the extension to send trace and telemetry data to Application Insights, meeting the quality department's monitoring requirements.

"target": "Cloud":
This property defines the intended deployment target. For extensions designed to run in the Dynamics 365 Finance and Operations cloud service (SaaS), this must be set to "Cloud".

"runtime": "Cloud":
This property specifies the runtime environment. For cloud-hosted extensions, this must also be set to "Cloud" to ensure the extension uses the correct cloud runtime services and libraries.

Incorrect/Alternative Options:

applicationInsightsConnectionString:
While a valid property in some contexts, the app.json file for Dynamics 365 extensions primarily uses the applicationInsightsInstrumentationKey property for telemetry configuration. The connection string is a more modern approach, but the standard key-based property is shown in the snippet and is the direct match.

target: "OnPrem" / runtime: "OnPrem":
These values would be incorrect for the scenario. The development department is designing an extension for the purchase department in the cloud environment, as implied by the quality department's cloud-based monitoring requirements. Using "OnPrem" would configure the extension for an on-premises deployment, which would fail to deploy or run correctly in the cloud tenant.

Reference:
Microsoft Learn, "Application settings (app.json)": The documentation specifies the app.json schema, including the target and runtime properties (set to "Cloud" or "OnPremises"), and the applicationInsightsInstrumentationKey property for enabling telemetry logging to Azure Application Insights.
Question 2
You need to define the XML file properties for the accounting department.
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.

Show answerHide answer

Explanation

Explanation:
This question involves configuring an XMLport object in AL for Dynamics 365 Business Central. The goal is to export data to an XML file for the accounting department. The key properties to set are Format (which defines the file type) and Direction (which defines if the XMLport is for importing, exporting, or both). The tableelement must also correctly map to the source data table.

Correct Option (Based on typical XML export requirements):
To complete the XMLport definition for exporting accounting data to an XML file, the configuration should be:

Format = Xml;:
The accounting department requires an XML file. Therefore, the Format property must be set to Xml. The other options (FixedText, VariableText) are for text-based formats.

Direction = Export;:
Since the need is to generate an XML file from the system for the accounting department, the XMLport's Direction must be set to Export. Import would be for reading files, and Both is unnecessary for a one-way export.

tableelement(documentation;"G/L Entry"):
The most likely source table for accounting department data is the General Ledger Entry table ("G/L Entry"). This table contains the posted financial transactions. The other options ("Subcontract Documents", "G/L Account") are less likely to be the primary source for a generic accounting export.

Incorrect/Alternative Options:

Format = FixedText; / Format = VariableText;:
These are incorrect formats. They define text files with fixed-width or delimited columns, not the requested XML file format.

Direction = Import; / Direction = Both;:
Setting Direction to Import would configure the XMLport to read an XML file into the system, which is the opposite of the export requirement. Both is possible but not the best practice for a dedicated export task and adds unnecessary complexity.

tableelement(documentation;"Subcontract Documents"):
While possible for a specific process, this is too narrow. The accounting department typically needs comprehensive financial data, making the General Ledger a more standard and complete source.

tableelement(documentation;"G/L Account"):
This table contains the chart of accounts (master data), not the transactional entries. An export for accounting reporting usually requires the actual posted transactions from the "G/L Entry" table.

Reference:
Microsoft Learn, "XMLports Overview": Details the properties of an XMLport object, including Format (Xml, VariableText, FixedText) and Direction (Import, Export, Both). The tableelement defines the root data source for the export.
Question 3
You need to configure the Subcontract Docs extension to translate the fields.
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.

Show answerHide answer

Explanation



Explanation:
This scenario describes the process for adding multi-language support (specifically English and Spanish) to an extension's table and page fields. The correct sequence follows the standard AL development workflow: first define the translatable properties in the objects, then enable the translation feature in the project, and finally use the development tool to generate the translation file.

Correct Sequence:

Open the table Subcontract Documents. Add the CaptionML property for each field. Complete the value for CaptionML for each field...
This is the first and foundational step. Multi-language captions are defined directly in the AL code for each object (tables, pages, etc.) using the CaptionML property (or the modern Caption property with multi-language syntax). You must specify the language IDs (like ENU, ESP) and their corresponding translated strings for each field.

Add the setting "features": [ "TranslationFile" ] in the app.json file.
This is the second step. To generate a translatable external file (an .xlf file), you must explicitly enable the TranslationFile feature in the project's app.json file. This tells the AL compiler to extract the translatable strings during the next build step.

Use the build command AL: Package in Visual Studio Code to generate the Translations folder.
This is the third step. After enabling the feature, you build or package the extension. This process parses the AL code, extracts all strings tagged with CaptionML/Caption, and automatically generates a Translations folder containing an .xlf (XML Localization Interchange File Format) file with the source language strings ready for translation.

Incorrect / Out-of-Sequence Actions:

Open the Subcontract Document List page.
This action is implied within step 1. While you would also add CaptionML properties to the page fields, the step is redundant as a separate action. The core task is adding the property to all relevant objects, which is covered by the first step.

Translate the generated .xlf file.
This is a necessary subsequent step but comes after the sequence defined by the question. The question asks for the actions to configure the extension for translation, which culminates in generating the .xlf file. The actual translation of that file is the next phase of work, not part of the configuration setup sequence.

Reference:
Microsoft Learn, "Working with Translation Files": The documentation outlines the workflow: 1) Define captions using the multi-language properties in AL objects, 2) Add the "TranslationFile" feature to app.json, 3) Build the app to generate the .xlf file in the Translations folder.

That's the last free question in Topic 3: Fabrikam Inc

You've seen the free 30% (3 of 10 questions). Full access unlocks every question and full-length MB-820 mock exams (65 questions, 105 minutes), a different mock on every attempt.

Unlock full mock exam
Full mock exam

Sit the MB-820 exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real MB-820 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full MB-820 mock exam
  • 65questions per mock
  • 105 mintime limit
  • 117questions in the bank
  • Newmock on every attempt