Bird
Raised Fist0
Azurecloud~10 mins

Why identity management is foundational in Azure - Test Your Understanding

Choose your learning style10 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a new Azure Active Directory user.

Azure
az ad user create --display-name "John Doe" --user-principal-name john.doe@example.com --password [1]
Drag options to blanks, or click blank then click option'
A123456
Badmin
Cjohn.doe
DPassword123!
Attempts:
3 left
💡 Hint
Common Mistakes
Using a username instead of a password.
Using a weak password that Azure rejects.
2fill in blank
medium

Complete the code to assign the 'Reader' role to a user on a resource group.

Azure
az role assignment create --assignee john.doe@example.com --role [1] --resource-group MyResourceGroup
Drag options to blanks, or click blank then click option'
AOwner
BContributor
CReader
DUser Access Administrator
Attempts:
3 left
💡 Hint
Common Mistakes
Assigning 'Owner' or 'Contributor' roles when only read access is needed.
Using incorrect role names.
3fill in blank
hard

Fix the error in the command to enable multi-factor authentication (MFA) for a user.

Azure
az ad user update --id john.doe@example.com --[1] true
Drag options to blanks, or click blank then click option'
Astrong-authentication-required
Bforce-mfa
Cmfa-enabled
Denable-mfa
Attempts:
3 left
💡 Hint
Common Mistakes
Using non-existent parameters like 'enable-mfa'.
Confusing parameter names.
4fill in blank
hard

Fill both blanks to create a service principal with contributor role and assign it to a subscription.

Azure
az ad sp create-for-rbac --name [1] --role [2] --scopes /subscriptions/00000000-0000-0000-0000-000000000000
Drag options to blanks, or click blank then click option'
AMyAppSP
BReader
CContributor
DAdmin
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Reader' role when write access is needed.
Using invalid role names like 'Admin'.
5fill in blank
hard

Fill all three blanks to create a conditional access policy that requires MFA for users in group 'Admins'.

Azure
az ad conditional-access policy create --display-name [1] --state enabled --conditions "[2]" --grant-controls "[3]"
Drag options to blanks, or click blank then click option'
A"AdminsGroupCondition"
B"users/groups eq 'Admins'"
C"mfaRequired"
D"requireMfa"
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect condition syntax.
Using wrong grant control names.
Omitting quotes around strings.

Practice

(1/5)
1. Why is identity management considered foundational in Azure cloud services?
easy
A. It controls who can access resources and what they can do.
B. It speeds up the network connections between services.
C. It automatically backs up all data in the cloud.
D. It manages the physical hardware of Azure data centers.

Solution

  1. Step 1: Understand the role of identity management

    Identity management defines who can access cloud resources and their permissions.
  2. Step 2: Compare with other options

    The other options describe unrelated cloud functions like managing physical hardware, speeding up networks, and automatically backing up data.
  3. Final Answer:

    It controls who can access resources and what they can do. -> Option A
  4. Quick Check:

    Identity management = Access control [OK]
Hint: Identity management means controlling access rights [OK]
Common Mistakes:
  • Confusing identity management with data backup
  • Thinking it manages physical hardware
  • Assuming it speeds up network
2. Which Azure service is primarily used for identity management?
easy
A. Azure Active Directory
B. Azure Virtual Machines
C. Azure Blob Storage
D. Azure Kubernetes Service

Solution

  1. Step 1: Identify Azure services related to identity

    Azure Active Directory (Azure AD) is designed for managing users and access.
  2. Step 2: Eliminate unrelated services

    Blob Storage is for data storage, Virtual Machines for compute, Kubernetes for container orchestration.
  3. Final Answer:

    Azure Active Directory -> Option A
  4. Quick Check:

    Azure AD = Identity management [OK]
Hint: Azure AD manages users and access in Azure [OK]
Common Mistakes:
  • Choosing storage or compute services instead of identity
  • Confusing Azure AD with other Azure services
3. Consider this Azure role assignment code snippet:
az role assignment create --assignee user@example.com --role "Reader" --scope /subscriptions/12345

What is the effect of this command?
medium
A. Deletes the user from the subscription.
B. Grants the user read-only access to the subscription.
C. Grants the user full admin rights on the subscription.
D. Creates a new subscription named "Reader".

Solution

  1. Step 1: Analyze the command parameters

    The command assigns the "Reader" role to the user at the subscription scope, which means read-only access.
  2. Step 2: Understand role meanings

    "Reader" role allows viewing resources but no changes; it does not delete or create subscriptions.
  3. Final Answer:

    Grants the user read-only access to the subscription. -> Option B
  4. Quick Check:

    Role "Reader" = read-only access [OK]
Hint: Reader role means read-only permission [OK]
Common Mistakes:
  • Thinking Reader role grants admin rights
  • Confusing role assignment with user deletion
  • Assuming it creates new subscriptions
4. You run this Azure CLI command to assign a role:
az role assignment create --assignee user@example.com --role "Contributor" --scope /subscriptions/12345/resourceGroups/myGroup

But you get an error saying the user is not found. What is the likely cause?
medium
A. The subscription ID is invalid.
B. The role "Contributor" does not exist in Azure.
C. The user email is not registered in Azure Active Directory.
D. The resource group name is misspelled.

Solution

  1. Step 1: Understand the error message

    The error "user not found" means Azure cannot locate the user identity in Azure AD.
  2. Step 2: Check other options

    "Contributor" is a valid role, subscription ID format is correct, and resource group name errors cause different messages.
  3. Final Answer:

    The user email is not registered in Azure Active Directory. -> Option C
  4. Quick Check:

    User must exist in Azure AD to assign roles [OK]
Hint: User must exist in Azure AD before role assignment [OK]
Common Mistakes:
  • Assuming role names cause user not found errors
  • Blaming subscription or resource group names
  • Ignoring user registration in Azure AD
5. Your company wants to improve security by ensuring only authorized users can access sensitive Azure resources. Which identity management practice best supports this goal?
hard
A. Share a single admin account password among team members.
B. Assign all users the Owner role for easy access.
C. Disable Azure Active Directory to speed up access.
D. Use Azure Active Directory to assign least privilege roles and enable multi-factor authentication.

Solution

  1. Step 1: Identify best security practices in identity management

    Assigning least privilege roles limits access to only what users need, and multi-factor authentication adds extra security.
  2. Step 2: Evaluate other options

    Assigning Owner role to all users is risky, disabling Azure AD removes identity control, sharing passwords is insecure.
  3. Final Answer:

    Use Azure Active Directory to assign least privilege roles and enable multi-factor authentication. -> Option D
  4. Quick Check:

    Least privilege + MFA = Strong security [OK]
Hint: Least privilege and MFA improve security best [OK]
Common Mistakes:
  • Giving all users full Owner rights
  • Disabling identity management services
  • Sharing passwords among users
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard