What is the main reason to create a custom role definition in Azure?
Think about why built-in roles might not always fit every need.
Custom roles allow you to specify permissions that are not covered by built-in roles, enabling precise access control.
Which JSON snippet correctly defines a custom role with permission to read storage accounts?
Check the exact property names and structure required by Azure for custom roles.
Azure custom role definitions use PascalCase property names like 'Name', 'IsCustom', 'Permissions', and 'AssignableScopes'. The 'Permissions' property is an array of objects containing 'Actions' and 'NotActions'. Option A matches the standard structure used in Azure documentation.
You assign a custom role at the resource group level. What is the effect on access permissions?
Consider how Azure RBAC scopes permissions hierarchically.
Assigning a role at the resource group level limits permissions to that group and its resources only.
Which practice best follows the least privilege principle when creating custom roles?
Least privilege means giving only what is necessary, nothing more.
Limiting permissions to only what is needed reduces security risks and follows best practices.
What happens if you create a custom role definition in Azure without specifying the 'AssignableScopes' property?
Think about the role assignment process and required properties.
'AssignableScopes' is mandatory; without it, Azure rejects the role definition as it cannot be assigned anywhere.