無料MB-820試験ブレーン問題集認定ガイド問題と解答
MB-820認定概要最新のMB-820PDF問題集
質問 # 13
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.
正解:
解説:
Explanation:
Code Segment Analysis:
* The AL code is trying to read JSON data from a response and process it to extract subcontracting order numbers. It uses JsonToken, JsonObject, and JsonArray to work with the JSON data.
* JToken.ReadFrom(Data): This line reads the incoming JSON data and converts it into a token. It processes the full JSON body so you can start working with it.
* JToken.SelectToken("results"): This line selects the part of the JSON containing the results array.
The key "results" is where the JSON response data is expected to be found.
* JsonArray: Once the results are extracted, they are stored as an array, and each element in the array (which is expected to contain subcontracting order numbers) is processed.
* SubcontractingOrderNo: The extracted order_no from the JSON is stored in this variable.
Breakdown of Steps:
* JToken.ReadFrom(Data): This step reads the entire JSON response.
* JToken.SelectToken("results"): This step selects the results array from the JSON response.
* JArray.AsArray(): This step converts the selected results token into a JSON array that can be iterated over.
* GetValueAsText(JToken, 'order_no'): This step retrieves the order_no from each element in the array.
Correct Code Completion:
* JToken.ReadFrom(Data): This is the correct method to read the incoming JSON response, as it will convert the string into a JsonToken that can be further processed.
* JToken.SelectToken("results"): This is the correct method to extract the results array from the token.
This method looks for the key "results" in the JSON and retrieves the relevant array.
Final Code Segment:
al
Copy code
procedure ReadJsonData(Data: text)
var
JToken: JsonToken;
JObject: JsonObject;
JArray: JsonArray;
SubcontractingOrderNo: Code[20];
begin
if Data = '' then
exit;
JToken := JToken.ReadFrom(Data); // Step 1: Read the JSON response data.
JToken := JToken.SelectToken('results'); // Step 2: Select the "results" array.
JArray := JToken.AsArray(); // Convert the token into a JSON array.
foreach JToken in JArray do begin
SubcontractingOrderNo := GetValueAsText(JToken, 'order_no'); // Retrieve the order number.
end;
end;
* JToken.ReadFrom(Data): This reads the raw JSON data string and converts it into a JSON token that can be processed.
* JToken.SelectToken("results"): This extracts the results array from the JSON data.
* JArray.AsArray(): Converts the token into an array so we can iterate over it.
* GetValueAsText(JToken, 'order_no'): Extracts the order_no value from each item in the array.
質問 # 14
Hotspot Question
You have a per tenant extension that contains the following code.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
正解:
解説:
質問 # 15
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.
正解:
解説:
Explanation:
he code in the image shows an event subscription to substitute reports in Business Central.
Code Explanation:
* EventSubscriber subscribes to an event in Business Central that allows you to replace or substitute the report at runtime.
* The event here is associated with Report Distribution Management.
* The local procedure OnSubstituteReport checks if the report being requested is Vendor - List. If it is, it replaces it with My Customized Vendor - List.
Completion:
* EventSubscriber ObjectType: The correct object type in this case is Report Distribution Management.
* Event Name: The appropriate event to substitute a report is OnAfterSubstituteReport.
質問 # 16
You create the following Vendor table and Item table in Business Central.
You require the following data set to assign vendors to items.
You need to create a query to assign the vendors.
Which three code blocks should you use to develop the solution? To answer, move the appropriate code blocks from the list of code blocks 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.
正解:
解説:
Explanation:
To create a query that assigns vendors to items in Business Central, use the following code blocks in sequence:
* dataitem(Vendor; Vendor)
* dataitem(Item; Item)
* DataItemLink = "Vendor No." = Item.Vendor_No;
Creating a query:In Business Central, a query object is used to combine data from multiple tables. You start by specifying each table as a data item. In this case, you would start with the Vendor table and then the Item table. After specifying the data items, you need to link them together. The DataItemLink property is used to establish a relationship between two data items based on a common field. Here, you are linking the Vendor and Item tables on the "Vendor No." field, which is present in both tables. This link ensures that the query will return a dataset that includes related records from both tables based on the vendor number. The order of the code blocks ensures the logical flow and relationships between tables as required for the query.
質問 # 17
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. Codeunit 5459 "JSON Management"
- B. Codeunit 1299 "Web Request Helper"
- C. HttpClient data type variable
- D. HttpContent data type variable
- E. Codeunit 1297 "Http Web Request Mgt."
正解:C
解説:
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.
質問 # 18
A company has a page named New Job Status connected to a source table named Job. The page has an action named Item Ledger Entries. The company requires the following changes to the page:
* Filter the page to display only jobs with open or quote status.
* Add the following comment for internal use: This page does not include completed jobs.
* Item Ledger Entries action must open the selected job on the page and display it in the Ul for users to modify.
You need to select the property selections to use for each requirement.
Which property selections should you use? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
正解:
解説:
Explanation:
質問 # 19
You need to determine If you have unwanted incoming web service calls in your tenant during the last seven days.
Which two KQL queries should you use? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
- A.

