Google Cloude: Compute Engine Flashcards

1
Q

What is compute engine?

A

Compute Engine delivers configurable virtual machines running in Google’s data centers with access to high-performance networking infrastructure and block storage.

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

What is global load balancing?

A

Global load-balancing technology helps you distribute incoming requests across pools of instances across multiple regions, so you can achieve maximum performance, throughput, and availability at low cost.

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

What is multi-tenancy?

A

The scheme in which different VMs belonging to different customers run on the same physical machine is called the multi-tenancy model.

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

What are the benefits and downsides to multi-tenancy?

A

While multi-tenancy delivers better efficiency and economy of scale, a certain type of workloads suffers from the noisy neighbor problem. A VM running in multi-tenancy mode can consume maximum resources depriving other VMs their share. This scenario results in degraded performance of applications that demand unmatched bandwidth, storage throughput, and CPU time.

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

What are the benefits and downsides to single tenancy?

A

Single-tenancy ensures that customers have control over the placement logic. For workloads that need 100% access to hardware resources, customers can choose to deploy only one VM on the host. Even if they run multiple VMs, it’s guaranteed that all of them run on the same physical host assuring better privacy and security of data.

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

What are the benefits and downsides to single tenancy?

A

Single-tenancy ensures that customers have control over the placement logic. For workloads that need 100% access to hardware resources, customers can choose to deploy only one VM on the host. Even if they run multiple VMs, it’s guaranteed that all of them run on the same physical host assuring better privacy and security of data.

The downside is that the cost is much higher than multi-tenancy

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

Which opperating systems can be run on a vm?

A

Any:

Debian, CentOS, CoreOS, SUSE, Ubuntu, Red Hat Enterprise Linux, FreeBSD, or Windows Server 2008 R2, 2012 R2, and 2016.

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

What are the different predefined machine types?

A

n general purpose
m Optimised for memory and data
c Optimized for computing

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

What are preemptive vm’s?

A

Low-cost, short-term instances designed to run batch jobs and fault-tolerant workloads. Preemptible VMs provide significant savings of up to 80% while still getting the same performance and capabilities as regular VMs.

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

What is the difference between HDD and SDD persistent disks and the difference betwteen local and persistent disks?

A

Persistent storage is any data storage device that retains data after power to that device is shut off. GC offers two types of persistent disks HDD and SDD.

Standard HDD persistent disks are efficient and economical for handling sequential read/write operations, but are not optimized to handle high rates of random input/output operations per second (IOPS).

If your applications require high rates of random IOPS, use SSD persistent disks

GC also offers a local SSD. Unlike Persistent Disks, Local SSDs are physically attached to the server that hosts your VM instance. This tight coupling offers superior performance, very high input/output operations per second (IOPS), and very low latency compared to persistent disks.

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

What is live migration?

A

Compute Engine virtual machines can live-migrate between host systems without rebooting, which keeps your applications running even when host systems require maintenance.

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

What gpu’s are used by Google Cloud?

A

NVIDIA Tesla

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

Difference between CPU and GPU?

A

Architecturally, the CPU is composed of just a few cores with lots of cache memory that can handle a few software threads at a time. In contrast, a GPU is composed of hundreds of cores that can handle thousands of threads simultaneously.

CPU’s are good for serial processing, while GPUs are used mainly for parralel processing.

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

When should you add GPU’s to an instance?

A

Big data and Graphic intensive programs

GPUs can be added to accelerate computationally intensive workloads like machine learning, simulation, medical analysis, and virtual workstation applications.

If you have graphics-intensive workloads, such as 3D visualization, you can create virtual workstations that use NVIDIA GRID® platform

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

Which machine types can support GPU’s?

A

GPUs are currently only supported with general-purpose N1 machine types.

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

What is per second billing?

A

Google bills in second-level increments. You pay only for the compute time that you use.

17
Q

What are sustained use discounts?

A

Sustained-use discounts are automatic discounts for running Compute Engine resources for a significant portion of the billing month.

18
Q

What is the difference between an internal and external ip address?

A

internal is used to communicate between instances on the same virtual private cloud, whereas external is used to communicated with the internet

19
Q

Difference between static and ephemeral ip address?

A

Static external IP addresses are assigned to a project long term until they are explicitly released from that assignment, and remain attached to a resource until they are explicitly detached.For VM instances, static external IP addresses remain attached to stopped instances until they are removed.

Ephemeral external IP addresses are available to VM instances and forwarding rules. Ephemeral external IP addresses remain attached to a VM instance only until the VM is stopped and restarted or the instance is terminated. If an instance is stopped, any ephemeral external IP addresses that are assigned to the instance are released back into the general Compute Engine pool and become available for use by other projects. When a stopped instance is started again, a new ephemeral external IP address is assigned to the instance.

20
Q

What can be used, instead of an internal ip, to communicate internally between instances?

A

internal fully qualified domain name (FQDN)

21
Q

How to setup firewall for a vm instance?

A

Go to VPC
Create firewall rule and add a target tag
Go to the virtual machine instance, edit and ad the tag.

22
Q

What is a machine image?

A

A machine image is a Compute Engine resource that stores all the configuration, metadata, permissions, and data from one or more disks required to create a Virtual machine (VM) instance. You can use a machine image in many system maintenance scenarios, such as instance creation, backup and recovery, and instance cloning.

23
Q

How to install git on a linux machine?

A

sudo apt update
sudo apt upgrade
sudo apt install git

24
Q

What is the difference between App engine and Compute Engine?

A

App Engine is a Platform-as-a-Service. It means that you simply deploy your code, and the platform does everything else for you. For example, if your app becomes very successful, App Engine will automatically create more instances to handle the increased volume.

Compute Engine is an Infrastructure-as-a-Service. You have to create and configure your own virtual machine instances. It gives you more flexibility and generally costs much less than App Engine. The drawback is that you have to manage your app and virtual machines yourself.