Microsoft

MB-500 Free Practice Questions — Page 5

Question 20

A company implements Dynamics 365 Finance and Dynamics 365 Supply Chain Management. The company plans to perform a sales history analysis on existing customers, including their sales history and purchases. You are creating an extension to create a sales history table that will run after the close of each period. The historical information must include customer information, date of purchase, and items that are purchased including product descriptions. You need to ensure that the process for retrieving historical information minimizes database calls. Which method should you use?

A. RecordInsertList
B. RecordSortedList
C. Insert_recordset
D. doInsert
Show Answer
Correct Answer: C
Explanation:
Use insert_recordset to populate the history table directly from a set-based query, including joins to customer, sales, and product tables. This executes as a single SQL set-based operation, minimizing database round trips and providing the best performance for period-end history creation. RecordInsertList batches inserts but still requires records to be processed in X++; RecordSortedList is an in-memory collection; doInsert inserts one record at a time.

Question 20

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 in the review screen. You have an enumeration named truckStatus that has the following statuses: ✑ Empty ✑ Loaded ✑ Completed You have the following code: You need to extend this enumeration and add the following statuses to the enumeration: Quarantine, InTransit. You must then modify code that validates the switch statement. Solution: Add a post handler to the method that checks the enumeration and logic for your new enumeration values using the integer value of the enumeration. Does the solution meet the goal?

Illustration for MB-500 question 20 Illustration for MB-500 question 20
A. Yes
B. No
Show Answer
Correct Answer: B
Explanation:
No. An extensible enum’s added values do not have reliable fixed integer values, so checking them by numeric value is unsafe. The logic should identify the enum values symbolically rather than rely on their integer representation.

Question 21

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 in the review screen. You have an enumeration named truckStatus that has the following statuses: ✑ Empty ✑ Loaded ✑ Completed You have the following code: You need to extend this enumeration and add the following statuses to the enumeration: Quarantine, InTransit. You must then modify code that validates the switch statement. Solution: Add a post handler to the method that checks the enumeration and logic for your new enumeration values using the enumeration value. Does the solution meet the goal?

Illustration for MB-500 question 21 Illustration for MB-500 question 21
A. Yes
B. No
Show Answer
Correct Answer: A
Explanation:
Yes. After extending the enum with Quarantine and InTransit, a post-handler can check for those values after the original method runs and apply the additional logic for them. This allows the new statuses to be handled without changing the original switch statement.

Question 21

