- A
Enable JIT in Defender for Cloud and configure a logic app to send approval emails
Why wrong: 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.
- B
Use Azure AD Privileged Identity Management (PIM) for JIT activation
Why wrong: 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.
- C
Enable JIT and configure a custom workflow automation with an approval step
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.
- D
Use Conditional Access with session controls
Why wrong: Conditional Access session controls are for cloud applications (e.g., Office 365), not for controlling access to virtual machines.
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.
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
- ✓
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.
- →
Manage identity and access — study guide chapter
Learn the concepts, then practise the questions
- →
Manage identity and access practice questions
Targeted practice on this topic area only
- →
All AZ-500 questions
1,000 questions across all exam domains
- →
Microsoft Azure Security Engineer Associate AZ-500 study guide
Full concept coverage aligned to exam objectives
- →
AZ-500 practice test guide
How to use practice tests most effectively before exam day
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.
Secure identity and access practice questions
Practise AZ-500 questions linked to Secure identity and access.
Secure compute, storage, and databases practice questions
Practise AZ-500 questions linked to Secure compute, storage, and databases.
Secure Azure using Microsoft Defender for Cloud and Microsoft Sentinel practice questions
Practise AZ-500 questions linked to Secure Azure using Microsoft Defender for Cloud and Microsoft Sentinel.
Manage identity and access practice questions
Practise AZ-500 questions linked to Manage identity and access.
Secure networking practice questions
Practise AZ-500 questions linked to Secure networking.
AZ-500 fundamentals practice questions
Practise AZ-500 questions linked to AZ-500 fundamentals.
AZ-500 scenario practice questions
Practise AZ-500 questions linked to AZ-500 scenario.
AZ-500 troubleshooting practice questions
Practise AZ-500 questions linked to AZ-500 troubleshooting.
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 →
Keep practising
More AZ-500 practice questions
- A public web application should be protected from OWASP-style attacks and network-layer DDoS attacks. Which two Azure se…
- A security analyst uses Microsoft Defender for Cloud. They want to view a list of all security recommendations for their…
- A company uses Azure AD B2B collaboration to invite external vendors. They want to restrict the vendors to only be able…
- A company uses Defender for Servers Plan 2. Which two capabilities are included compared with a basic posture-only confi…
- A Sentinel detection should enrich alerts with business-critical asset context. Which two mechanisms are appropriate?
- A company uses Microsoft Defender for Cloud to manage its security posture. The compliance team wants to monitor the sub…
Last reviewed: Jun 11, 2026
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.
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.
Sign in to join the discussion.