ExamGecko
Home Home / Microsoft / MB-500

Microsoft MB-500 Practice Test - Questions Answers

Question list
Search
Search

List of questions

Search

Related questions











HOTSPOT

You need to implement the integration for the Vendor Exclusion List form.

What should you do? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.


Question 1
Correct answer: Question 1

Explanation:

Box 1: Table extension

Isolate all new vendor exclusion codes as a new assembly by creating a table named VendExclusions.

Implement the Excel integration for the Vendor Exclusion List form.

The table extension object allows you to add additional fields or to change some properties on a table provided by the Dynamics 365 Business Central service. In this way, you can add data to the same table and treat it as a single table.

Box 2: Unique key

Create an index for the table named PrimaryIdx that uses the following fields: CustAccount, ItemId, VendAccount.

Box 3: Build and synchronize the database.

A project property lets you specify that the synchronize operation for the database should be performed every time that you build the project. This can be useful when you're making changes to the table structure for an application. Each time that you build, you will know that the database is synchronized with the tables as they are defined in the project.

Reference:

https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-table-ext-object

https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/dev-tools/build-operations#synchronizing-the-database-at-each-build

HOTSPOT

The system includes the following code: (Line numbers are included for reference only.)

You need to apply changes to address User2's issues.

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

NOTE: Each correct selection is worth one point.


Question 2
Correct answer: Question 2

Explanation:

Scenario: User2 reports performance issues when they generate direct delivery purchase orders after current updates are applied.

Also: You must implement validation to check whether a proposed direct delivery purchase order vendor is on the exclusion list for the customer and product combination.

Box 1: No

The firstOnly keyword helps speed up the fetch by returning only the first row.

Box 2: No

Box 3: Yes

Box 4: Yes RecId stands for Record Identifier. It is often called RowId (row identifier). It is a unique and incremental value stored with each and every row of the table. In Microsoft Dynamics AX 2012 and Microsoft Dynamics 365 for Finance and

Operations, RecId is used as unique identifiers and to create relations between tables.

Another important point is the difference between RecId and Id. In simple words, RecId is generated by the kernel whereas the Id is generated by the application itself.

RecId is used to find out the unique row in the table.

Reference:

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

https://community.dynamics.com/ax/b/nevoitechax/posts/what-is-recid-in-microsoft-dynamics-ax-365fo

You are a Dynamics 365 Finance developer. You create an integer variable named totalSales.

You need to display the value from totalSales in an info statement.

Which three code segments can you use? Each correct answer presents a complete solution.

NOTE: Each correct selection is worth one point.

A.

Option A

A.

Option A

Answers
B.

Option B

B.

Option B

Answers
C.

Option C

C.

Option C

Answers
D.

Option D

D.

Option D

Answers
E.

Option E

E.

Option E

Answers
Suggested answer: A, C, D

Explanation:

A: int2Str converts an integer to the equivalent string.

C: any2Str converts an anytype value to a str value. The anytype data type is a placeholder for any data type.

D: Example:

void MyMethod() { for (int i = 0; i < 10; i++) { info(strfmt("i is %1", i)); } }

Reference:

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

https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/dev-ref/xpp-data-primitive#anytype

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?

A.

Option A

A.

Option A

Answers
B.

Option B

B.

Option B

Answers
C.

Option C

C.

Option C

Answers
D.

Option D

D.

Option D

Answers
Suggested answer: A

Explanation:


You are a Dynamics 365 Finance developer. You create a class.

You need to mark the class to ensure that when code is compiled, the process fails if a specific method is called in the source code.

Which attribute should you use?

A.

SysEntryPointAttribute

A.

SysEntryPointAttribute

Answers
B.

getAttributes

B.

getAttributes

Answers
C.

SysAttribute

C.

SysAttribute

Answers
D.

SysObsoleteAttribute

D.

SysObsoleteAttribute

Answers
Suggested answer: D

Explanation:

One use of the SysObsoleteAttribute class is to notify the compiler that the compile should fail if a particular method is called in the source code. The compiler rejects the compile, and displays the specific message that is stored in this use of the attribute.

Reference:

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

You are using the SysTest framework to test code in Visual Studio.

You need to create a unit test class.

Which three attributes can you use to create the class? Each correct answer presents a complete solution.

NOTE: Each correct selection is worth one point.

A.

TestFilter

A.

TestFilter

Answers
B.

Priority

B.

Priority

Answers
C.

Owner

C.

Owner

Answers
D.

EntryPoint

D.

EntryPoint

Answers
E.

Test Property

E.

Test Property

Answers
Suggested answer: B, C, E

Explanation:

The SysTest framework now supports the major test attributes in the adaptor to be on par with the MSTest framework adaptor. This includes attributes like Category, Owner, Priority, and Test Property.

Note:

The Priority attribute SysTestPriority, which requires an integer value, is now available. A priority can only be specified once, but is supported on both the class and method level, with method level taking precedence over class level.

The Owner attribute, SysTestOwner, has also been added. This attribute was technically already supported for filtering in the Test Toolbox window, but the attribute itself was missing in X++. Similar to Priority, an owner can only be specified once and is supported on both the class and method level, with the method level taking precedence.

SysTestProperty specifies a property and a value (two strings), and can now be used in the Test Toolbox window in Visual Studio. Test Property can be specified multiple times, and can exist on both the class and method level.

Reference:

https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/perf-test/systest-filtering

HOTSPOT

You have the following class definition:

You need to create an extension class and create a new static method in it that converts miles to kilometers and then call the method from another class.

How should you complete the code and call the method? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.


Question 7
Correct answer: Question 7

Explanation:

Box 1: final class UnitConv_MyExtension

Box 2: var km = UnitConv::miToKm(62.1371);

Reference:

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

HOTSPOT

You are the Dynamics 365 Finance Developer.

You have the following class definition:

You need to create an extension class and wrap the method by using Chain of Command (CoC), if the value of the Qty variable is less than 5, the code must cause an exception.

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.


Question 8
Correct answer: Question 8

Explanation:

Box 1: final class WebShopOrderVal_Extension

Box 2: public static void checkQtyValue(int Qty)

Incorrect Answers:

Public void …

If a static method is the target that will be wrapped, the method in the extension must be qualified by using the static keyword.

Int Qty=0

The method signature in the wrapper method must not include the default value of the parameter.

Public int

Reference:

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

HOTSPOT

You have 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.


Question 9
Correct answer: Question 9

Explanation:

Box 1: Yes

Here CashDiscountDP is the name of the secure server method that is tagged with the SysEntryPointAttribute attribute.

Box 2: Yes

To define a report data provider class An RDP class extends the SRSReportDataProviderBase class. You set the SRSReportParameterAttribute attribute to the data contract you created for the RDP class.

Box 3: No

Instead:

public void processReport()

Reference:

https://docs.microsoft.com/en-us/dynamicsax-2012/developer/security-privilege-properties

https://docs.microsoft.com/en-us/dynamicsax-2012/appuser-itpro/how-to-use-a-report-data-provider-class-in-a-report

DRAG DROP

You create a Visual Studio project named ProductUpdates.

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

You need to create an X++ class.

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.


Question 10
Correct answer: Question 10

Explanation:

Reference:

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

Total 281 questions
Go to page: of 29