Resource Groups Flashcards

1
Q

What are the ways of creating a resource group?

A
Azure portal
Azure CLI
Powershell
Templates
SDKZ (.NET, Java)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Can you nest resource groups?

A

No

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

Can a resource belong to more than one resource group?

A

No

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

What are the factors to consider when creating a resource group?

A

Organizing for authorization
Since resource groups are a scope of RBAC, you can organize resources by who needs to administer them. If your database administration team is responsible for managing all of your Azure SQL Database instances, putting them in the same resource group would simplify administration. You could give them the proper permissions at the resource group level to administer the databases within the resource group. Similarly, the database administration team could be denied access to the resource group with virtual networks, so they don’t inadvertently make changes to resources outside the scope of their responsibility.

Organizing for life cycle
We mentioned earlier that resource groups serve as the life cycle for the resources within it. If you delete a resource group, you delete all the resources in it. Use this to your advantage, especially in areas where resources are more disposable, like non-production environments. If you deploy 10 servers for a project that you know will only last a couple of months, you might put them all in a single resource group. One resource group is easier to clean up than 10 or more resource groups.

Organizing for billing
Lastly, placing resources in the same resource group is a way to group them for usage in billing reports. If you’re trying to understand how your costs are distributed in your Azure environment, grouping them by resource group is one way to filter and sort the data to better understand where costs are allocated.

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

Do tags applied at a resource group level propagate to resources within the resource group?

A

No. Tags are not inherited by resources in a resource group.

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

What is the maximum number or tags you can have for a resource?

A

50

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

What are the ways in which one can add and manipulate tags?

A

Powershell
Portal
CLI
Resource manager templates

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

Do all resource types support tags?

A

No

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

What are different usages of tags?

A

For automation: Add a tag such as WAkeUp:7am and create an automation job that looks for resources with that tag and wakes up or shuts down

Enrich alerts: including tags in alerts can help identify affected entities. eg. if department is finance then you would know finance is impacted

Find by tag: Can be used to retrieve resources from different resource groups containing the same tag

Billing data: Can be used to group billing data

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

What is the Azure Policy Service?

A

It provides a way to create, assign and manage policies

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

What are policies used for?

A

Policies can enforce things such as only allowing specific types of resources to be created, or only allowing resources in specific Azure regions. You can enforce naming conventions across your Azure environment. You can also enforce that specific tags are applied to resources.

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

How can you create and assign policies?

A

Portal, Powershell and CLI

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

What is roles based access control (RBAC)?

A

RBAC provides fine grained management of resources. enabling you to provide specific access rights to users to perform their jobs.

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

Which access model does RBAC use?

A

The allow model

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

What are resource locks?

A

They block the ability to delete or modify resources within the scope

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

List types of resource locks and what they do

A

Read-Only - Prevents you from adding or deleting reources

Delete - Prevents you from deleting reqources

17
Q

What resource types can resource locks be added to?

A

Subscriptions
Resource groups
Individual resources

18
Q

Are resource locks inherited?

A

Yes

19
Q

Do resource locks apply regardless of RBAC permissions?

A

Yes

20
Q

Where can you maintin resource locks?

A

Portal, PowerShell, CLI, Azure Resource manager templates

21
Q

How can you make sure that any removed locks are brought back to the original state?

A

User Azure blueprints. If a resource lock is removed then blueprints will check and bring them back in line with the original configuration

22
Q

What does SKU stand for?

A

Stock Keeping Unit