Test 1 Flashcards

1
Q

What are the Pros and Cons of Full Virtualization?

A

Full Virtualization
Pros:
No source code modification required
Easy to implement
Feasible for all CPU architectures
Cons:
Latency from OS/HW emulation
Hard to provide real-time guarantees

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

What are the pros and cons of paravirtualization?

A

Paravirtualization
Pros:
Better performance compared to full virtualization
25-75% less RAM usage
2-20% less disk I/O
10% less network I/O
7% less CPU usage for privileged instructions
Cons:
Requires OS modification
Poor portability
Not compatible with off-the-shelf or legacy OS versions

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

What is a rack?

A

A large amount of servers mounted and connected together

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

What is a cluster?

A

A collection of server racks

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

How are things stored in data centers?

A

Through a combination of SSDs and HDDs

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

What is the main use case of SSD?

A

Accessing data

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

What is the main use case of HDD?

A

Storing data for long term use

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

What is Directed Attached Storage?

A

Storage directly connected to the server

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

What are Network Storages?

A

Storage connected to a cluster level switch

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

What are some attributes of Directed Attached Storage?

A

Backup (at least three) is managed by a distributed file system, low cost but low reliability

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

What are some attributes of Network Storage?

A

Contains redundancy and replication mechanisms

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

What is the goal of data center software?

A

To maximize the locality of communication and data relative to the rack

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

Where are data centers located?

A

Close to internet backbone optical fibers
Areas with cheap and reliable electricity
Areas with low property tax rates
Areas with high stability in the country

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

What is CAPEX?

A

Capitial Expenditure which includes the building, power, cooling infrastructure, and initial IT equipment

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

What is OPEX?

A

Operational Expenditure which includes, buying replacement equipment, electricity, and salaries

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

What takes up the most of a Data Centers power?

A

CPUs, DRAM, Disks, and Networking

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

Why does power consumption in Data Centers matter?

A

It costs alot of money

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

What percentage of global energy is used by data centers?

A

1%

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

How to quantify Energy Efficiency?

A

PUE Power Usage Effectiveness
1+Non IT Equipment Power/ IT Equipment Power

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

Which is better a higher PUE or lower PUE

A

Lower PUE 1 is ideal

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

What is held in the HW layer of Google Data Centers?

A

Servers, Storage, Networks, Accelerators, Physical Infrastructures

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

What is held in the Virtualization layer of Google Data Centers?

A

Bios, MGMT Controller, Drivers, Kernel

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

What is held in the Resource MGMT layer of Google Data Centers?

A

BORG Master, BORGLET, Chunkserver

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

What is held in the Cluster Infrastructure layer of Google Data Centers?

A

Mapreduce, Spanner, Colossus, Remote Procedure, Auto Scaling

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

What is held in the app framework layer of Google Data Centers?

A

Serving Infra, Data Analysis, User Experience, Front End Infra

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

What is held in the Monitoring Infrastructure?

A

Service Level Dashboards
Performance Debugging tools
Platform level health monitoring

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

What is in the App Framework?

A

Application Frameworks
Application Level Software

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

What are the two classes of Data Center Workloads?

A

Service Workloads
In-house Workloads

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

What are Service workloads?

A

Work loads meant to deal with user concerns directly

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

What are In House Workloads?

A

Workloads meant to deal with concerns related to in house production

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

Why are there two classes of workloads in Data Centers?

A

To over provision in the case of a traffic spike

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

What are the three different types of DC workloads?

A

1st party workloads
1st party workloads offered to 3rd party customers
3rd party workloads

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

What is VM migration?

A

Moving a VM from one host to another

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

What are the five benefits of Virtualization?

A

Run multiple/different OSes on a single machine
Consolidate underutilized servers to reduce CAPEX and OPEX
Simplified management
Improved availability
Enforced Security

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

What are some VM migration use cases?

A

Load balancing
Maintenance
Fault tolerance and Failover

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

What is Load balancing?

A

Moving a VM to a less busy host

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

What is Maintenance in the context of VM migration Use Cases?

A

Moving a VM from one host to another before the first hosts shut down

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

What is the most common cause of Data center failure?

A

Upgrades, but more generally maintenance

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

What is Fault Tolerance and Failover in the context of VM migration use cases?

A

Recovery VM from host failure, restart VMs on different hosts

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

What are the two types of VM migrations?

A

Cold Migrations and Hot Migrations

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

What is Cold Migration?

A

When you shut down the first VM on host 1 and then restart on host 2

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

