nerdexam
Microsoft

MB-500 · Question #380

Drag and Drop Question A company uses Dynamics 365 Supply Chain Management. You create a new table that will be used to initialize default values. The table contains the ItemId, InventSiteId, end…

The correct answer is Primary index; Clustered index. Explanation Context In Dynamics 365 SCM (X++), a table has three key index-related properties you can set at the table level (not the index level): | Property | Purpose | |---|---| | Primary index | Declares which unique index identifies each record uniquely | | Clustered index…

Design and develop AOT elements

Question

Drag and Drop Question A company uses Dynamics 365 Supply Chain Management. You create a new table that will be used to initialize default values. The table contains the ItemId, InventSiteId, end InventLocationId fields. Each item can be configured on multiple sites, but only at a single location on each site. The company requires a new index named ItemSiteLocationIdx to fulfill this requirement. You must also create an additional index named InventSiteIdx to order the items per site. You need to define the properties in the table to use both indexes. Which properties should you set? To answer, move the appropriate table properties to the correct requirements. You may use each table property once, more than once, or not at all. You may need to move the split bar between panes or scroll to view content. NOTE: Each correct selection is worth one point. Answer:

Exhibit

MB-500 question #380 exhibit

Answer Area

Drag items

Primary indexClustered indexReplacement key

Correct arrangement

  • Primary index
  • Clustered index

Explanation

Explanation

Context

In Dynamics 365 SCM (X++), a table has three key index-related properties you can set at the table level (not the index level):

PropertyPurpose
Primary indexDeclares which unique index identifies each record uniquely
Clustered indexControls the physical storage order of rows on disk
Replacement keyProvides a user-friendly natural key for lookups/forms

Why Each Property Goes Where

1. ItemSiteLocationIdxPrimary index

The business rule states: one item can appear on many sites, but only one location per site. This means the combination of (ItemId, InventSiteId) must be unique across the table.

ItemSiteLocationIdx enforces that uniqueness constraint - it is the natural candidate for Primary index, which in X++ must point to a unique index. This tells the AOS and database layer "this index uniquely identifies a record."

2. InventSiteIdxClustered index

The requirement explicitly says this index exists "to order the items per site." A Clustered index controls the physical row ordering on disk. Setting InventSiteIdx as the clustered index means rows are stored in site order, making site-based queries fast without a sort operation.

3. Replacement keyNot used

Replacement key is for surfacing a human-readable identifier in form lookups. Neither requirement involves UI display or natural key substitution, so it is a deliberate distractor.


Common Mistakes

  • Swapping Primary and Clustered: Candidates often set InventSiteIdx as Primary index - wrong, because an ordering-only index is not necessarily unique, and Primary index requires a unique index.
  • Using Replacement key: It sounds authoritative, but it only affects form/lookup presentation, not data integrity or storage order.
  • Confusing index-level vs. table-level properties: Allow Duplicates and Enabled are properties on the index itself, not what this question asks about. The question asks about table-level property settings.

Topics

#table indexes#clustered index#primary index#AOT table properties

Community Discussion

No community discussion yet for this question.

Full MB-500 Practice