Virtual Machines - Essential Google Cloud Infrastructure: Foundation Flashcards

1
Q

What is VM

A

A VM is similar but not identical to a hardware computer.
VMs consists of a virtual CPU, some amount of memory, disk storage, and an IP address.

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

What is Compute Engine

A

Compute Engine is GCP’s service to create VMs.
It is very flexible and offers many options including some that can’t exist in physical hardware.
For example, a micro VM shares a CPU with other virtual machines, so you can get a VM with less capacity at a lower cost, or some VMs offer burst capability, meaning that the virtual CPU will run above its rated capacity for a brief period, using the available shared physical CPU.

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

What are main VM options

A

The main VM options are CPU, memory, discs, and networking.

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

Which type of service are VM

A

This is purely an infrastructure as a service or IaaS model.
Compute Engine gives you the utmost in flexibility: run whatever language you want—it’s your virtual machine.

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

What is primary work case for Compute Engine

A

The primary work case of Compute Engine is any generic workload, especially an enterprise application that was designed to run on a server infrastructure.

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

So what is Compute Engine
at its heart?

A

It’s physical servers that you’re used to, running inside the Google Cloud environment, with a number of different configurations.

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

What are Compute Engine main configurations

A

Both predefined and custom machine types allow you to:
- choose how much memory
- how much CPU you want.
- the type of disk you want, whether you want to use persistent disks backed up by standard hard drives or solid-state drives, local SSDs, Cloud Storage, or a mix.
- configure the networking interfaces
- run a combination of Linux and Windows machines.

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

Which are dependent VM configurations

A

Your choice of CPU will affect your network throughput.
Specifically, your network will scale at 2 gigabits per second for each CPU core, except for instances with 2 or 4 CPUs which receive up to 10 gigabits per second of bandwidth. there is a theoretical maximum throughput of 100 gigabits per second for an instance with 224 vCPU, when you choose an N2D machine series.

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

What are options to choose disk for VM

A

You have three options: Standard, SSD, or local SSD.

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

Standard hard disk is ?

A

standard spinning hard disk drives (HDDs) , will give you a higher amount of capacity for your dollar.

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

SSD

A

Flash memory solid-state drives (SSDs) will give you a higher number of IOPS per dollar. Local SSDs have higher throughput and lower latency than SSD persistent disks, because they are attached to the physical hardware.
However, the data that you store on local SSDs persists only until you stop or delete the instance.
Typically, a local SSD is used as a swap disk

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

Which privileges has creator of VM

A

the creator of an instance has full root privileges on that instance.
On a Linux instance, the creator has SSH capability and can use the Cloud Console to grant SSH (requires firewall rule to allow tcp:22) capability to other users.
On a Windows instance, the creator can use the Cloud Console to generate a username and password.
After that, anyone who knows the username a password can connect to the instance using a Remote Desktop Protocol (requires firewall rule to allow TCP:3389), or RDP, client.

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

How much time preemptible VM
has to gracefully shut down

A

For a preemptible VM, if the instance does not stop after 30 seconds, Compute Engine sends an ACPI G3 Mechanical Off signal to the operating system.

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

Does maintenance event shut down VM

A

Compute Engine can live migrate your virtual machine to another host due to a maintenance event to prevent your applications from experiencing disruptions.

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

How do we configure availability policies

A

These availability policies can be configured both during the instance creation and while an instance is running by configuring the Automatic restart and On host maintenance options.

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

What are two main components of OS patch management service

A

Patch compliance reporting
Patch deployment,

17
Q

Do you pay for terminated VM

A

When a VM is terminated, you do not pay for memory and CPU resources.
However, you are charged for any attached disks and reserved IP addresses.

18
Q

What you can not change on stopped VM

A

In the terminated state, you can changing the machine type,
migrate instance to another network, remove or set new static IP, modify instance tags….
but you cannot change the image of a stopped VM.

19
Q

What can you do if you need to delete instance

A

You can keep the boot disk and reuse it afterwards