Cyber Intelligence
Governance and Regulatory Compliance · part of 20-25% of exam

L5. RBAC, Resource Locks, Backup Security & Infrastructure as Code Guardrails

Video generating

Check back soon for the video lesson on RBAC, Resource Locks, Backup Security & Infrastructure as Code Guardrails

Course outlineLesson 5 of 18
SC-500 Exam Prep: course overview

The last line of defense against a compromised credential is how tightly its role is scoped, whether the resource can even be deleted, and whether the backup it needs to recover from can be deleted right along with it.

Azure Built-In Role Assignments

Azure ships broad built-in roles (Owner, Contributor, Reader) alongside narrower service-specific roles (Storage Blob Data Reader, Virtual Machine Contributor, Key Vault Secrets User). The core governance discipline is least privilege: assign the narrowest built-in role that satisfies the actual job, scoped to the smallest resource group or resource possible rather than the subscription.

Custom Roles

When no built-in role fits, a custom Azure role is defined in JSON with:

  • Actions — allowed management-plane operations
  • NotActions — explicit carve-outs from a broader Actions grant
  • DataActions / NotDataActions — data-plane operations (e.g., reading blob content, not just managing the storage account)
  • AssignableScopes — which management groups/subscriptions/resource groups the role can be assigned within
Microsoft Entra custom roles work the same way but scope to directory-level permissions (like managing specific app registrations) rather than Azure resource operations, and the two systems (Azure RBAC and Entra RBAC) are managed and assigned independently.

Evaluating and Remediating Overprivileged Access

Standing overprivileged assignments are found through:

  • Access reviews (recurring, reviewer-driven confirmation of continued need for a role assignment)
  • PIM analytics and audit history, showing which eligible roles are actually activated versus granted but never used
  • Manual review of IAM blade role assignments against actual job function, removing legacy assignments left over from role changes or offboarding gaps

Resource Locks

A resource lock is scope-independent of RBAC: even an Owner cannot delete (or, with a stricter lock, modify) a locked resource until the lock itself is removed.

  • CanNotDelete: authorized users can still read and modify the resource, but cannot delete it
  • ReadOnly: authorized users can read the resource but cannot modify or delete it, effectively freezing it

Locks are commonly applied to production networking components, Key Vaults, and other resources where an accidental delete would be catastrophic and hard to recover from.

Azure Backup Security Features

Ransomware and malicious insiders both target backups, so Azure Backup has hardening features beyond simple scheduling:

  • Soft delete: a deleted backup is retained (default 14 days) instead of purged immediately, giving time to detect and reverse a malicious deletion
  • Multi-user authorization (MUA): requires a second, independent set of approvers (via Azure Resource Guard, ideally in a separate subscription/tenant) before critical operations like disabling soft delete or deleting a backup can proceed, so a single compromised admin account cannot unilaterally destroy recovery points
  • Immutable vaults: once set, backup data in the vault cannot be deleted before its retention period expires, even by someone with full Owner rights, and the immutability setting itself can be locked to prevent reversal
  • Cross-region restore: allows recovery into a paired region if the primary region becomes unavailable

Security Controls via Infrastructure as Code

Shifting governance left means catching misconfigurations before deployment rather than after:

  • Policy as code / what-if analysis previews what an ARM or Bicep deployment would change before it's applied
  • Microsoft Defender for DevOps scans infrastructure-as-code templates (ARM, Bicep, Terraform) in source repositories for misconfigurations, surfacing findings back to the same Defender for Cloud recommendations used for runtime resources, so a bad configuration is caught in the pull request rather than after deployment
Exam tip: Expect a scenario contrasting RBAC (who can act) with resource locks (whether the action is possible at all, regardless of role) with backup MUA (requiring a second approver from a separate authorization boundary specifically to block a single compromised admin from destroying recovery points).

Exam Focus Points
  • Custom Azure roles define Actions/NotActions for management plane and DataActions/NotDataActions for data plane, scoped by AssignableScopes
  • Resource locks (CanNotDelete, ReadOnly) apply independently of RBAC role, blocking deletion or modification even for an Owner until removed
  • Azure Backup soft delete retains deleted recovery points for a retention window instead of purging immediately
  • Multi-user authorization requires a second, independently-authorized approver (via Resource Guard) before critical backup operations, blocking a single compromised admin from destroying backups
  • Immutable vaults prevent deletion of backup data before retention expires, and the immutability setting itself can be locked to prevent reversal
  • Microsoft Defender for DevOps scans IaC templates in source repos, surfacing misconfigurations before deployment rather than only after
Knowledge Check

1. An Owner-level administrator's credentials are compromised. Which control specifically prevents that single compromised account from disabling backup soft delete or deleting recovery points outright?

2. A production virtual network must never be accidentally deleted, even by an Owner, but should still be modifiable for legitimate configuration changes. What should be applied?

3. Where should infrastructure-as-code templates be scanned for security misconfigurations to catch problems before they are ever deployed?

Recommended: Pluralsight

This free course covers the theory. Pluralsight adds structured Cloud and AI Security Engineer learning paths, hands-on Azure and Defender for Cloud labs, and timed practice exams to make it stick before exam day.

Start SC-500 prep free10-day free trial · card required, cancel anytime before it renews