GCP General Flashcards

1
Q

What is IaaS?

A

Virtualized data centers brought you Infrastructure as a Service,
IaaS, and Platform as a Service

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

What is PaaS?

A

Platform as a Service, PaaS

PaaS offerings, on the other hand,
bind application code you write to libraries that
give access to the infrastructure your application needs.
That way, you can just focus on your application logic.
In the IaaS model,
you pay for what you allocate.
In the PaaS model, you pay for what you use.

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

What is SaaS?

A

Software as a Service

applications like, Search, Gmail,
Docs and Drive are Software as
a Service applications in that they’re consumed directly over the internet by end users

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

What is a GCP Zone?

A

The ZONE is finest grain level

A zone is a deployment area for Google Cloud Platform Resources.

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

Is a GCP Zone the same as a DC?

A

Although people think of a zone as being like a GCP Data Center, that’s not strictly accurate because a zone
doesn’t always correspond to a single physical building

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

What is A GCP region?

A

A group of Zones closely located, usually have
round trip network latencies of under five milliseconds.

Locations within regions Think of a zone as a single failure domain within a region.

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

What is a multi-Region resource?

A

A few Google Cloud Platform Services
support placing resources in what we call a Multi-Region.

For example, Google Cloud Storage, which we’ll discuss later,
lets you place data within the Europe Multi-Region.
That means, it’s stored redundantly in at least two geographic locations, separated by at least 160 kilometers within Europe.

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

What is the GFE and what is it for?

A

Google services that want to make themselves available on the Internet
register themselves with an infrastructure service called the Google Front End,
which checks incoming network connections for correct certificates and best practices.
The GFE also additionally,
applies protections against denial of service attacks.

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

What are the 4 billing protection mechanisms that GCP provides?

A

1- budgets and alerts
2- billing
3- export
4- reports and quota

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

What are budgets and alerts?

A
You can define budgets either per
billing account or per GCP project.
A budget can be a fixed limit
or you can tie it to another metric.
For example, a percentage of the previous month spend.

To be notified when costs approach your budget limit, create an alert.

Alerts are generally set at 50 percent, 90 percent, and 100 percent. Customisable.

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

What are billing reports and quotas?

A

Reports is a visual tool in
the GCP console that
allows you to monitor your expenditure.

GCP also implements quotas,
which protect both account owners
and the GCP community as a whole.
Quotas are designed to prevent
the over-consumption of resources,
whether because of error or malicious attack.
Th
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What types of billing quotas are there?

A

There are two types of quotas: rate
quotas and allocation quotas.

Both get applied at the level of the GCP project.
Rate quotas reset after a specific time.

Allocation quotas, on the other hand, govern the number of
resources you can have in your projects.
For example, by default,
each GCP project has a quota allowing it no
more than five Virtual Private Cloud networks.

Although projects all start with the same quotas,
you can change some of them by requesting
an increase from Google Cloud support

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

What are the GCP Resource Hierarchy levels?

A

Resources are organised into Projects, Projects into Folders and Folders into Organisation Nodes

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

What are Projects?

A

All Google Cloud platform resources belong to a project.
Projects are the basis for enabling and using GCP services like managing APIs,
enabling billing and adding and removing
collaborators and enabling other Google services.
Each project is a separate compartment and each resource belongs to exactly one.

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

What is the purpose of Folders?

A

You can organize projects into folders, although you don’t have to.
They’re a tool at your disposal to make your life easier.
For example, you can use folders to represent different departments,
teams, applications or environments in your organization.
Folders let teams have the ability to delegate administrative rights,
so they can work independently.
The resources in a folder inherit IAM policies from the folder.

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

What is the Organisation Node for?

A

Most companies want the ability to have centralized visibility
on how resources are being used and to apply policy centrally.
That’s what the organization node is for.
It’s the top of the hierarchy.
There are some special roles associated with it.
For example, you can designate
an organization policy administrator so that
only people with privilege can change policies.
You can also assign a project creator role,
which is a great way to control who can spend money.

17
Q

Can Policies defined at a higher level be overriden?

A

There’s one important rule to keep in mind.
The policies implemented at a higher level in
this hierarchy can’t take away access that’s granted at a lower level.

18
Q

What is IAM?

A

Identity and Access Management

An IAM policy has a “who” part,
a “can do what” part,
and an “on which resource” part.

19
Q

What is an IAM Role?

A

The “can do what” part is defined by an IAM role.
An IAM role is a collection of permissions.
Most of the time, to do any meaningful operations,
you need more than one permission.
For example, to manage instances in a project,
you need to create, delete,
start, stop, and change an instance.
So the permissions are grouped together into a role that makes them easier to manage

20
Q

What can be an Identity in IAM?

A

The “who” part of an IAM policy can be a Google account,
a Google group, a Service account,
or an entire G Suite,
or Cloud Identity domain.

21
Q

What are the 3 Primitive roles in Cloud IAM?

A

owner, editor, and viewer roles.

Primitive roles are broad. You apply them to a GCP project and they affect all resources in that project.

22
Q

What can the viewer role do?

A

If you’re a viewer on a given resource,

you can examine it but not change its state.

23
Q

What can the editor role do?

A

If you’re an editor, you can do everything a viewer can do,
plus change its state.
If you’re an editor, you can do everything a viewer can do,
plus change its state.

24
Q

What can the Owner role do?

A

And if you are an owner, you can do everything an editor can do,
plus manage roles and permissions on the resource.

The owner role on a project also lets you do one more thing: set up billing.

25
Q

What is the billing administrator role?

A

Often, companies want someone to be able to control the billing for
a project without the right to change the resources in the project.
And that’s why you can grant someone the billing administrator role.

26
Q

What are the actions associated with a Compute Engine InstanceAdmin Role?

A

Compute Engines InstanceAdmin Role lets whoever has
that role perform a certain set of actions on virtual machines.

The actions are:
listing them,
reading and changing their configurations,
and starting and stopping them.

27
Q

What are Custom Roles

A

Custom Roles are user definedf groupings of actions for more fine grained control (rather than using the pre-difned ones like Compute Engines InstanceAdmin)

28
Q

Limitations of Custome roles?

A

A couple cautions about custom roles.
First, you have to decide to use custom roles. You’ll need to manage their permissions.

Second, custom roles can only be used at the project or organization levels. They can’t be used at the folder level.

29
Q

What is a service account?

A

Allows Compute Engine virtual machine to have permissions, rather than a person.

30
Q

How are Service Accounts Named?

A

Service accounts are named with an email address.

31
Q

Do Service Accounts use Passwords?

A

No, instead of passwords, they use cryptographic keys to access resources.

32
Q

Are Service Accounts also resources?

A

Yes, in addition to being an identity, a service account is also a resource.
So it can have IAM policies on its own attached to it.
For instance, Alice can have an editor role in
a service account and Bob can have the viewer role.
This is just like granting roles for any other GCP resource.