Resource Management Flashcards
What is hierarchy which resource manger manages
The resource manager lets you hierarchically manage resources by project, folder, and organization.
What are policies
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 are accumulated IAM policies, and how billing is accumulated
IAM policies are inherited top to bottom, billing is accumulated from the bottom up, as we can see on the right.
How is resource consumption measured
Resource consumption is measured in quantities like rate of use or time, number of items, or feature use.
what is billing assigned to
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.
Who track resources and quota usage.
and manages permissions and credentials
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 is project identified for the billing
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 are resources categoreized from a physical standpoint
From a physical organization standpoint, resources are categorized as
- global (Images, snapshots, networks)
- regional (External IP addresses)
- zonal (instances and disks)
What are Quotas
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.
What are quota categories
- 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)
Can quotas be increased
you can proactively request quota adjustments from the quotas page in the Cloud console.
What are quotas for
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.
What are labels
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.
Difference between labels and tags
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.
Main use of labels
Inventory
Filter resources
in scripts (help analize costs, run bulk operations)