The answer is that the user is blocked from signing in immediately. This occurs because the PowerShell command `Set-MgUser -UserId user@domain.com -BlockCredential $true` sets the `BlockCredential` property to true, which instantly prevents any new authentication attempts against the user account without altering the password or deleting the user object. On the Microsoft 365 Administrator MS-102 exam, this command tests your understanding of Microsoft Graph PowerShell cmdlets for identity management, often appearing in scenario-based questions where you must distinguish between blocking sign-in, resetting passwords, or disabling accounts. A common trap is confusing `BlockCredential` with `AccountEnabled`; remember that `BlockCredential` only stops new logins while leaving the account enabled, whereas `AccountEnabled $false` disables the entire account. For a quick memory tip, think of "BlockCredential blocks the credential check" — it slams the door on new sign-ins but leaves the user profile intact.
MS-102 Deploy and manage a Microsoft 365 tenant Practice Question
This MS-102 practice question tests your understanding of deploy and manage a microsoft 365 tenant. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. 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.
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The user is blocked from signing in immediately.
The PowerShell command `Set-MgUser -UserId user@domain.com -BlockCredential $true` immediately blocks the user from signing in by setting the `BlockCredential` property to true. This prevents any new authentication attempts, effectively locking the account without changing the password or deleting the user.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
✗
The user is disabled after 90 days of inactivity.
Why it's wrong here
The command does not schedule any future action; it only updates sign-in activity record.
✓
The user is blocked from signing in immediately.
Why this is correct
Setting blockSignIn to $true blocks sign-in.
Related concept
Read the scenario before looking for a memorised answer.
✗
The user is deleted after 90 days of inactivity.
Why it's wrong here
The command does not delete the user.
✗
The user's password is reset.
Why it's wrong here
No password reset is performed.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates confuse `BlockCredential` with disabling the account or setting an inactivity policy, but the command only blocks sign-in immediately without any time-based or deletion behavior.
Trap categories for this question
Command / output trap
The command does not schedule any future action; it only updates sign-in activity record.
Detailed technical explanation
How to think about this question
The `BlockCredential` parameter modifies the `signInActivity` property in Microsoft Graph, specifically setting `blockedSignIn` to true, which prevents token issuance for that user. This is distinct from disabling the account via `-AccountEnabled $false`, which also blocks sign-in but is often used for permanent deactivation. In a real-world scenario, an admin might use `BlockCredential` to temporarily lock an account during a security incident while preserving the user object and password hash.
KKey Concepts to Remember
Read the scenario before looking for a memorised answer.
Find the constraint that changes the correct option.
Eliminate answers that are true in general but not in this case.
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
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
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.
Related glossary terms
Concepts from this question explained
These glossary pages explain the core terms tested in this MS-102 question in full detail.
Deploy and manage a Microsoft 365 tenant — This question tests Deploy and manage a Microsoft 365 tenant — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: The user is blocked from signing in immediately. — The PowerShell command `Set-MgUser -UserId user@domain.com -BlockCredential $true` immediately blocks the user from signing in by setting the `BlockCredential` property to true. This prevents any new authentication attempts, effectively locking the account without changing the password or deleting the user.
What should I do if I get this MS-102 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
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 →
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.
This MS-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 MS-102 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.