Identity: RBAC Flashcards

1
Q

A role definition file

A

is a set of properties defined in a JSON file.

Name
ID
Description
Actions - allowable permissions
NotActions - denied permissions
AssignableScopes - scope
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Owner Role - Actions and NotActions

A

Actions: {*} #allowed everything
NotActions: {} #no denied actions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Contributor Role: Actions and NotActions

A

allow all actions except writing or deleting role assignment

Actions: *
NotActions: Microsoft.Authorization//Delete, Microsoft.Authorization//Write. Microsoft.Authorization/elevateAccess/Action

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Reader Role : Actions and NotActions

A

allowed to read only

Actions: {*/read}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Roles: AssignableScopes property

A

specifies the role scope - subscriptions, resource groups or resources.

  • /subscriptions/[subscription id]
  • /subscriptions/[subscription id]/resourceGroups/[resource group name]
  • /subscriptions/[subscription id]/resourceGroups/[resource group name]/[resource]
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Role Inheritance

A

A resource inherits role assignment from its parent resource

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Azure AD roles vs Azure RBAC roles

A

Azure RBAC roles control permissions to manage Azure resources (more fine grained)
Azure AD administrator roles control permissions to manage Azure Active Directory resources.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Azure RBAC (Security Principal)

A

A security principal is a user, group or application that you want to grant access to.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Azure RBAC (Role Definition)

A

A role definition is a collection of permissions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Azure RBAC (Scope)

A

Scope is where the access applies to.

Can be specified at multiple levels: management group, subscription, resource group or resource.

Permissions are inherited by child scopes. (i.e., assigning Contributor role at Resource Group level then all Resources in that Resource Group get the same permissions)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Azure RBAC (Role Assignment)

A

A role assignment is the process of binding a role to a security principal at a particular scope.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Suppose a team member can’t view resources in a resource group. Where would the administrator go to check the team member’s access?

A

Go to the resource group and select Access Control(IAM) > Check Access

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Suppose an administrator in another department needs access to a virtual machine managed by your department. What’s the best way to grant them access to just that resource?

A

At the resource group create a role for them with appropriate access.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Suppose a developer needs full access to a resource group. If you are following least-privilege best practices, what scope should you specify?

A

Resource Group

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Suppose an administrator needs to generate a report of the role assignments for the last week. Where in the Azure portal would they generate that report?

A

Search for Activity Log and filter on the Create role assignment (roleAssignments) operation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly