General Flashcards

1
Q

What is the Cloud Console?

A

The Cloud Console is a web UI used to manage GCP services

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

What are the 3 types of Service Accounts?

A
  1. User-defined Service Accounts
  2. Default Service Accounts (automatically created but managed by the user)
  3. Google-managed Service Accounts (Automatically created and managed by GCP)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the 3 project identifiers of every project?

A
  1. Project ID
  2. Project Name
  3. Project Number

A project ID is an immutable, globally unique identifier assigned by GCP. A project name is mutable, does not have to be unique, and is assigned by a user. A project number is similar to a project ID but is mostly used internally by GCP to keep track of resources.

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

Are projects billed separately?

A

By default, yes.

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

What are the 3 different tools that can be used to help you manage your cloud bill?

A
  1. Budgets and alerts
  2. Reports
  3. Quotas (are predefined but can be configured)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the 4 levels of GCP’s resource hierarchy and why is this important?

A

Level 4: Organization
Level 3: Folders
Level 2: Projects
Level 1: Service Resources

This is important because IAM policies are applied at these various levels. Furthermore, IAM policies applied at higher levels are inherited by lower levels.

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

What is the difference between global, regional, and zonal recources?

A

Global resources can be accessed by resources in any region or zone.

Regional resources can only be accessed by resources in the zones that make up that region.

Zonal resources can only be accessed by resources in the same zone.

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

How many zones does a region have?

A

3 or more

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

What are the 4 ways to interact with GCP services and resources?

A
  1. Cloud Console
  2. gcloud CLI
  3. Client libraries
  4. APIs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are some of the ways Client Libraries make it easier to use GCP services more efficiently?

A
  1. Many client libraries give you performance benefits by automatically calling the gRPC APIs instead of HTTP APIs
  2. Many client libraries automatically handle authentication by using ADCs
  3. Many client libraries automatically implement retry logic
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are GCP’s 5 available service emulators?

A
  1. Spanner
  2. Firestore
  3. Bigtable
  4. Pub/Sub
  5. Cloud Run (through Cloud Code)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How does a blue-green deployment work?

A

Blue-green deployments have 2 environments, blue = old environment and green = new environment. Once the new environment is ready, the old environment will stop receiving traffic and the new environment will begin receiving all the traffic. If something goes wrong, the traffic can be immediately redirected back to the old environment with 0 downtime. If everything goes well, the old environment is shutdown.

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

What is a canary deployment?

A

A canary deployment is a deployment strategy that gradually roles out a new version of an application to a small group of users.

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

Where does Google and the 12 Factor App recommend storing configuration?

A

Both Google and 12 Factor App recommend storing configuration as environment variables and not as constants in application code. This ensures that the same code can run across different environments.

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

What is a stateless application?

A

A stateless application is an application that does not retain any local persistent data or state.

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

Can a resource belong to more than one project?

A

No. A resource can only belong to one project at a time.

17
Q

Does every project have a linked billing account?

A

Yes. Every project has a linked billing account. In fact, a billing account can be linked to 1 or more projects.

18
Q

What are the 5 different types of cloud computing services?

A
  1. IaaS
  2. PaaS
  3. CaaS
  4. FaaS
  5. Saas

IaaS provides compute, storage, and networking resources as a service. Customers don’t have to maintain their own data center but are responsible for operating systems, applications, and data. Compute Engine is an example.

PaaS provides the infrastructure and environment to develop and deploy applications. Customers don’t have to maintain their own data center or environment but are responsible for their applications and data. App Engine is an example.

CaaS provides the infrastructure and environment necessary to develop and deploy container applications. Customers don’t have to maintain their own data center or environment but are responsible for their applications and data. Cloud Run and GKE are 2 examples.

FaaS provides the infrastructure and environment to execute event-driven applications. Cloud Functions is an example.

SaaS provides a full application as a resource that customers can easily use.

19
Q

Which GCP services are considered serverless?

A
  1. App Engine
  2. Cloud Run
  3. Cloud Functions
  4. GKE on Autopilot