Case study - This is a case study. Case studies are not timed separately. You can use as much exam time as you would like to complete each case. However, there may be additional case studies and sections on this exam. You must manage your time to ensure that you are able to complete all questions included on this exam in the time provided. To answer the questions included in a case study, you will need to reference information that is provided in the case study. Case studies might contain exhibits and other resources that provide more information about the scenario that is described in the case study. Each question is independent of the other questions in this case study. At the end of this case study, a review screen will appear. This screen allows you to review your answers and to make changes before you move to the next section of the exam. After you begin a new section, you cannot return to this section. To start the case study - To display the first question in this case study, click the Next button. Use the buttons in the left pane to explore the content of the case study before you answer the questions. Clicking these buttons displays information such as business requirements, existing environment, and problem statements. When you are ready to answer a question, click the Question button to return to the question. Background - Munson's Pickles and Preserves Farm produces and sells jarred food goods. The organization has several production and warehouse locations across the United States. Each location runs both production and warehousing operations. The company has three locations: East, Central, and West. The company is upgrading its Dynamics AX 2009 system to Dynamics 365 Finance. Current environment. General - Munson's Pickles and Preserves Farm plans to migrate customizations, data, and integration from its legacy system into Dynamics 365 finance and operations apps. The Dynamics 365 finance and operations environment includes: • multiple cloud-hosted development environments using Microsoft Visual Studio 2017 • a Microsoft Azure DevOps project for source control • two tier 2 environments for user acceptance testing and staging, as well as production Munson's Pickles and Preserves Farm is currently in the planning and development phase of the upgrade process. The company's internal development team needs additional development resources to address issues. The company already created a project that is set up to use a custom model named GPExtensions. Current environment. Integrations Munson's Pickles and Preserves Farm has a new integration for its freight processing information. The internal development team created the secure file transfer protocol (SFTP) site for the source information to be stored and the staging table to house the source information once the data is added to Dynamics 365 Finance. Information from the source will be transferred once a day from the source system and integrated with the target system. More than 10,000 records will be transferred over the integration. The company created an aggregate entity for the integration to minimize the amount of transmitted data. Munson's Pickles and Preserves Farm has added a new integration for freight processing where all item weights, dimensions, and other factors will be configured in the external portal while planning the loads. Once the load is planned, it will be integrated into Dynamics 365 finance and operations apps for the freight invoice processing to occur. No duplicate invoices or posting are associated with the freight invoice charges. The integration of this information from the source system is intended only for report creation and compilation purposes. Current environment. Planned changes Munson's Pickles and Preserves Farm wants to change inventory forms to fit its current needs. Any modifications or enhancements must follow the existing functionality for forms in Dynamics 365 Finance. Requirements. Integrations - All data from integrations have the same format as an existing Dynamics 365 Finance apps field. All enhancements or customizations must use existing assets before creating new functionality. Munson's Pickles and Preserves Farm wants to change its integration strategy to include real-time data from the freight processing source system. The inventory must update as it is sold from the system. That information will be updated in Dynamics 365 Finance. The freight processing integration requires the use of an SFTP site to store XML files from the source system. The additional integration will use OData and must be transferred in real time. A periodic batch job must: • Pull data from the SFTP site. • Import the data to a staging table used to hold the information from the source system. • Map source data to the target table in Dynamics 365 Finance. The imported Load ID field must be added to the Sales Order header for all processed orders. Additional requirements for integrations, including other integration strategies, may be necessary as the company grows. Existing tables must be changed to include the Load ID. The database will need to be synched before adding the Load ID field. Requirements. Changes - Munson's Pickles and Preserves Farm must change the Inventory Status form to include more columns. It plans to create a table to enter the data for the Inventory Status form as a new data source. The company wants to add both the Product Name field and Batch ID field to this new table. The current form includes the item number, location, license plate, product inventory dimensions, and quantity. The grid on the Inventory Status form must include the product name by using the item number and legal entity. The user interface must be created to include the new columns and the data must be available to add to the grid. The form must have only an Action Pane, a Navigation List, a List Style Grid, a Details Header, and a Details Tab in the design and include the Load ID field. Munson's Pickles and Preserves Farm is currently in the process of adding the other required fields: one for Product Name and one for Batch ID. The new fields must be related to extended data types for the original fields on the existing data source for the Inventory Status form. Munson's Pickles and Preserves Farm plans to add the EcoResProductName and Batch ID data to the extended table for WHSTmpStatusChange. The fields on the table extension must be populated with data and visible on the Inventory Status form on insert. Issues - • The internal development team has created the SFTP site connections, the staging table, and the batch jobs for the new integration for freight processing. The development team needs to map the source data to the target table and the data management workspace. The development team notices errors with mapping target fields in the data management workspace. The team needs another developer to configure the table extensions, class extensions, and form extensions that are required for the planned changes. • The internal development team has issues adding the required fields to the Inventory Status standard form. The team needs another developer to configure the table extensions, class extensions, and form extensions that are required for the planned changes. You need to add data to the WHSTmpStatusChange table by extending the insert method. What should you do?

A. Right-click the project node in Solution Explorer and add a new Class object to the project.
B. Right-click the WHSTmpStatusChange table in the Application Object Tree (AOT) and select View Code.
C. Right-click the project node in Solution Explorer and add a new Table object to the project.
D. Right-click the WHSTmpStatusChange table in the Application Object Tree (AOT) and create an extension in the existing project.
Show Answer
Correct Answer: A
Explanation:
To extend the standard table's insert() method, use a Chain of Command table extension class. In Visual Studio, add a new Class to the project and implement a table extension class with the appropriate ExtensionOf attribute, overriding insert() via CoC and calling next insert(). You do not modify standard table code directly or create a new table.

Question 22

You have an enumeration named truckStatus that has the following statuses: ✑ Empty ✑ Loaded ✑ Completed You have the following code: You need to add the following statuses to the enumeration: Quarantine, InTransit What should you do?

Illustration for MB-500 question 22
A. Add a post handler to the method that checks the enumeration and logic for your new enumeration values using the enumeration value.
B. Add a post handler to the method that checks the enumeration and logic for your new enumeration values using a range comparison for your new values.
C. Add a new case statement in the model of the existing code.
D. Add a post handler to the method that checks the enumeration and logic for your new enumeration values using the integer value of the enumeration.
Show Answer
Correct Answer: A
Explanation:
Extend the enumeration with Quarantine and InTransit, then use a post-event handler to add handling for those values. The shown switch has no default case, so the extension guidance calls for handling the added enum values through an event handler. Use the enum values themselves, not range comparisons or integer values.

Question 22

DRAG DROP - A company is upgrading from Dynamics AX 2012 to Dynamics 365 Finance. The company converts its existing Dynamics AX 2012 model store to the upgraded metadata file. The company must upgrade its existing code base. You need to perform the code upgrade process. In which order should you perform the actions? To answer, move all 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.

Illustration for MB-500 question 22
Show Answer
Correct Answer: 1. Create a personal access token and use it to connect your Lifecycle Services project to Azure DevOps. 2. Run the upgrade process on Lifecycle Services. 3. Create the Trunk\Main folder structure on your Azure DevOps project repository and add the code in your upgraded metadata file. 4. Map your development environment to the Releases branch. 5. Build the code and fix the conflicts on Visual Studio and then merge the Releases branch into the Trunk\Main branch.
Explanation:
LCS must first be connected to Azure DevOps, then performs the code upgrade into the Releases branch. After preparing the repository and mapping the dev environment, developers resolve conflicts, build, and finally merge Releases into Main.

Question 23

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 in the review screen. You must extend the class SalesLineType and add a new method that returns the day of week for the system's current date as an integer value. You need to create a class that extends SalesLineType and adds the new method. Solution: You create the following code: Does the solution meet the goal?

Illustration for MB-500 question 23
A. Yes
B. No
Show Answer
Correct Answer: B
Explanation:
No. In X++, a class that extends another class through the `ExtensionOf` attribute must be declared `final`. The shown class is declared `public` instead, so the solution does not meet the goal.

Question 23

DRAG DROP - A company uses Dynamics 365 Finance. The company stores its software repository in a Git-based version control system. The company requires you to add a new feature to the existing code. You need to add your changes to the software repository. In which order should you perform the actions? To answer, move all actions from the list of actions to the answer area and arrange them in the correct order.

Illustration for MB-500 question 23
Show Answer
Correct Answer: 1. From a Git command line tool or user interface, select the existing branch you want to branch from. 2. Create a new branch that includes all recent changes. 3. Edit, save, and commit the code changes. 4. Pull and merge any new changes to the existing branch since the original branching. 5. Push code and create a pull request.
Explanation:
Standard Git workflow: branch from the target branch, develop and commit, synchronize with latest target branch changes, then push the branch and open a pull request.

Question 24

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 in the review screen. You must extend the class SalesLineType and add a new method that returns the day of week for the system's current date as an integer value. You need to create a class that extends SalesLineType and adds the new method. Solution: You create the following code: Does the solution meet the goal?

Illustration for MB-500 question 24
A. Yes
B. No
Show Answer
Correct Answer: A
Explanation:
The code uses an extension class for SalesLineType and adds a method that returns dayOfWk(systemDateGet()), which gives the current system date’s day of the week as an integer. Sources: https://www.freecram.com/discussions/Microsoft/exam-pl-300-topic-9-question-80-discussion-p1021907.html

Question 24

DRAG DROP - A company uses Dynamics 365 finance and operations apps. An employee must track the status of a document. The employee creates a workflow by using a custom approval element. You need to configure the workflow in the system. In which order should you perform the actions? To answer, move all actions from the list of actions to the answer area and arrange them in the correct order.

Illustration for MB-500 question 24
Show Answer
Correct Answer: 1. Develop the workflow approval component. 2. Create a workflow structure. 3. Configure the business process steps. 4. Enable the workflow for the business scenario.
Explanation:
In Dynamics 365 Finance and Operations, you first build the custom approval element, then assemble it into the workflow structure, configure the workflow/business process steps, and finally activate the workflow for the target business scenario.

$19

Get all 296 questions with detailed answers and explanations

  • Instant download HTML + PDF delivered the moment payment clears.
  • Secure Stripe checkout we never see or store your card details.
  • 7-day refund if files are defective see our refund policy.