MD-102 Manage and maintain devices Practice Question
You are planning to deploy a custom line-of-business (LOB) app to 200 Windows 11 devices using Intune. The app requires a specific registry key to be present before installation. What should you do?
⚠ Common exam trap
Many exam-takers confuse requirement rules (which block installation if unmet) with detection rules (which determine if an app is already installed), or they mistakenly think app configuration policies can modify the Windows registry, when in fact they are limited to mobile device management (MDM) settings for specific platforms.
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
✓
Add a requirement rule to the app deployment that runs a PowerShell script to check for the registry key.
Intune's requirement rules allow you to run a PowerShell script that checks for the existence of a specific registry key before the app installs. If the script returns a non-zero exit code, Intune will not proceed with the installation, ensuring the prerequisite is met. This is the only option that directly enforces a precondition for the app installation without requiring additional apps or policies.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Add the app as a dependency for another app that creates the registry key.
Why it's wrong here
Dependencies are for other apps, not registry keys.
- ✗
Use an app configuration policy to set the registry key before the app installs.
Why it's wrong here
App configuration policies are for mobile apps.
- ✓
Add a requirement rule to the app deployment that runs a PowerShell script to check for the registry key.
Why this is correct
Requirement rules can use PowerShell scripts to check prerequisites.
- ✗
Create a custom compliance policy to enforce the registry key.
Why it's wrong here
Compliance policies check device state, not pre-install requirements.
Go deeper
Related to this question
Learn chapter
Planning Deployment and Architecture
Key term
Intune
Microsoft Intune is a cloud-based service that helps organizations manage their users' devices and applications, ensuring security and compliance without needing to own or control the physical hardware.
Key term
Windows 11
Windows 11 is Microsoft's latest desktop operating system, offering a redesigned interface, enhanced security features, and improved support for modern hardware.
About these practice questions
One of 942 original MD-102 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This MD-102 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 MD-102 exam.