ExamGecko
Home / Microsoft / MB-500 / List of questions
Ask Question

Microsoft MB-500 Practice Test - Questions Answers, Page 2

List of questions

Question 11

Report
Export
Collapse

HOTSPOT

You are a Dynamics 365 Finance developer. You have the following code: (Line numbers are created for reference only.)

Microsoft MB-500 image Question 9 102606 10052024010131000000

Which values does the info() method return? To answer, select the appropriate option in the answer area.

NOTE: Each correct selection is worth one point.


Microsoft MB-500 image Question 11 102606 10052024010131000
Correct answer: Microsoft MB-500 image answer Question 11 102606 10052024010131000

Explanation:

Box 1: SID1234

Parameters All methods have their own scope. A method can take one or more parameters. Within the scope of the method, these parameters are treated as local variables and are initialized with a value from the parameter in the method call. All parameters are passed by value, which means that you can't change the value of the original variable. You can change only the local variable in the method. This local variable is a copy of the original variable.

Box 2: 5

Reference:

https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/dev-ref/xpp-classes-methods

asked 05/10/2024
Bob Tole
46 questions

Question 12

Report
Export
Collapse

HOTSPOT

You have a Dynamics 365 Finance environment.

You have the following code: (Line numbers are included for reference only.)

Microsoft MB-500 image Question 10 102607 10052024010131000000

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

NOTE: Each correct selection is worth one point.


Microsoft MB-500 image Question 12 102607 10052024010131000
Correct answer: Microsoft MB-500 image answer Question 12 102607 10052024010131000

Explanation:

Box 1: Yes

Class extension - Method wrapping and Chain of Command.

The functionality for class extension, or class augmentation, has been improved. You can now wrap logic around methods that are defined in the base class that you're augmenting. You can extend the logic of public and protected methods without having to use event handlers. When you wrap a method, you can also access public and protected methods, and variables of the base class. In this way, you can start transactions and easily manage state variables that are associated with your class.