What are the phases of Live Migration?

A

Phase One Take a VM snapshot and then save VM state
Phase Two Start a new VM with snap shot and duplicate VM state
Phase Three Copy final state of source VM, turn off source VM, Update the last copy of VM state
Phase Four Add to service network

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

Does live migration have service downtime?

A

Yes (1 to 2 seconds)

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

What is total migration time?

A

Duration between time when migration is initiated and time when the migrated VM is resumed

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

What is down time?

A

The time that the VM is out of service due to migration

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

What is the most difficult technical challenge in VM migration?

A

How to synchronize memory contents

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

What are the two Live Migration Techniques?

A

Pre-copy
Post-Copy

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

What are the benefits of Post-Copy?

A

Shorter migration time
Migration time is close to stop and copy

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

What are the downsides to Post-Copy?

A

Overhead after migration

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

What are the benefits of Pre-copy?

A

Minimal downtime

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

What are the downsides to Pre-copy?

A

Migration time and if the host dies during migration dont know what to do

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

What are the four types of virualization?

A

Full Virtualization
Paravirtualization
Os-Level Virtualization
Application Level Virtualization

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

What are the Pros of OS-Level Virulization?

A

Lightweight
Good Isolation

54
Q

What are the Cons of OS-Level Virulization?

A

Technically doesn’t have OS
Generally runs “the same OS” as the host machine

55
Q

What is the benefits of Resource Isolation?

A

Isolation prevents processes or applications from hurting each other
Isolation makes sure that processes get exact amount of resources they request

56
Q

Can a container in a namespace access and see another container in another namespace?

A

No

57
Q

What are the six linux namespaces?

A

PID
NET
MNT
PIC
User

58
Q

What is PID namespace

A

A namespace that allows PID to only see processes in the same PID namespace

59
Q

What happens when PID 1 namespace goes away?

A

The whole namespace is killed

60
Q

Can a given process have multiple PIDs?

A

Yes

61
Q

What is NET namespace?

A

A namespace that isolates the networking functionalities and related resources?

62
Q

What attributes does the NET namespace have?

A

Network Interface
IP Addresses
Routing Tables
Iptables rules

63
Q

What is the MNT namespace?

A

A namespace for mount points

64
Q

What is the IPC namespace?

A

The IPC namespace isolates the inter-process communication resources

65
Q

What is the UTS namespace?

A

Provides a distinct hostname/domain name separated from the host system/os

66
Q

What is the User namespace?

A

The user namespace provides a unique user and group ID for each container

67
Q

What does clone() command do?

A

Creates a new process and a new namespace

68
Q

What does unshare() command do?

A

Attaches the calling process to a new namespace

69
Q

What does the setns() command do?

A

Allows the calling process to join and existing namespace

70
Q

What is the process the summary namespace do?

A

A process isolation mechanism

71
Q

What are cgroups?

A

A Linux kernel feature that limits, accounts for and isolates the resource usage of a collection of processes

72
Q

What is the difference between cgroups and namespaces?

A

cgroups limits what and how much processes or containers can use
namespaces limits what processes/containers can see

73
Q

What are subsystems?

A

Computer resources like the CPU, Memory, Disk IO, network

74
Q

What is the command to check and existing cpu group?

A

-ls -al /sys/fs/cgroup/cpu/

75
Q

What is the command to create a cpu cgroup and check if it is created

A
  • sudo cgcreate -a ubuntu -g cpu:CSCI4795cgroups
  • ls -al /sys/fs/cgroup/cpu/
76
Q

What is the command to set the CPU limit

A
  • sudo cgset -r cpu.cfs_quota_us=20000 CSCI4795cgroups
  • sudo cgexec -g cpu:CSCI4795cgroups stress -c
77
Q

What does LXC stand for?

A

Linux Container

78
Q

What is a LXC?

A

A combination of namespaces and cgroups

79
Q

Inside of a LXC what does it look like?

A

A VM

80
Q

Outside a LXC what does it look like?

A

A normal process running on a machine

81
Q

What main benefit of LXC?

A

They are lightweight

82
Q

How to run a LXC?

A

sudo apt install lxc-utils
sudo apt install lxc lxctl lxc-templates

83
Q

What command to run to create a new container?

A

lxc-create

84
Q

What command to start a new container?

A

lxc-start

85
Q

What command to attach a new console?

A

lxc-console

86
Q

What command to stop a new container?

A

lxc-stop

87
Q

What command to delete a new container?

A

lxc-delete

88
Q

What is Docker?

