Refer to the exhibit. You run the PowerShell command in Microsoft Entra ID to find compliance roles. You need to assign the Compliance Administrator role to a user. What is the correct parameter to use in the Add-AzureADMSRoleAssignment cmdlet?
The correct parameter to specify the role ID.
Why this answer
The `Add-AzureADMSRoleAssignment` cmdlet requires the `-RoleDefinitionId` parameter to specify the role by its unique identifier (GUID). The exhibit shows that the Compliance Administrator role has the ObjectId `173a97e2-97f2-4c7a-8e7c-7e2f1c1e2f1c`, which is the role's definition ID, not a user or group object ID. Therefore, option D correctly uses `-RoleDefinitionId` with that GUID.
Exam trap
The trap here is that candidates confuse the `-ObjectId` parameter (which identifies the assignee) with the role's identifier, or assume a friendly `-RoleName` parameter exists, when in fact the cmdlet strictly requires the role's GUID via `-RoleDefinitionId`.
How to eliminate wrong answers
Option A is wrong because `-ObjectId` is used to specify the user or group receiving the role assignment, not the role itself. Option B is wrong because `-RoleName` is not a valid parameter for `Add-AzureADMSRoleAssignment`; the cmdlet does not accept a role name string. Option C is wrong because `-RoleId` is not a parameter of `Add-AzureADMSRoleAssignment`; the correct parameter for the role's GUID is `-RoleDefinitionId`.