Question 10 — AZ-104 Practice Exam 6
For each group-based licensing problem, drag it to the corresponding PowerShell violation code.
Each item may be used once, more than once, or not at all.
| Option | Correct Match |
|---|---|
| Not enough licenses available in the tenant | [Gap 1] |
| Conflicting service plans assigned at the same time | [Gap 2] |
| A dependent service is required by another product | [Gap 3] |
| User’s usage location doesn’t allow a service | [Gap 4] |
- DependencyViolation
- MutuallyExclusiveViolation
- QuotaExceeded
- CountViolation
- ProhibitedInUsageLocationViolation
- InvalidCredential
Correct answers
- Gap 1: CountViolation
- Gap 2: MutuallyExclusiveViolation
- Gap 3: DependencyViolation
- Gap 4: ProhibitedInUsageLocationViolation
Explanations
Correct Matches
CountViolation – Returned when there aren’t enough licenses available to satisfy the assignment.
MutuallyExclusiveViolation – Indicates two service plans conflict (for example, SharePoint Online Plan 2 vs Plan 1 or Exchange Online Plan 2 vs Plan 1).
DependencyViolation – A prerequisite plan must remain enabled for a dependent service to function; removing it triggers this violation.
ProhibitedInUsageLocationViolation – The user’s usage location disallows the service, so the assignment fails.
Unused Item(s)
InvalidCredential – Not used for license assignment business-logic failures in this context.
QuotaExceeded – Not the code surfaced for these license processing errors.