Question 343 of 1,000
Manage identity and accesshardMultiple ChoiceObjective-mapped

Quick Answer

The answer is to enable JIT and configure a custom workflow automation with an approval step. This is correct because Microsoft Defender for Cloud’s just-in-time VM access does not natively include a manager approval gate; instead, you integrate it with a custom workflow automation—typically an Azure Logic App—that enforces an approval step before ports are opened. On the AZ-500 exam, this scenario tests your understanding of how to layer governance onto JIT access, often appearing as a distractor where candidates mistakenly select “Enable JIT with Azure Policy” or “Use Azure RBAC only.” The common trap is assuming JIT’s built-in request process includes approval, but it only logs requests; you must explicitly build the approval workflow. Remember the mnemonic “JIT needs a JITter”—just-in-time access requires a just-in-time approval step via workflow automation to satisfy compliance.

AZ-500 Manage identity and access Practice Question

This AZ-500 practice question tests your understanding of manage identity and access. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. A key principle to apply: defender for Cloud JIT VM access reduces attack surface by closing management ports.. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

An organization uses Microsoft Defender for Cloud. They want to implement just-in-time (JIT) VM access for a set of production VMs. However, the security team needs to ensure that JIT access requests are always approved by a manager before opening ports. Which configuration should they use?

Clue words in this question

Noticing these words before you look at the options changes how you read each choice.

  • Clue: "always"

    Why it matters: Absolute qualifier. An answer using 'always' is only correct if there are genuinely no exceptions — absolute statements are often wrong in networking.

Question 1hardmultiple choice
Full question →

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Enable JIT and configure a custom workflow automation with an approval step

Option C is correct because Microsoft Defender for Cloud's JIT VM access can be integrated with a custom workflow automation that includes an approval step. This allows the security team to enforce manager approval before ports are opened, meeting the requirement for a formal approval process. The workflow automation can trigger an Azure Logic App or other action that requires a designated approver to authorize the request.

Key principle: Defender for Cloud JIT VM access reduces attack surface by closing management ports.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Enable JIT in Defender for Cloud and configure a logic app to send approval emails

    Why it's wrong here

    While a logic app can send emails, the approval step requires a proper workflow automation that pauses for approval; sending an email alone does not enforce approval.

  • Use Azure AD Privileged Identity Management (PIM) for JIT activation

    Why it's wrong here

    PIM manages just-in-time access to Azure AD roles and Azure resources roles, not VM access. VM access is managed separately by Defender for Cloud's JIT.

  • Enable JIT and configure a custom workflow automation with an approval step

    Why this is correct

    Defender for Cloud allows you to create automation rules that trigger Logic Apps. You can design the Logic App to require an approval (e.g., from a manager) before the JIT policy opens ports.

    Clue confirmation

    The clue word "always" in the question point toward this answer.

    Related concept

    Defender for Cloud JIT VM access reduces attack surface by closing management ports.

  • Use Conditional Access with session controls

    Why it's wrong here

    Conditional Access session controls are for cloud applications (e.g., Office 365), not for controlling access to virtual machines.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is confusing Azure AD PIM (which manages role activation) with JIT VM access (which manages network port openings), leading candidates to incorrectly select PIM for VM-level access control.

Detailed technical explanation

How to think about this question

JIT VM access in Defender for Cloud works by creating network security group (NSG) rules that allow inbound traffic only during approved time windows. The custom workflow automation feature uses Azure Event Grid to trigger a logic app or runbook when a JIT request is made, and the logic app can include an approval step via Microsoft Teams, email, or a custom app, which must be completed before the NSG rules are applied. This ensures that no port is opened without explicit manager consent, even if the user has JIT permissions.

KKey Concepts to Remember

  • Defender for Cloud JIT VM access reduces attack surface by closing management ports.
  • Workflow automation in Defender for Cloud can trigger Azure Logic Apps.
  • Logic Apps can be designed to include human approval steps.
  • Custom Logic Apps can integrate with JIT requests to enforce pre-approval.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Defender for Cloud JIT VM access reduces attack surface by closing management ports.

Real-world example

How this comes up in practice

A company's IT admin needs to give a contractor read-only access to production logs without sharing account credentials. Using role-based access control (RBAC) and temporary scoped permissions — not a permanent shared password — is the correct pattern. Questions like this test whether you can apply least-privilege access across cloud identity services.

What to study next

Got this wrong? Here's your next step.

Review defender for Cloud JIT VM access reduces attack surface by closing management ports., then practise related AZ-500 questions on the same topic to reinforce the concept.

Related practice questions

Related AZ-500 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free AZ-500 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this AZ-500 question test?

Manage identity and access — This question tests Manage identity and access — Defender for Cloud JIT VM access reduces attack surface by closing management ports..

What is the correct answer to this question?

The correct answer is: Enable JIT and configure a custom workflow automation with an approval step — Option C is correct because Microsoft Defender for Cloud's JIT VM access can be integrated with a custom workflow automation that includes an approval step. This allows the security team to enforce manager approval before ports are opened, meeting the requirement for a formal approval process. The workflow automation can trigger an Azure Logic App or other action that requires a designated approver to authorize the request.

What should I do if I get this AZ-500 question wrong?

Review defender for Cloud JIT VM access reduces attack surface by closing management ports., then practise related AZ-500 questions on the same topic to reinforce the concept.

Are there clue words in this question I should notice?

Yes — watch for: "always". Absolute qualifier. An answer using 'always' is only correct if there are genuinely no exceptions — absolute statements are often wrong in networking.

What is the key concept behind this question?

Defender for Cloud JIT VM access reduces attack surface by closing management ports.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Keep practising

More AZ-500 practice questions

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This AZ-500 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-500 exam.