A

A software platform that allows you to build test and delpoy applications

89
Q

What is libcontainer?

A

A cross-system abstraction layer aimed to support isolation technology

90
Q

What architecture does docker use?

A

A client server architecture where the docker client talks to a Docker Daemon which builds, runs and distributes docker containers

91
Q

What is the Docker client?

A

The primary way that the user interact with the docker daemon

92
Q

What is the docker daemon?

A

Manages docker objects and communicates with other daemons to manage Docker serverices

93
Q

What is Docker hub?

A

Stores the Docker images, can be a public and a private registry

94
Q

What is a Docker Image?

A

A collection of files and some meta data

95
Q

What is the relationship between a docker image and a docker container?

A

A docker containeris a running state of an image

96
Q

What is the pros and cons of immutable infrastructure?

A

Pros: Less management effort for service/servers
Horizontal scalability
Cons: Small quick fixes require a full redeploy

97
Q

What is the basic command framework to do a docker run?

A

docker run [OPTIONS] IMAGE [COMMAND] [ARG…]

98
Q

What does this command do?
docker image

A

Displays all images currently installed on your machine

99
Q

What does this command do?
docker pull

A

Pulls an image from the registry

100
Q

What does this command do?
docker rmi {$image id}

A

Remove one or more images

101
Q

What does this command do?
docker logs $(CONTAINER_ID)

A

fetch the logs of a container

102
Q

What are microservices?

A

A software development technique, that structures an application as a collection of loosely coupled services

103
Q

What is Service Oriented Architecture?

A

Speed of delivery
Scalability
Cloud and DevOps

104
Q

What are the Characteristics of a Monolithic Application?

A

Large codebase plus large database
Put every function/logic into a single host
Many components, no clear ownership
Long deployment/delivery cycle

105
Q

What is Stateful? (TCP)

A

Node A knows which step has been reached in Node B

106
Q

What is Stateless? (UDP)

A

Node A remebers its state, sends it to Node B when necessary, Nodes are processing each request independently

107
Q

What are the design principles in microservies?

A

Modular and independent
Hiding Implementation details
Automation

108
Q

What are some benefits for microservices?

A

Polyglot architecture
Evolutionary design and replaceable architecture
Selective Scalability
Small

109
Q

What are some disadvantages for microservices?

A

High overall complexity
Operational overhead
Service Discovery
Chattiness
Slow
Different languages

110
Q

What is Container Orchestration?

A

Performing
Scheduling, resource management, service management for large scale microservices

111
Q

What is container scheduling?

A

Container deployment, placement and collocation
Horizontal scaling, job scheduling and request placement

112
Q

What is Resource management?

A

Mostly related to cgroup management, (memory, cpu, disk volumes, network ports, net work IPs)

113
Q

What is Service Management?

A

Load balancing
Service Discovery
Configuration management
Logging, monitoring, and health management

114
Q

What is a monolithic app?

A

A SW architecture, all components/functions of a program are tightly coupled, often into a single deployable unit

115
Q

What is Docker Swarm?

A

A docker orchestration tool

116
Q

What are the three concepts associated with a docker swarm?

A

Node
Service
Task

117
Q

What does a manager node do?

A

Manages a swarm cluster
Swarm commands can only be executed on manager nodes
Manager nodes can be worker nodes

118
Q

What does a worker node do?

A

Host containers
Run service tasks

119
Q

For a fault tolerant cluster what is the recommended amount of nodes for a swarm?

A

Seven

120
Q

A n manager cluster tolerates the loss of at most what?

A

(N-1)/2 managers

121
Q

What is Raft?

A

A consensus mechanism to choose a leader for a docker swarm

122
Q

What does the leader election do?

A

When the leader crashes a new leader will be elected

123
Q

What does the leader do in reference to log replication?

A

It accepts commands from clients and append it to logs

124
Q

What does the leader do for safety?

A

To keep logs consistence on servers with up to date logs can be come leaders

125
Q

Manager nodes must have what?

A

Static IP addresses
Very reliable connectivity to each other
Be reachable by all other manager nodes
Know their IP addresses, so that the can tell other manger nodes how to reach them

126
Q

What happens if a quorum is lost?

A

The user/operator must manually add new managers

127
Q

What is service in a docker swarm?

A

The basic deployment unit in a swarm cluster

128
Q

What is a task in a docker swarm?

A

A docker container on work nodes

129
Q

What is a replicated service?

A

Running a container for a service

130
Q

What is a global service?

A

One task on every node