Resource Management Flashcards

1
Q

What is hierarchy which resource manger manages

A

The resource manager lets you hierarchically manage resources by project, folder, and organization.

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

What are policies

A

Policies contain a set of roles and members, and policies are set on resources.
These resources inherit policies from their parent, but child policies can not restrict accesses granted on parent level

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

how are accumulated IAM policies, and how billing is accumulated

A

IAM policies are inherited top to bottom, billing is accumulated from the bottom up, as we can see on the right.

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

How is resource consumption measured

A

Resource consumption is measured in quantities like rate of use or time, number of items, or feature use.

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

what is billing assigned to

A

Because a resource belongs to only one project, a project accumulates the consumption of all its resources.
Each project is associated with one billing account, which means that an organization contains all billing accounts.

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

Who track resources and quota usage.
and manages permissions and credentials

A

Because a project accumulates the consumption of all its resources, it can be used to track resources and quota usage.

Specifically, projects that you enable billing, manage permissions and credentials, and enabled service and APIs.

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

how is project identified for the billing

A

A project can be identified by the project name,project number, which is automatically generated by the server and assigned to your project,
and there is the Project ID, which is a unique ID that is generated from your project name.

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

How are resources categoreized from a physical standpoint

A

From a physical organization standpoint, resources are categorized as
- global (Images, snapshots, networks)
- regional (External IP addresses)
- zonal (instances and disks)

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

What are Quotas

A

Quotas are the maximum amount of resources you can create (per project) for that resource type as long as those resources are available.
All resources in Google Cloud are subject to project quotas or limits.

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

What are quota categories

A
  1. How many resources you can a project create? (you can only have 15 VPC networks per project)
    2.How quickly you can make API requests in a project or rate limits. (you can only make five administrative actions per second per project when using the Cloud Spanner API)
    3.Regional quotas (you can only have 24 CPUs per region)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Can quotas be increased

A

you can proactively request quota adjustments from the quotas page in the Cloud console.

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

What are quotas for

A

Project quotas prevent runaway consumption in case of error or malicious attack.
(imagine you accidentally create 100 instead of 10 Compute Engine instances using the G Cloud command line)
Quotas also prevent billing spikes or surprises.
For sizing consideration and periodic review.

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

What are labels

A

Labels we just learned are user-defined strings and key-value formats that are used to organize resources and they can propagate true billing. You can attach labels to your resources, like VMs, disks, snapshots and images.

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

Difference between labels and tags

A

Tags, on the other hand, are user-defined strings that are applied to instances only and are mainly used for networking, such as applying firewall rules.

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

Main use of labels

A

Inventory
Filter resources
in scripts (help analize costs, run bulk operations)

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

How can you create and manage labels, and what is quota per resource

A

using the Google Cloud Console, gcloud or the Resource Manager API.
Each resource can have up to 64 labels.

17
Q

How do you set a budget

A

You set a budget name and specify which project this budget applies to.
Then you can set the budget at a specific amount or match it to the previous month’s spend.
After you determine your budget amount, you can set the budget alerts.

18
Q

What are budget alerts

A

alerts send emails to billing admins after spend exceeds a percentage of the budget or a specified amount.
or when the spend is forecasted to exceed the percent of the budget amount by the end of the budget period.
In addition to receiving an email, you can use Cloud Pub/Sub notifications to programmatically receive spend updates about this budget.
You could even create a Cloud function that listens to the PubSub topic to automate cost management.

19
Q

how can you analyize your budget

A

labeling all your resources and exporting your billing data to BigQuery to analyze your spend
Data Studio turns your data into informative dashboards and reports that are easy to read, easy to share, and fully customizable.