Box 2: Yes In the following example, the wrapper around doSomething and the required use of the next keyword create a Chain of Command (CoC) for the method. CoC is a design pattern where a request is handled by a series of receivers. The pattern supports loose coupling of the sender and the receivers [ExtensionOf(classStr(BusinessLogic1))] final class BusinessLogic1_Extension { str doSomething(int arg) { // Part 1 var s = next doSomething(arg + 4); // Part 2 return s; } }

Box 3: Yes Instance and static methods can be wrapped by extension classes. If a static method is the target that will be wrapped, the method in the extension must be qualified by using the static keyword.

Box 4: No

Wrapper methods must always call next.

Note: Wrapper methods in an extension class must always call next, so that the next method in the chain and, finally, the original implementation are always called. This restriction helps guarantee that every method in the chain contributes to the result.

In the current implementation of this restriction, the call to next must be in the first-level statements in the method body.

Here are some important rules:

Calls to next can't be done conditionally inside an if statement.

Calls to next can't be done in while, do-while, or for loop statements.

A next statement can't be preceded by a return statement.

Because logical expressions are optimized, calls to next can't occur in logical expressions. At runtime, the execution of the complete expression isn't guaranteed.

Reference:

https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/extensibility/method-wrapping-coc

asked 05/10/2024
Victor Bogdan Grecu
34 questions

Question 13

Report
Export
Collapse

HOTSPOT

You are a Dynamics 365 Finance developer.

You have the following code: (Line numbers are included for reference only.)

Microsoft MB-500 image Question 11 102608 10052024010131000000

You need to evaluate the code.

What is the correct output for the method? To answer, select the appropriate option in the answer area.

NOTE: Each correct selection is worth one point.


Microsoft MB-500 image Question 13 102608 10052024010131000
Correct answer: Microsoft MB-500 image answer Question 13 102608 10052024010131000

Explanation:

Box 1: One, Two, Four, Fire

The statements in the finally clause are executed when control leaves the try block, either normally or through an exception.

Box 2: One, Three, Four, Five

Box 3: One, Three

Return ends the call.

Box 4: One, Three, One, Two, Four, Five

Retry restarts the try statement.

Reference:

https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/dev-ref/xpp-exceptions

asked 05/10/2024
Debaparna Bandyopadhyay
39 questions

Question 14

Report
Export
Collapse

HOTSPOT

You have the following code:

Microsoft MB-500 image Question 12 102609 10052024010131000000

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

NOTE: Each correct selection is worth one point.


Microsoft MB-500 image Question 14 102609 10052024010131000
Correct answer: Microsoft MB-500 image answer Question 14 102609 10052024010131000

Explanation:

Box 1: Yes

Add 1 to a date adds one day.

Box 2: No

You cannot do a real2int conversion on a Date.

Reference:

https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/customize/types-of-fields

asked 05/10/2024
Ishan Patel
42 questions

Question 15

Report
Export
Collapse

You are a Dynamics 365 Finance developer.

You have a table named FMVehicle that contains a field named VehicleId. The table has an index named VehicleIdIdx on the VehicleId field. You declare a table buffer named vehicle to refer to the table.

You need to select all records from the FMVehicle table in ascending order based on VehicleId field in the vehicle variable.

Which embedded-SQL statement should you use?

Microsoft MB-500 image Question 13 102610 10052024010131000000

Option A

Option A

Option B

Option B

Option C

Option C

Option D

Option D

Suggested answer: B

Explanation:

The 'index VehicleIdIdx' statement will cause an Order By Asc of the fields contained in the index. In this case, that means an Order By Asc of the VehicleID field.

asked 05/10/2024
THARINDU AMARASINGHE
30 questions

Question 16

Report
Export
Collapse

DRAG DROP

You create a Visual Studio project named CustomerDetailUpdate.

You must update data in a table named CustTable. You must be able to run the code from Visual Studio.

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.


Microsoft MB-500 image Question 16 102611 10052024010131000
Correct answer: Microsoft MB-500 image answer Question 16 102611 10052024010131000

Explanation:

Reference:

https://community.dynamics.com/365/financeandoperations/b/daxology/posts/runnable-class

asked 05/10/2024
Jason Content
25 questions

Question 17

Report
Export
Collapse

You create a new class.

Class compilation must fail if a specific method in the source code is called.

You need to mark the class with the appropriate attribute.

Which attribute should you use?

SysAppSecurityAttribute

SysAppSecurityAttribute

SysTestCategory

SysTestCategory

SysObsoleteAttribute

SysObsoleteAttribute

SysAttribute

SysAttribute

Suggested answer: C

Explanation:

Reference:

https://docs.microsoft.com/en-us/dynamicsax-2012/developer/overview-of-attribute-classes

asked 05/10/2024
Marcelo Tamaki
36 questions

Question 18

Report
Export
Collapse

DRAG DROP

You need to deploy the web portal integration solution.

Which four 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.


Microsoft MB-500 image Question 18 102548 10052024010131000
Correct answer: Microsoft MB-500 image answer Question 18 102548 10052024010131000

Explanation:

Scenario: You must install and configure a third-party solution for credit card processing within Dynamics 365 Finance. The third-party company will provide a deployable package.

You must develop a web portal that allows customers to browse products, place orders, and check order status. Product data for the web portal must be integrated as periodic batches.

You must configure the warehouse mobile device portal for warehouse operations.

You must install a third-party solution to support web portal integration. The solution is supplied as a source code model file.

Step 1: Add the package to source control and check in the changes.

Deployable packages from third parties can be manually installed on a development VM, and the installed artifacts can then be added to source control.

Step 2: Import the model into a Development environment.

Install a model in a development environment

Step 3: Synchronize the models in the Developer environment by using Get latest feature Because the models and runtime packages are in source control, other developers who use other development environments can just synchronize the models and packages to their workspace by using the Get latest feature of source control.

Step 4: Build and create a deployment package The build process will include this runtime package in the final deployable package. This allows customers to take the deployable package from the build and have one package to deploy to their environments. The one package includes both custom solutions and all the third party solutions.

Reference:

https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/dev-tools/manage-runtime-packages

https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/dev-tools/manage-runtime-packages#deploying-third-party-code

asked 05/10/2024
Paul Cessant
34 questions

Question 19

Report
Export
Collapse

HOTSPOT

You need to implement the reporting requirements for the Vendor exclusion list.

Which options you should use? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.


Microsoft MB-500 image Question 19 102613 10052024010131000
Correct answer: Microsoft MB-500 image answer Question 19 102613 10052024010131000

Explanation:

Scenario: Provide functionality to periodically export the Vendor exclusion list to prepare reports by using standard reporting capabilities of Dynamics 365 Finance.

Box 1: Financial Reporting

The financial reporting functions are available to users who have the appropriate privileges and duties assigned to them through their security roles.

Box 2: UIBuilder class

Example:

Defining parameters defaulting using code

1. In Solution Explorer, double-click on the FMRentalsByCustUIBuilder class to open the designer.

2. Locate the class build method and update the initialization code.

The parameter initialization code sets the default values of the report execution relative to today's date. Use the classes UIBuilder to override the framework's default handling of report parameters. Additional extension scenarios supported include:

Automatically set query ranges based on session context using Controller classes

Reference:

https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/analytics/create-nextgen-reporting-solutions

https://docs.microsoft.com/en-us/dynamics365/finance/general-ledger/financial-reporting-getting-started

asked 05/10/2024
Bert Schillemans
35 questions

Question 20

Report
Export
Collapse

You need to configure security for the Vendor Exclusion List report.

What are two possible ways to achieve this goal? Each correct answer presents a complete solution.

NOTE: Each correct selection is worth one point.

Create a new privilege, add a reference to an output menu item, and then add the new privilege to a role.

Create a new privilege, add a reference to an output menu item, and then add the new privilege to a role.

Create a new security policy and add an output menu item. Add the new security policy to duty extension and then to a role extension.

Create a new security policy and add an output menu item. Add the new security policy to duty extension and then to a role extension.

Create a new privilege extension and add an output menu item. Add the privilege to a duty extension and then to a role extension.

Create a new privilege extension and add an output menu item. Add the privilege to a duty extension and then to a role extension.

Create a new privilege and assign it to an output menu item. Add the new privilege to a duty extension and then add the duty extension to a role.

Create a new privilege and assign it to an output menu item. Add the new privilege to a duty extension and then add the duty extension to a role.

Suggested answer: A, D

Explanation:

Scenario: Develop necessary security permissions to view and maintain the new Vendor exclusion list functionality and reporting. Users with maintain rights will be able create, update, and delete the exclusion list. Permissions must be assigned to security roles to match company security model.

The privileges are simply a way to grant permissions to an entry point, which can be services, to a duty, role, or even directly to a user. Typically, we only add entry points to a privilege, such as menu items.

D: You can extend a Security Role or a Security Duty to add new duties/privileges to these elements.

Incorrect Answers:

C: We can't extend security privileges, we would always create a new privilege.

Reference: https://www.oreilly.com/library/view/extending-microsoft-dynamics/9781786467133/40a348f3-0f4c-4d47-a566-59f3a2e6afa0.xhtml https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/extensibility/customization- overlayering-extensions#security-role-and-duty-extensions

asked 05/10/2024
Andrea Tria
38 questions
Total 281 questions
Go to page: of 29
Search

Related questions