- B.

- C.

- D.

- E.

正解:B、E
解説:
The task is to identify unwanted incoming web service calls during the last seven days. To do this, we need to look at KQL (Kusto Query Language) queries that would filter out web service calls based on the timestamp (to ensure the calls are within the last seven days) and by certain characteristics that would indicate they are unwanted, such as the wrong type of protocol (SOAP in this case, as Contoso Ltd. plans to dismiss using it).
Looking at the options:
* Option A: This query selects all traces where the timestamp is within the last 7 days and where the custom dimension has a value of 'RT0008', and where the category is either 'ODataV4', 'ODataV3', or
'Api'. This query would show all API calls except SOAP, so it does not directly answer the question about unwanted calls.
* Option B: This query filters for traces with a timestamp within the last 7 days, where 'RT0008' is present, and specifically looks for the category 'SOAP'. This query is correct because it directly targets SOAP calls, which are the unwanted calls according to Contoso Ltd.'s plans.
* Option C: Similar to option B, this query filters for traces within the last 7 days and looks for 'RT0008' but uses the equality operator for the category 'SOAP'. This would also correctly return the unwanted SOAP calls.
* Option D: This query also filters for traces within the last 7 days, but it excludes the 'ODataV4' category, which doesn't necessarily target the unwanted SOAP calls.
* Option E: This query selects traces where the timestamp is within the last 7 days and the custom dimension has 'RT0008'. However, it filters out categories 'ODataV4' and 'Api', which does not directly help in identifying the unwanted SOAP calls.
Therefore, the queries that should be used to determine if there are unwanted incoming web service calls (SOAP calls) in the tenant during the last seven days are Options B and C. These queries are specific to identifying SOAP protocol usage, which is what Contoso Ltd. considers unwanted.
質問 # 20
A company plans to meet new regulatory requirements.
The regulator has issued new tax tiers.
You need to update the base application table by using a table extension.
Which table field property can you change?
- A. BlankZero
- B. AutoFormatType
- C. CalcFormula
- D. DecimalPlaces
正解:D
解説:
When updating the base application table using a table extension in Microsoft Dynamics 365 Business Central, certain properties of table fields can be modified to meet new requirements, such as regulatory changes. The DecimalPlaces property (B) is one such property that can be adjusted in a table extension. This property determines the number of decimal places that are displayed and stored for decimal fields in the table. Adjusting the DecimalPlaces property can be particularly useful when dealing with financial data and tax calculations that require precision to meet new tax tiers set by a regulator. It's important to note that not all properties can be modified in a table extension; for example, the CalcFormula property (A) cannot be changed as it affects how the field's value is calculated, which could have significant implications on the base application's logic.
Topic 1, Contoso, Ltd.
Overview
Contoso, Ltd. Is a sales company in the manufacturing industry. It has subsidiaries in multiple countries/regions, each with its own localization. The subsidiaries must be data-independent from each other. Contoso. Ltd. uses an external business partner to manage the subcontracting of some manufacturing items. Contoso. Ltd. has different sectors with data security between sectors required.
Contoso, Ltd. uses Business Central online as the main ERP for financial. sales, purchase, warehouse, and manufacturing processes. It has employees that use the Business Central web application and external applications. The company has a custom external mobile app under development The IT department and its partners installed custom extensions to satisfy the company's requirements where the functionality is not available natively.
Contoso. Ltd. interacts with external services provided by customers and partners. Different applications interact with SOAP and OData endpoints exposed from Business Central.
An external business partner of Contoso, Ltd exposed a REST API for receiving details about new subcontracting orders and for sending the planned release date of each subcontracting order received.
Contoso. Ltd. has not activated the monitoring of the tenant and has no internal telemetry for its apps.
Custom reporting must be created to meet the requirements of the different departments.
Contoso, Ltd. has the following tenant management considerations:
IT department
* The IT department requires the ability to monitor the tenant to prevent performance problems and detect possible anomalies.
* The IT department plans to use Azure Application Insights and Log Analytics to inspect the ingested telemetry signals.
* All tenant upgrades are automatically handled by Microsoft. The IT department does not check for update availability or for tenant-related notifications.
* The IT department has not configured the receipt of tenant-related notifications from the Business Central admin center.
External business partner
* The external business partner must add custom telemetry to an application created for Contoso. Ltd. to monitor a business process.
* Custom telemetry signals for the application must be visible only on the partner's telemetry.
SOAP
* Contoso, Ltd. plans to dismiss using the SOAP protocol for integrations.
* Contoso, Ltd. must be able to detect if external applications are using its Business Central SOAP endpoints.
Issue
The Business Central tenant is upgraded by Microsoft to a new major version during the night.
Users report that one of the Contoso. ltd. extensions disappeared from the tenant The IT department confirms that the extension is still published.
Contoso. Ltd. plans to create a custom mobile application that has the following requirements:
* The app must be used by employees to check item details from the ERP in real time and to report issues that occur during the manufacturing process.
* An AL extension must be created for handling archived issues.
* Business Central development guidelines must be followed when implementing modules.
* A module must be implemented for the reporting and tracking of issues information. You plan to call this module Issue Management The module must expose a method nan Postlude.
* Code modifications will be required over time.
* The Issue Management process must be split into two extensions:
o ISSUE BASE: main extension
o ISSUE EXT: second extension with dependency from ISSUE BASE
* In the version 1.0.0.0 of the ISSUE BASE extension, you plan to create an Issue table that contains a global Decimal variable named Issue Total.
* In the version 1.0.0.0 of the ISSUE BASE extension, you plan to define a table named Issue Category with a Description field defined as follows:
field (2; Description; Text[SG])
{
DataClassificstion * CustoaerContent;
>
* The Issue table defined in ISSUE BASE extension contains a Clone procedure defined as follows:
procedure Corte () begin end;
* In the ISSUE EXT extension, you create a table extension object of the Issue table.
* The table extension object of the Issue table must access the Issue Total: Decimal variable.
After weeks of usage, you discover that you must remove the Description field and the Clone procedure because they are no longer required.
In a new version of the ISSUE BASE extension, you create a new Issue Type table. You must move data row by row from a previously obsolete Issue Category table to the new Issue Type table. Because a large amount of data must be moved, you must write an Upgrade codeunit by using the DataTransfer object.
The IT department creates a custom API for exposing the custom Issue table. The API provides an action for copying an issue to a new table. The action is defined as follows:
(Service Enabled]
procedure Copy (vary action Context: WebServiceActionContext)
begin
end;
Contoso, Ltd. must create an API in Business Central to expose item details to the mobile application.
* The API must have the lowest possible impact on the production environment when used during working hours.
* The API must only support Get operations.
A user of the ISSUE BASE extension in Business Central reports a problem.
To debug the problem, snapshot debugging with the following configuration was activated:
You discover that the debugging is not triggering.
Contoso, Ltd. must connect Business Central to the external API provided by the business partner. This will be used for the partner to send the details of new subcontracting orders to fulfill the sales demand, and for receiving the planned release date of each order sent. The integration requirements are as follows:
* The business partner will provide a REST API secured with basic authentication. Credentials to access the API will be shared with Contoso, ltd.
* The API for sending subcontracting orders must be called by sending an authenticated POST request to the given endpoint.
* The API for retrieving the order no. and planned release date of each subcontracting order responds with the following JSON:
Each order no. must be retrieved.
質問 # 21
You need to use a query data type to retrieve requited data.
How should you complete the code' To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
正解:
解説:
Explanation:
You are retrieving data using a query data type. The following code snippet needs to be completed:
* If QueryA...: The correct option here is Open. This opens the query and prepares it for data retrieval.
* While QueryA...: The correct option here is Read. This reads through the query results one row at a time.
* If QueryA...: Open
* While QueryA...: Read
質問 # 22
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.
正解:
解説:
Explanation:
Each JSON file has its own purpose in Business Central extensions:
* app.json
* Purpose: This file holds metadata about the application and contains configuration settings for dependencies and startup object information.
* Startup object type and object ID should be configured here.
* launch.json
* Purpose: This file defines how to run and debug the application during development.
* Runtime settings are configured here.
Final Answer (Drag and Drop):
* Startup object type and object ID # app.json
* Runtime # launch.json
* Dependencies # app.json
質問 # 23
You create a table with fields.
You observe errors in the code
You need to resolve the errors.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
正解:
解説:
質問 # 24
You create a codeunit that works with a table named Boxes. You plan to filter the records and then modify them.
You get an error that you do not have permission to work with the Boxes table.
You need to assign the Indirect permissions for the Boxes table to the codeunit.
Which four code blocks should you use in sequence to assign the correct permission? To answer, move the appropriate code blocks from the list of code blocks to the answer area and arrange them in the correct order.
正解:
解説:
Explanation:
To assign the indirect permissions for the Boxes table to the codeunit, use the following code blocks in sequence:
* TableData
* "Boxes" =
* Permissions
* RIM
Assigning permissions:In Business Central, to assign permissions within a codeunit, you need to specify the table that the permissions apply to, followed by the type of permission. The sequence starts by indicating that we are defining table data permissions (TableData). Then, we specify the table in question ("Boxes" =).
After that, we state that we are setting permissions (Permissions). Finally, we assign the RIM permissions, which stands for Read, Insert, and Modify permissions. The Indirect permission allows the codeunit to read, insert, and modify records in the Boxes table indirectly, meaning these operations can be performed by the codeunit when it is called by a user who has direct permissions for these operations.
質問 # 25
A company is implementing Business Central.
The company has the following requirements for a report:
* The report must be loaded for users in a specific location only.
* Data entered in the request page must be validated before any further processing.
* A filter must be defined for users based on the Department field defined in user setup.
You need to implement the given requirements.
Which triggers should you use? To answer, move the appropriate triggers to the correct requirements. You may use each trigger 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.
正解:
解説:
Explanation:
* Load the report for users in a specific location: OnInitReport
* Validate data before processing: OnPreReport
* Define filter based on Department field: OnPreDataItem
The requirements for the report are:
* The report must be loaded for users in a specific location only.
* Data entered in the request page must be validated before any further processing.
* A filter must be defined for users based on the Department field defined in user setup.
Trigger Matching:
* The report must be loaded for users in a specific location only.The correct trigger for loading the report is OnInitReport.
* This trigger runs when the report is initialized, and you can use it to define user-specific loading conditions, like location-based filtering.
* Data entered in the request page must be validated before any further processing.The correct trigger for validation before processing is OnPreReport.
* This trigger occurs before the report is run and can be used for data validation before further processing begins.
* A filter must be defined for users based on the Department field defined in user setup.The correct trigger to define filters is OnPreDataItem.
* This trigger occurs before data item processing begins and is used to apply filters such as those based on the Department field in the user setup.
質問 # 26
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.
正解:
解説:
Explanation:
KQL Code Segment:
* First command (traces):
* The query begins with traces to analyze telemetry data logs. The next command determines how the results are filtered or displayed.
* take 100: This is the correct option to retrieve the top 100 rows from the traces table.
* Command for selecting fields:
* project: This command is used to select specific fields from the telemetry data, allowing you to retrieve and display only the fields relevant to the job queue telemetry.
* The correct answer is project, as it allows you to choose fields like jobQueueObjectId, jobQueueObjectType, etc., from the customDimensions table.
質問 # 27
You are developing an XMLport to export data from the parent Item table and a related child "Item Unit of Measure' table. The XMLport configuration must provide the following:
* Link the child table to its parent.
* Display a confirmation message after the XMLport runs.
You need to generate the XMLport.
What should you do? To answer, move the appropriate triggers to the correct requirements. You may use each trigger 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.
正解:
解説:
Explanation:
To meet the XMLport configuration requirements:
* Link the child table to its parent: Use the OnAfterGetRecord trigger.
* Display a confirmation message after the XMLport runs: Use the OnPostXMLPort trigger.
In Business Central, when you are developing an XMLport for data export, triggers are used to perform actions at different stages of the XMLport's operation:
* OnAfterGetRecord Trigger:This trigger fires after a record is retrieved from the database but before it is processed for output in the XMLport. It is the ideal place to link child table records to their parent because you have access to the current record that can be used to set filters or modify data in the child table before it is written to the XML file.
* OnPostXMLPort Trigger:This trigger fires after the XMLport has finished processing all records. It is the correct place to display a confirmation message because it ensures that the message will appear after the entire XMLport operation is complete. Here, you can use application-specific functions to show the message, such as MESSAGE function in AL code.
By placing the appropriate triggers in these positions, you can ensure that the XMLport will link the child records to their parent records during the data export process and will notify the user with a confirmation message once the operation is successfully completed.
質問 # 28
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
正解:
解説:
Explanation:
Design pattern for the setup table:
* The correct selection here is Adapter. The Adapter design pattern is commonly used when you need to handle integration points or create a setup table that acts as an intermediary for data manipulation, which fits the requirement for the configuration of the non-conformity functionality.
Data type of the primary key field:
* The correct data type is Code. In Business Central, when creating a table with a primary key field, the Code data type is typically used for fields such as document numbers, codes, and identifiers. For a setup table, a Code field is appropriate for keys like "No." series or setup identifiers.
Property required to prevent users from adding records:
* The correct property is InitValue. This property is used to set initial values for fields and can be configured in such a way that users are prevented from adding records directly, typically enforcing control over record creation and editing in configuration scenarios.
質問 # 29
You are developing an XMLport to export data from the parent Item table and a related child "Item Unit of Measure' table. The XMLport configuration must provide the following:
* Link the child table to its parent.
* Display a confirmation message after the XMLport runs.
You need to generate the XMLport.
What should you do? To answer, move the appropriate triggers to the correct requirements. You may use each trigger 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.
正解:
解説:
質問 # 30
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.
正解:
解説:
Explanation:
* In line 13, replace the Add method with Insert. = NO
* In line 15, replace the WriteTo method with ReadFrom. = NO
* Change the ItemObject variable type from JsonObject to JsonToken. = NO
* Move line 08 in the beginning of REPEAT .. UNTIL. = YES
The provided code is intended to serialize a list of items from the Item table into a JSON array format. Here is a breakdown of the code and the necessary corrections:
* In line 13, "ItemsArray.Add(ItemObject)": This line is correctly using the Add method to add the ItemObject to the ItemsArray. The Add method is the correct method to use for adding items to a JsonArray. Therefore, there is no need to replace Add with Insert.
* In line 15, "ItemsArray.WriteTo(RequestText)": The WriteTo method is used correctly to serialize the ItemsArray into a JSON formatted string and store it in the RequestText variable. The ReadFrom method is used for the opposite operation, i.e., to deserialize a JSON formatted string into a JsonArray, which is not the goal in this context. Hence, no change is needed here.
* Change the ItemObject variable type from JsonObject to JsonToken: The ItemObject variable is intended to hold JSON objects representing individual items, making JsonObject the appropriate type.
JsonToken is not a type used in this context within AL for Business Central, and thus the variable type should remain as JsonObject.
* Move line 08, "Clear(ItemObject)": This line should be moved inside the repeat loop to ensure that the ItemObject is cleared for each item in the loop. Placing it before the repeat would only clear it once before the loop starts, which could lead to incorrect serialization as the previous item's properties would not be cleared from the ItemObject.
The logic for serializing records into JSON is a common operation when interfacing with APIs or web services in Business Central, and the pattern shown in the code is typical for such operations.
質問 # 31
Hotspot Question
A company plans to integrate tests with its build pipelines.
The company has two Docker sandbox environments: SandboxA and SandboxB.
You observe the following:
- SandboxA is configured without the Test Toolkit installed.
- SandboxB must be configured from scratch. The Test Toolkit must be
installed in SandboxB during configuration.
You need to configure the sandbox environments.
How should you complete the cmdlets? To answer, select the appropriate options in the answer area.
正解:
解説:
質問 # 32
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
正解:
解説:
Explanation:
Design pattern for the setup table:
* The correct selection here is Adapter. The Adapter design pattern is commonly used when you need to handle integration points or create a setup table that acts as an intermediary for data manipulation, which fits the requirement for the configuration of the non-conformity functionality.
Data type of the primary key field:
* The correct data type is Code. In Business Central, when creating a table with a primary key field, the Code data type is typically used for fields such as document numbers, codes, and identifiers. For a setup table, a Code field is appropriate for keys like "No." series or setup identifiers.
Property required to prevent users from adding records:
* The correct property is InitValue. This property is used to set initial values for fields and can be configured in such a way that users are prevented from adding records directly, typically enforcing control over record creation and editing in configuration scenarios.
質問 # 33
A company has an on-premises Business Central instance named TEST The instance uses Windows authorization and a developer services port of 7149 Visual Studio Code is installed on the same server.
You create a new AL project but cannot download the symbols.
The launch json file contains the following code:
You need to download the symbols.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
- A. Change the name parameter to TEST.
- B. Add the port: 7149 parameter.
- C. Change the authentication parameter to UserPassword.
- D. Change the server Instance parameter to TEST
- E. Check which server the instance is installed on and replace http//localhost with the correct IP address.
正解:B、D
解説:
You are working on an on-premises Business Central instance and unable to download symbols for a new AL project. The current configuration in launch.json does not allow you to download symbols, and you need to make corrections.
Key Points in the Scenario:
* Instance name is TEST.
* Developer services port is 7149.
* Windows authentication is being used.
Correct Answers:
* A. Change the server Instance parameter to TEST.
* The serverInstance parameter must match the name of the Business Central instance, which is TEST in this scenario. You need to modify this to reflect the correct instance name.
* B. Add the port: 7149 parameter.
* Since the developer services are using port 7149, you need to specify this in the launch.json file by adding the port parameter with the value 7149.
Incorrect Options:
* C. Change the name parameter to TEST: The name parameter is just a label and does not affect downloading symbols, so changing this won't help.
* D. Change the authentication parameter to UserPassword: The authentication method is already set to Windows, which is valid for this scenario. Changing it to UserPassword is unnecessary unless specified by the system.
* E. Check which server the instance is installed on and replace http://localhost with the correct IP address: Since the server is on the same machine as Visual Studio Code (as specified), localhost is correct.
質問 # 34
You create a query that contains a procedure to display the top customers.
The procedure breaks at runtime.
You need to fix the code.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
正解:
解説:
Explanation:
* Enclose line 08 into BEGIN .. END = NO
* Add TopCustomerOverview.Open(); before = YES
* TopCustomerOverview.SetFilter(Sales_LCY, '>10000'); in line 06.
* Add TopCustomerOverview.Open(); after TopCustomerOverview.SetFilter(Sales_LCY, '>10000'); in line 06. = YES
* Replace SetFilter in line 06 with SetRange. = NO
The code provided has a runtime error because the query TopCustomerOverview must be opened before it can be read from. Therefore, TopCustomerOverview.Open(); should be added before trying to read from the query, which is not present in the code.
Enclosing line 08 into a BEGIN .. END block is unnecessary because it is a single statement, and AL does not require a BEGIN .. END block for single statements within trigger or procedure bodies.
TopCustomerOverview.SetFilter(Sales_LCY, '>10000'); is a correct method to set a filter for the query, and using SetRange instead is not necessary unless the requirement is specifically to set a range of values, which is not indicated in the procedure's description.
In summary, for the procedure to run correctly, the query must be opened after setting the filter and before attempting to read from it. The SetFilter method is correct for the intended operation, and there's no requirement to use SetRange or to enclose the Message call in a BEGIN .. END block.
質問 # 35
You need to define the data types for the fields of the N on-conformity table.
Which two data types should you use? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
- A. Code for the Non-Conformity Number field
- B. Integer for the N on-conformity Number field
- C. Date Time for the Non-Conformity Date field
- D. Char for the Non-Conformity Number field
- E. Date for the Non-Conformity Date field
正解:A、D
解説:
In Business Central, fields in tables are assigned specific data types that determine the kind of data they can store. For the Non-conformity table mentioned in the case study, the following data types should be used:
* Date for the Non-Conformity Date field: This is because the Non-conformity Date field is required to store only the date when the non-conformity was recorded. The Date data type is appropriate for storing dates without times.
* Code for the Non-Conformity Number field: The Non-conformity Number field is described to use alphanumeric values with a format that includes "NC" and the year, like "NC24-001". In Business Central, the Code data type is used for fields that store alphanumeric keys. It is a text field with a limited length, which makes it suitable for number series that contain letters and numbers.
Other options are not suitable:
* A. Integer for the Non-conformity Number field: This would not be appropriate because the Non- conformity Number includes alphanumeric characters and not just integers.
* B. DateTime for the Non-Conformity Date field: This is not correct because there is no requirement to store the time alongside the date.
* C. Char for the Non-Conformity Number field: Char data type is not typically used in Business Central for number series or identifiers. The Code data type is preferred for this purpose.
質問 # 36
A company plans to meet new regulatory requirements.
The regulator has issued new tax tiers.
You need to update the base application table by using a table extension.
Which table field property can you change?
- A. BlankZero
- B. AutoFormatType
- C. CalcFormula
- D. DecimalPlaces
正解:D
解説:
When updating the base application table using a table extension in Microsoft Dynamics 365 Business Central, certain properties of table fields can be modified to meet new requirements, such as regulatory changes. The DecimalPlaces property (B) is one such property that can be adjusted in a table extension. This property determines the number of decimal places that are displayed and stored for decimal fields in the table. Adjusting the DecimalPlaces property can be particularly useful when dealing with financial data and tax calculations that require precision to meet new tax tiers set by a regulator. It's important to note that not all properties can be modified in a table extension; for example, the CalcFormula property (A) cannot be changed as it affects how the field's value is calculated, which could have significant implications on the base application's logic.
質問 # 37
You need to define the properties for the Receipt No. field in the Non-conformity table when storing the information to the purchasing 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.
正解:
解説:
Explanation:
field(3; "Receipt No."; Code[20])
{
DataClassification = CustomerContent;
TableRelation = "Purch. Rcpt. Header"."No." where ("Buy-from Vendor No." = field("Vendor No."));
}
* Field Declaration:
* The field(3; "Receipt No."; Code[20]) part defines the field in the table with ID 3 and type Code with a length of 20. This field will hold the receipt number.
* DataClassification:
* CustomerContent is selected for the DataClassification property, which categorizes the data for privacy and compliance management. This aligns with Business Central's recommendations for handling sensitive data in customer-related tables.
* TableRelation Property:
* The TableRelation property links the "Receipt No." field to another table, which in this case is the "Purch. Rcpt. Header" table. This ensures that only valid receipt numbers from the Purchase Receipt Header table can be selected or entered in this field.
* Relation Filter:
* The filter condition is applied using the where clause. It ensures that the Receipt No. is only from the Purchase Receipt Header records where the "Buy-from Vendor No." matches the "Vendor No." of the current record.
* The condition field("Vendor No.") is selected from the drop-down as shown in the image. This links the vendor information in the non-conformity table to the receipt in the Purchase Receipt Header table.
* By linking the "Vendor No." fields, you ensure that only receipt numbers from the correct vendor are available, which improves data consistency and reduces errors during data entry.
* References to AL Language:
* The TableRelation property is frequently used to create references between tables in Business Central. In this case, the correct relationship between the "Purch. Rcpt. Header" and the Non- conformity table is established using the TableRelation and filter.
Reference Documentation:
* AL TableRelation Property
* AL Field Syntax
質問 # 38
......
ベストなMicrosoft MB-820学習ガイドと問題集には2025:https://www.goshiken.com/Microsoft/MB-820-mondaishu.html
トップクラスMicrosoft MB-820試験材料で学習ガイド!練習問題バージョンで挑もう:https://drive.google.com/open?id=1qv7jJLVMzwd3eZCXdnsm--gOOj-zQ_Hx