Bird
Raised Fist0
Azurecloud~20 mins

Conditional access policies in Azure - Practice Problems & Coding Challenges

Choose your learning style10 modes available
Challenge - 5 Problems
🎖️
Conditional Access Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ service_behavior
intermediate
2:00remaining
How does a Conditional Access policy affect user sign-in?

Consider a Conditional Access policy that requires multi-factor authentication (MFA) only when users sign in from outside the corporate network. What happens when a user signs in from inside the corporate network?

AThe user is prompted for MFA regardless of location.
BThe user signs in without MFA because they are inside the corporate network.
CThe user is blocked from signing in.
DThe user must reset their password before signing in.
Attempts:
2 left
💡 Hint

Think about how location conditions in Conditional Access policies work.

❓ Architecture
intermediate
2:00remaining
Which Conditional Access policy setup best protects sensitive cloud apps?

You want to protect a sensitive cloud application so that only users on compliant devices can access it. Which Conditional Access policy configuration achieves this?

AAssign the policy to all users and require device compliance only for the sensitive app.
BAssign the policy to guest users and block access to the sensitive app.
CAssign the policy to all users and require MFA for all apps.
DAssign the policy to all users and block access from all devices.
Attempts:
2 left
💡 Hint

Focus on device compliance conditions and app targeting.

❓ security
advanced
2:00remaining
What is the effect of enabling 'Block legacy authentication' in Conditional Access?

Legacy authentication protocols do not support modern security features. What happens when you enable a Conditional Access policy that blocks legacy authentication?

AUsers can sign in using any authentication method without restrictions.
BUsers must use legacy authentication methods only.
CAll users are blocked from signing in regardless of protocol.
DSign-ins using legacy protocols like POP3 or IMAP are blocked, improving security.
Attempts:
2 left
💡 Hint

Consider what legacy authentication means and its security implications.

❓ Configuration
advanced
2:00remaining
Which JSON snippet correctly defines a Conditional Access policy requiring MFA for risky sign-ins?

Given the need to require MFA only when sign-in risk is medium or high, which JSON snippet correctly configures this condition?

A{ "conditions": { "signInRiskLevels": ["medium", "high"] }, "grantControls": { "operator": "OR", "builtInControls": ["mfa"] } }
B{ "conditions": { "signInRiskLevels": ["low"] }, "grantControls": { "operator": "AND", "builtInControls": ["mfa"] } }
C{ "conditions": { "signInRiskLevels": ["none"] }, "grantControls": { "operator": "OR", "builtInControls": ["mfa"] } }
D{ "conditions": { "signInRiskLevels": ["high"] }, "grantControls": { "operator": "AND", "builtInControls": ["block"] } }
Attempts:
2 left
💡 Hint

Check which risk levels trigger MFA and the correct grant control operator.

✅ Best Practice
expert
2:00remaining
What is the recommended approach to test a new Conditional Access policy before full deployment?

You created a Conditional Access policy that blocks access from unmanaged devices. What is the safest way to test this policy without disrupting all users?

ADelete the policy after creation to avoid any risk.
BEnable the policy for all users immediately to see if any issues arise.
CUse the 'Report-only' mode to monitor the policy impact without enforcing it.
DApply the policy only to guest users and ignore internal users.
Attempts:
2 left
💡 Hint

Think about how to observe policy effects safely before enforcement.

Practice

(1/5)
1. What is the main purpose of a Conditional Access Policy in Azure?
easy
A. To store user passwords securely
B. To create virtual machines automatically
C. To control user access based on specific conditions like location or device
D. To monitor network traffic continuously

Solution

  1. Step 1: Understand Conditional Access Policy purpose

    Conditional Access Policies are designed to control access to resources based on conditions such as user location, device state, or risk level.
  2. Step 2: Compare options with purpose

    Only To control user access based on specific conditions like location or device describes controlling user access based on conditions, which matches the policy's purpose.
  3. Final Answer:

    To control user access based on specific conditions like location or device -> Option C
  4. Quick Check:

    Conditional Access controls access by conditions = A [OK]
Hint: Focus on access control based on conditions, not unrelated tasks [OK]
Common Mistakes:
  • Confusing Conditional Access with general security monitoring
  • Thinking it manages passwords or virtual machines
  • Assuming it blocks all users without conditions
