Microsoft MB-500 Practice Test - Questions Answers, Page 6
List of questions
Question 51

You are a Dynamics 365 Finance developer.
You need to ensure that an integration is triggered when a specific process starts.
Which tool should you use to retrieve the status from the Production order?
Batch job
Periodic flow
Business event
Recurring Data Entity export
Explanation:
Business events can be used as triggers from D365FO in Power Automate/MS Flow in an end to end way.
Reference: https://community.dynamics.com/ax/b/happyd365fo/posts/triggers-using-business-event-in-power-automate-and-microsoft-dynamics-365-finance-and-operations
Question 52

HOTSPOT
You create the following cloud-based Dynamics 365 Finance environments:
A developer creates code extensions in the Development environment. The developer checks the code changes into an Azure DevOps branch.
You need to deploy the code changes to the Standard Acceptance Test environment.
What should you do? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Explanation:
Box 1: Build the code in the DevOps pipeline.
Box 2: Asset library
Run the export to the Asset library in Microsoft Dynamics Lifecycle Services (LCS).
Box 3: Select Maintain and Apply updates.
eprovision the target environment If you copy a database between environments, the copied database won't be fully functional until you run the Environment reprovisioning tool to make sure that all Commerce components are up to date.
Follow these steps to run the Environment reprovisioning tool.
1. In your project's Asset Library, in the Software deployable packages section, click Import.
2. From the list of shared assets, select the Environment Reprovisioning Tool.
3. On the Environment details page for your target environment, select Maintain > Apply updates.
4. Select the Environment Reprovisioning tool that you uploaded earlier, and then select Apply to apply the package.
5. Monitor the progress of the package deployment.
Reference:
https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/database/dbmovement-scenario-exportuat#back-up-to-the-asset-library
Question 53

You are a Dynamics 365 Finance developer. You make changes to an existing custom class.
The code comparison tool shows version conflicts between your version and the latest checked-in version of the custom class.
In Visual Studio, you open the Source Control Explorer. You locate the latest changeset for the class and you open the changeset in Team Explorer.
You need to compare the latest code that is in source control with the code that you created.
Which option should you use?
Compare with Workspace Version
Compare with Previous Version
View History
Compare with Latest Version
Explanation:
Reference:
https://docs.microsoft.com/en-us/azure/devops/repos/tfvc/compare-files?view=azure-devops
Question 54

DRAG DROP
A company implements Dynamics 365 finance and operations apps.
You are developing code to consume OData service endpoints. You complete the application registration process and gather the details required to create a C# console application.
You need to ensure that the console application interacts with Dynamics 365 Finance OData services.
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.
Explanation:
Step 1: Add the OData v4 client code generator
Install OData Client Code Generator
Step 2: Add the custom OData service endpoints to the ODataClient list After you downloaded, installed the OData V4 Client Code Generator and restart the Visual Studio you will be able to find and add 'OData Client' item into our project.
Step 3: Generate proxy classes
Step 4: Point the MetaDataDocumentURI variable top the Dynamics 365 Finance instance
You need to set MetaDataDocumentURI, which is generated by the OData Code Generator.
Reference:
https://devblogs.microsoft.com/odata/tutorial-sample-how-to-use-odata-client-code-generator-to-generate-client-side-proxy-class/
https://www.netwoven.com/2018/05/29/how-to-create-client-side-odata-proxy-dll-for-microsoft-dynamics-365-for-finance-and-operations-ax/
Question 55

DRAG DROP
You need to create the outstanding invoice report for the CFO.
Which attributes should you use? To answer, drag the appropriate attributes to the requirements. Each attribute answer may be used once, more than once, or not at all. You may need to drag the split between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
Explanation:
Scenario: The Chief Financial Officer (CFO) requires the following reports:
A report that shows all outstanding invoices, their cash discount types including the new minimum threshold applicable, and the amount of the discount. The report must only be accessed by users who are members of the Accounts
Payable Manager role.
Box 1: DataContractAttribute DataContractAttribute – This attribute is applied to an X++ class and specifies that the class can be used as a data contract (that it should be serialized).
Box 2: DataMemberAttribute DataMemberAttribute – This attribute is applied to a parm (parameter) method on an X++ data contract class and specifies that the data member should be serialized.
Box 3: SRSReportParameterAttribute
You set the SRSReportParameterAttribute attribute to the data contract you created for the RDP class.
Reference:
https://docs.microsoft.com/en-us/dynamicsax-2012/appuser-itpro/how-to-use-a-report-data-provider-class-in-a-report
Question 56

