0
0
Azurecloud~10 mins

Multi-factor authentication in Azure - Interactive Code Practice

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

Complete the code to enable multi-factor authentication (MFA) for a user in Azure AD.

Azure
az ad user update --id user@example.com --[1]
Drag options to blanks, or click blank then click option'
Amfa
Benable-mfa
Cforce-change-password-next-login
Dforce-mfa
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'enable-mfa' which is not a valid Azure CLI option.
Confusing password reset options with MFA enforcement.
2fill in blank
medium

Complete the code to create a Conditional Access policy that requires MFA for all users.

Azure
az ad conditional-access policy create --display-name "Require MFA" --state enabled --conditions users [1] --grant-controls operator RequireMultiFactorAuth
Drag options to blanks, or click blank then click option'
Ainclude
Bexclude
Call-users
Dnone
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'exclude' which would exclude users from the policy.
Using 'none' which applies to no users.
3fill in blank
hard

Fix the error in the command to enable MFA registration enforcement for all users.

Azure
az ad mfa [1] --all-users
Drag options to blanks, or click blank then click option'
Aenforce
Bregister
Cenable
Drequire
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'enable' which is not a valid subcommand here.
Using 'register' which is not a recognized command.
4fill in blank
hard

Fill both blanks to configure a Conditional Access policy that targets users and requires MFA.

Azure
az ad conditional-access policy create --display-name "MFA Policy" --state enabled --conditions users [1] --grant-controls operator [2]
Drag options to blanks, or click blank then click option'
Ainclude
BRequireMultiFactorAuth
Cexclude
DRequirePasswordChange
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'exclude' which would skip users.
Using 'RequirePasswordChange' which is unrelated to MFA.
5fill in blank
hard

Fill all three blanks to create a policy that includes all users, excludes guests, and requires MFA.

Azure
az ad conditional-access policy create --display-name "Secure Access" --state enabled --conditions users [1] --exclude-users [2] --grant-controls operator [3]
Drag options to blanks, or click blank then click option'
Ainclude
Bguests
CRequireMultiFactorAuth
Dall-users
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing 'all-users' with 'include' in the first blank.
Using 'RequirePasswordChange' instead of MFA enforcement.