2. Which of the following is the correct way to require multi-factor authentication (MFA) in a Conditional Access policy?
easy
A. Disable all sign-in risk detections
B. Enable the policy without any conditions
C. Add a user to the policy without specifying controls
D. Set the grant control to 'Require multi-factor authentication'

Solution

  1. Step 1: Identify how MFA is enforced in Conditional Access

    MFA is enforced by setting the grant control to 'Require multi-factor authentication' in the policy settings.
  2. Step 2: Evaluate options for correct MFA enforcement

    Only Set the grant control to 'Require multi-factor authentication' correctly sets the grant control to require MFA; others do not enforce MFA properly.
  3. Final Answer:

    Set the grant control to 'Require multi-factor authentication' -> Option D
  4. Quick Check:

    MFA requires grant control setting = D [OK]
Hint: Look for 'grant control' settings to enforce MFA [OK]
Common Mistakes:
  • Enabling policy without specifying MFA control
  • Assuming adding users alone enforces MFA
  • Disabling risk detection does not require MFA
3. Given a Conditional Access policy that requires MFA only when users sign in from outside the corporate network, what happens if a user signs in from inside the network?
medium
A. The user is granted access without MFA
B. The user is blocked from signing in
C. The user must complete MFA every time
D. The user is forced to reset their password

Solution

  1. Step 1: Understand the policy condition

    The policy requires MFA only when users sign in from outside the corporate network, so inside network sign-ins are exempt.
  2. Step 2: Determine user experience inside the network

    Since the condition does not apply inside the network, users can sign in without MFA.
  3. Final Answer:

    The user is granted access without MFA -> Option A
  4. Quick Check:

    MFA required only outside network means inside no MFA = C [OK]
Hint: Check where conditions apply; inside network usually skips MFA [OK]
Common Mistakes:
  • Assuming MFA is always required regardless of location
  • Thinking users are blocked inside the network
  • Confusing MFA with password reset requirements
4. You created a Conditional Access policy to block access from unmanaged devices, but users report they can still sign in from their personal devices. What is the most likely cause?
medium
A. The policy is not assigned to the correct users or groups
B. The policy requires MFA instead of blocking access
C. The users are signing in from managed devices
D. The policy is disabled

Solution

  1. Step 1: Check policy assignment

    If users can sign in despite the block, the policy might not be assigned to those users or groups.
  2. Step 2: Evaluate other options

    The policy requires MFA instead of blocking access is incorrect because requiring MFA does not block access. The users are signing in from managed devices contradicts the problem statement. The policy is disabled would block all users, not just unmanaged devices.
  3. Final Answer:

    The policy is not assigned to the correct users or groups -> Option A
  4. Quick Check:

    Policy assignment controls who is affected = A [OK]
Hint: Verify policy targets users/groups to enforce rules [OK]
Common Mistakes:
  • Confusing MFA requirement with blocking access
  • Assuming devices are managed without verification
  • Forgetting to enable the policy
5. You want to create a Conditional Access policy that requires MFA only for users accessing a sensitive app from outside trusted locations, but allows seamless access otherwise. Which combination of conditions and controls should you configure?
hard
A. Assign policy to all users, target all apps, require MFA for all sign-ins regardless of location
B. Assign policy to users, target the sensitive app, set location condition to exclude trusted locations, grant control to require MFA
C. Assign policy to users, target the sensitive app, require password reset for all locations
D. Assign policy to users, target the sensitive app, block access from all locations except trusted ones

Solution

  1. Step 1: Define policy scope and conditions

    The policy should apply to specific users and the sensitive app only, with a location condition that excludes trusted locations.
  2. Step 2: Set grant control to require MFA

    Grant control should require MFA only when users access from outside trusted locations, allowing seamless access inside.
  3. Step 3: Evaluate other options

    Assign policy to all users, target all apps, require MFA for all sign-ins regardless of location forces MFA always, not conditional. Assign policy to users, target the sensitive app, require password reset for all locations incorrectly requires password reset. Assign policy to users, target the sensitive app, block access from all locations except trusted ones blocks access instead of requiring MFA.
  4. Final Answer:

    Assign policy to users, target the sensitive app, set location condition to exclude trusted locations, grant control to require MFA -> Option B
  5. Quick Check:

    Conditional MFA with location exclusion = B [OK]
Hint: Use location exclusion and grant control 'require MFA' for conditional access [OK]
Common Mistakes:
  • Applying MFA to all apps and users unnecessarily
  • Using block instead of MFA for outside locations
  • Confusing password reset with MFA requirement
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