HOTSPOT
You need to configure security for the CashDisc form.
What changes should you make? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Explanation:
Question 57

You are training a new Dynamics 365 Finance developer.
You need to recommend where asynchronous integrations should be used instead of synchronous integrations.
For which scenario should you recommend asynchronous integration?
A retailer requires all new customer data captured at point of sale (POS) terminals through the day sent back to the system.
A service company needs workers to be able to access just-in-time inventory data from the field by using a third-party Software as a Service (SaaS) application to ensure they have parts to complete a service.
A retailer wants to ensure gift card balances are communicated back to the system from point of sale (POS) terminals in near real-time.
A company uses workflow for purchasing approvals, which then sends just-in-time approval information to a third-party application for approvers to review.
Explanation:
Classic data integration: Asynchronous, Classic data integration provides asynchronous and uni-directional data synchronization experience between model-driven applications in Dynamics 365 and Dynamics 365 Finance applications. It's an IT-administrator led experience and you must schedule the data sync jobs to run on a specific cadence. Classic data integration is suitable for business scenarios that involves bulk ingress/egress of data across Dynamics 365 applications.
Incorrect Answers:
B: Just-in-time inventory data required.
C: Real-time required. Not D: Bi-directional.
Note: Dual-write: Synchronous, Bi-directional.
Dual-write provides synchronous, bi-directional, near-real time experience between model-driven applications in Dynamics 365 and Finance applications. Data synchronization happens with little or no intervention and is triggered by create, update and delete actions on an entity. Dual-write is suitable for interactive business scenarios that span across Dynamics 365 applications.
Question 58

You are a Dynamics 365 Finance developer.
You make changes to an existing class.
You need to compare the code that is in source control with the updated class. In Visual Studio, you display Team Explorer.
What are three possible ways to achieve the goal? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
In Team Explorer, select Compare with Latest Version.
In Team Explorer, select Compare with Workspace Version.
In Team Explorer, select Compare Files.
Run the tf diff command.
Run the vsdiffmerge command.
Explanation:
Example:
In Team Explorer, right-click FMRental.xml, and select Compare with Latest Version.
Choose Compare with Latest Version to see how the changes you have made compare to the latest version of the file on your Team Foundation Server.
Choose Compare with Workspace Version to see what changes you have made to the version you checked out.
D: The diff tool of Visual Studio is very good to compare two files.
It compares, and if it is possible, displays differences between two files, files in two folders, or a shelveset and a local or a server file.
Syntax:
tf diff[erence] itemspec [/version:versionspec] [/type:filetype] [/format:format [/ignorespace] [/ignoreeol] [/ignorecase] [/recursive] [/options][/noprompt][/login:username,[password]]
Incorrect Answers:
E: vsdiffmerge is used for merging.
Reference:
https://docs.microsoft.com/en-us/azure/devops/repos/tfvc/difference-command
Question 59

An organization has two million customers that are part of the International customer group.
Validation must occur when customer records are updated. For all customers where the value of the customer group field is international, you must the delivery mode to Air.
You need to update the customer records.
Which two segments can you use? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
Explanation:
This is Update and Update_RecordSet Code sample. Result of both will be same .
TestTable TestTable; //Update_Recordset update_recordset TestTable setting Name ="New Enterprises" where TestTable.Accountnum =="uS-027"; //Update ttsBegin; while select forupdate TestTable where TestTable.Accountnum =="uS-027" {
TestTable.Name ="New Enterprises";
TestTable.update(); } ttsCommit; info("OK");
Reference:
https://community.dynamics.com/ax/b/technicaltutorialsformsdynamicsax2012/posts/update-and-update-recordset-code-sample-in-ax-2012
Question 60

You are training a new Dynamics 365 Finance developer.
You need to recommend where asynchronous integrations should be used instead of synchronous integrations.
For which scenario should you recommend asynchronous integration?
A warehouse wants to track movement of all inventory from scanners to the system.
A retailer wants to ensure gift card balances are communicated back to the system from point of sale (POS) terminals in near real-time.
A company uses an on-premises inventory management system that needs to receive sales order data every hour throughout the day.
A service company needs workers to be able to access just-in-time inventory data from the field by using a third-party Software as a Service (SaaS) application to ensure they have parts to complete a service.
Explanation:
Reference: https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/data-entities/integration-overview
Question