Microsoft

MB-500 Free Practice Questions — Page 4

Question 31

A company uses Dynamics 365 Finance. The company deploys a custom table named LoyaltyCustomerTable. The table has a 1:1 relationship with a table named CustTable. Both tables contain a unique field named AccountNum and share the same data. Using event handlers, all edits to CustTable are reflected within LoyaltyCustomerTable. The LoyaltyCustomerTable data is maintained by using the LoyaltyCustomerTable form. This form selects all data from both LoyaltyCustomerTable and CustTable and displays the records sorted by LoyaltyCustomerTable.AccountNum. LoyaltyCustomerTable was mistakenly created with no indexes. A significant delay occurs when users open the LoyaltyCustomerTable form. You need to improve performance by creating an index. Which method should you use?

A. Create a foreign key relation on LoyaltyCustomerTable with Related Table set to CustTable and Index set to RecId.
B. Create foreign key relation on CustTable with Related Table set to LoyaltyCustomerTable and Index set to RecId.
C. Create an index on CustTable for AccountNum.
D. Create a foreign key relation on LoyaltyCustomerTable with Related Table set to CustTable and Index set to AccountIdx.
Show Answer
Correct Answer: D
Explanation:
The performance issue is caused by joining and sorting on AccountNum while the custom table has no supporting index. In Dynamics 365 Finance, CustTable already has the AccountIdx index on AccountNum. Creating a foreign key relation on LoyaltyCustomerTable that references CustTable and uses the AccountIdx index creates the appropriate supporting index for the relationship and optimizes joins and ordering by AccountNum. Using RecId would optimize joins on RecId rather than AccountNum, creating an index on CustTable is unnecessary because it already exists, and the relationship direction in option B is incorrect.

Question 32

Contoso, Ltd. uses Dynamics 365 Finance. You receive reports of performance issues with the app. You need to use Performance Timer to investigate the issues. Which URL should you use?

A. https://contoso.cloudax.dynamics.com/?cmp=USMF&=perftimer
B. https://contoso.cloudax.dynamics.com/?cmp=USMF&debug=develop
C. https://contoso.cloudax.dynamics.com/?cmp=USMF&debug=perftimer
D. https://contoso.cloudax.dynamics.com/?cmp=USMF&develop=debug
Show Answer
Correct Answer: B
Explanation:
Performance Timer in Dynamics 365 Finance is accessed by enabling the development/debug mode using the `debug=develop` URL parameter. Once in developer mode, the Performance timer is available for investigating client performance. The other URL parameters shown are not valid for launching the Performance Timer directly.

Question 33

A company uses Dynamics 365 Finance. You must create a process that updates the following: • A single record for customer number A0001 in the customer table. • The value of its customer group to 10. You need to implement the process. Which code segment should you use?

A.
B.
C.
D.
Show Answer
Correct Answer: D
Explanation:
To update a single customer record in Dynamics 365 Finance using X++, the record should be selected with both a where clause targeting customer A0001 and the forUpdate keyword, and the update should be performed inside a ttsBegin/ttsCommit transaction before calling update(). This ensures the record is locked and the change is committed correctly.

Question 34

You are a Dynamics 365 Finance developer. You create an integer variable named inventQantity. You need to display the value from inventQantity in an info statement. Which code segment can you use?

A. info(int2str(inventQantity));
B. info(inventQantity);
C. info(strLen(int2str(inventQantity));
Show Answer
Correct Answer: A
Explanation:
In X++ for Dynamics 365 Finance, the info() function expects a string argument. Use int2str() to convert the integer variable to a string before passing it to info(). Option B passes an integer directly, and option C returns the length of the converted string rather than the integer value itself.

Question 35

HOTSPOT - You are implementing record-level security by using Extensible Data Security (XDS) in Dynamics 365 Finance. Users must be permitted to view sales orders only from customers they manage. You need to configure the CustGroup form. Which options should you use? To answer select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

Illustration for MB-500 question 35
Show Answer
Correct Answer: Simple query Context string Primary table RoleName
Explanation:
Use a simple query for a fixed constraint, context string to determine policy applicability, primary table as the secured table, and RoleName to target a specific role.

Question 36

DRAG DROP - You create a Power Apps app to display customer feedback. You need to submit and display customer feedback for each sales order. 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 36
Show Answer
Correct Answer: Configure and embed the app. Navigate to the Sales order form. Personalize the page. Refresh the browser.
Explanation:
In model-driven apps, first embed/configure the canvas app, then open the target Sales order form, personalize the form to display the embedded app, and finally refresh so the changes are loaded.

Question 37

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. A company is implementing Dynamics 365 finance and operations apps. The company must test the functionality of its native Dynamics 365 finance and operations apps by using the Acceptance test library (ATL). You need to implement ATL classes on test data within a development environment. Solution: Record business process steps and save as developer documentation by using Task recorder. Does the solution meet the goal?

A. Yes
B. No
Show Answer
Correct Answer: B
Explanation:
Task Recorder is used to capture and document business processes and can generate task guides or developer documentation, but it does not implement Acceptance Test Library (ATL) classes or create ATL test data entities. Implementing ATL classes for test data requires using the ATL framework and its classes, not Task Recorder.

Question 38

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. A company is implementing Dynamics 365 finance and operations apps. The company must test the functionality of its native Dynamics 365 finance and operations apps by using the Acceptance test library (ATL). You need to implement ATL classes on test data within a development environment. Solution: Use the ATL Code generation wizard to create the required queries, specifications, and entities. Does the solution meet the goal?

A. Yes
B. No
Show Answer
Correct Answer: A
Explanation:
The Acceptance Test Library (ATL) Code Generation wizard is designed to generate ATL artifacts such as queries, specifications, and entities from existing tables, which are then used to build ATL-based tests. Using it to create the required queries, specifications, and entities on test data in a development environment meets the stated goal.

Question 39

A company is implementing Dynamics 365 finance and operations apps. The company must test the custom enhancements for its native Dynamics 365 finance and operations apps. You need to create a test case within a development environment. Which base class should the test class extend?

A. SysTestSuite
B. SysTest
C. SysTestCase
D. SysTestExecute
Show Answer
Correct Answer: C
Explanation:
In Dynamics 365 Finance and Operations, unit test classes are created by extending the SysTestCase base class. SysTestCase provides the framework for defining test methods, setup/teardown behavior, and assertions. SysTestSuite is for grouping tests rather than serving as the base class for individual test cases, and the other options are not the standard base class for test implementation.

Question 40

DRAG DROP - A company uses Dynamics 365 Finance. You create two methods in a class: • MethodA is called only from the class. MethodA is not called from other locations in the code. Within MethodA, you must access class variables. • MethodB is called from other places in the app. MethodB does not need to instantiate the class or access the class variables. You need to implement the methods. Which method types should you use? To answer, drag the appropriate method types to the correct methods. Each method type may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.

Illustration for MB-500 question 40
Show Answer
Correct Answer: MethodA — Private instance MethodB — Public static
Explanation:
MethodA must access class variables and is only used within the class, so it should be a private instance method. MethodB is called from elsewhere and does not require an object instance or instance state, so it should be a public static method.

$19

Get all 295 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.