Skip to main content
  1. Public practice questions
  2. AZ-104 Practice Exams | Azure Administrator Associate
  3. AZ-104 Practice Exam 6

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]
  1. DependencyViolation
  2. MutuallyExclusiveViolation
  3. QuotaExceeded
  4. CountViolation
  5. ProhibitedInUsageLocationViolation
  6. InvalidCredential

Correct answers

  1. Gap 1: CountViolation
  2. Gap 2: MutuallyExclusiveViolation
  3. Gap 3: DependencyViolation
  4. 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.