Microsoft 365 Administrator — Question 163
Your network contains an Active Directory domain named adatum.com that is synced to a Microsoft Entra tenant.
The domain contains 100 user accounts.
The city attribute for all the users is set to the city where the user resides.
You need to modify the value of the city attribute to the three-letter airport code of each city.
What should you do?
Answer options
- A. From Windows PowerShell on a domain controller, run the Get-ADUser and Set-ADUser cmdlets.
- B. From Azure Cloud Shell, run the Get-MgUser and Update-MgUser cmdlets.
- C. From the Microsoft Entra admin center, select all the Microsoft Entra users, and then use the User settings blade.
- D. From the Microsoft 365 admin center, select the users, and then use the Bulk actions option.
Correct answer: A
Explanation
The correct answer is A because using the Get-ADUser and Set-ADUser cmdlets allows you to directly modify Active Directory user attributes from a domain controller. Options B, C, and D do not provide the necessary direct access to modify the city attribute in Active Directory, as they pertain to different environments or interfaces that do not support this specific modification.