GCP Flashcards

To learn everything about GCP

1
Q

What is an instance on Compute Engine?

A

A virtual machine hosted on Google’s infrastructure.

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

What are three ways you can create a Compute Engine instance?

A

GCP console, gcloud command line tool, Compute Engine API.

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

What two types of images can be launched on Compute Engine?

A

Public, or custom images.

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

What do you specify when you create an image in a project?

A

zone, operating system, and machine type.

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

What are two ways to manage access to your Compute Engine instances?

A

Using OS login and managing SSH keys in project or instance metadata.

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

What are the states a Compute Engine instance can have?

A

provisioning, staging, running, stopping, repairing, terminated.

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

What applies when you stop a Compute Engine instance?

A

You pay for resources still attached to the vm (persistent storage, etc). You do not pay for the cost of running a vm. Ephemeral external IP addresses are released from the instance.

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

What is the command to list all GCE instances and statuses?

A

gcloud compute instances list

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

What is the command to describe the status of a single instance on GCE?

A

gcloud compute instances describe example-instance

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

What is a machine type on GCE?

A

Set of virtualized hardware resources available to a virtual machine (VM) instance, including system memory size, virtual CPU (vCPU) count, and persistent disk limits

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

What machine types can you choose from in GCE?

A

general-purpose, memory-optimized, and compute-optimized.

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

On GCE, what is each vCPU implemented as?

A

A single hardware hyper-thread on one of the available CPU Platforms.

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

What are the use cases for adding a vGPU to a GCE instance?

A

Graphics-intensive workloads, such as 3D visualization, 3D rendering, or virtual applications.

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

What is a Guest Environment on a GCE VM instance?

A

Set of scripts, daemons, and binaries that read the content of the metadata server to make a virtual machine run properly on Google Compute Engine

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

What does live migration allow for in GCE instances?

A

Virtual machine instances to keep running even when a host system event occurs, such as a software or hardware update.

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

What are instance templates good for in GCE?

A

Saving a VM instance’s configuration so you can use it later to create new VM instances or groups of VM instances.

17
Q

What are the four storage options for GCE?

A
  1. Zonal standard persistent disk and Zonal SSD persistent disk.
  2. Regional persistent disk and regional SSD persistent disk.
  3. Local SSD.
  4. Cloud storage buckets.
18
Q

What is App Engine?

A

A fully managed, serverless platform for developing and hosting web applications at scale.

19
Q

What are the two environments for App Engine?

A

Flex or Standard.

20
Q

App Engine is well suited for applications designed with what architecture?

A

microservices.

21
Q

When would the App Engine standard environment be appropriate for an application?

A
  1. Apps run in sandbox using runtime env. of supported language.
  2. App needs to deal with rapid scaling.
  3. Source code written in python 2.7 or 3.7, java 8 or 11, Nodejs 8, or 10, PHP 5.5 or 7.2. or 7.3,, Ruby 2.5, or Go 1.9 or 1.11 or 1.12.
  4. App intends to run at low cost - can scale to 0 instance when no traffic.
  5. App experiences sudden and extreme spikes of traffic which require immediate scaling.
22
Q

When would the App Engine flexible environment be appropriate for an application?

A
  1. App instances run within Docker containers on Compute Engine VM.
  2. Apps receive consistent traffic, experience regular traffic fluctuations, or meet the parameters for scaling up and down gradually.
  3. Source code written in any version of Python, Java, Node.js, Go, Ruby, PHP, or .NET.
  4. App runs in a Docker container that includes a custom runtime or source code written in other programming languages.
  5. App depends on frameworks that include native code.
  6. App accesses the resources or services of your Google Cloud Platform project that reside in the Compute Engine network.
23
Q

Which environment has the faster start up time for App Engine?

A

Standard. seconds compared to minutes.

24
Q

What is the maximum request timeout for the App Engine environments?

A

Standard: 60 secs
Flex: 60 min

25
Q

Which App Engine environment allows for background processes and debugging?

A

Flex.

26
Q

Which App Engine environment can scale to zero?

A

Standard.