Wk 7 Cloud Computing And Wk 8 Testing In Production Flashcards

1
Q

Serverful model

A
  • IaaS : infrastructure as a service
  • Paas : platform as a service
  • Saas : software as a service
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Iaas

A

Cloud provider gives access to bare servers

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

Paas

A

Provider gives access to servers with operating systems and tools

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

Saas

A

Provider gives access to applications on a subscription bases

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

Severful implementation

A

Makes use of multi tenancy by virtualization using :
- Virtual machines
- Containers
- orchestration and version control

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

Virtual machine multi tenancy :

A

A Number of virtual machines VM⁰…VMN may be run on a physical machine by a hypervisor

Fine for sharing performance but not good for sharing network

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

What is a hypervisor?

A

Maps virtual resources to physical ones ensuring they are shared fairly

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

Why would you want to move a virtual machine between physical ones ?

A

So you may shut a physical one down.

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

Disadvantages of virtual machines

A

Virtual machines are heavy and inconvenient for small computations.

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

Containers

A

Many containers may run on a physical machine. Each container does not have a kernel and rater it has the same operating system as the kernel of the physical machine.

The physical machine’s operating system maps the resources to the containers ensuring fairness.

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

Pro and cons of containers

A

Pro faster than VMs
Con if the kernel crashes all the containers crash with it

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

Serverful cost model

A

Charges resource allocation on a rental bases

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

Serveful microservice potential implementations:

A
  • one service per virtual machine
  • one service per container
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Serverful : one service per virtual machine

A
  • expensive as you would have many machines🫰🫰🫰
  • issues with one machine would not affect other machines
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Serverful: one service per container

A
  • fast
  • cheaper
  • if server crashes so do all other containers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Serverless computing:

A

As a user you don’t have to worry about operational concerns.( Servers are still used )

Models :
- Baas
- Faas

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

Baas : Backend as a service

A

Cloud provider gives access to a service such as authentication or database storage.

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

Faas: Function as a service

A

Cloud provider rents custom code in response to requests and events

19
Q

Serveless costs

A

Per function application
For execution time
Pay as you go

20
Q

Microservices Serverless implementation:

A
  • map a single function instance to a single microservice ( wasteful)
  • map multiple functions per machine
    ( Maintenance and performance issues )
21
Q

API Gateway

A

Acts as a proxy trough which http requests and responses are used to make function calls.

22
Q

IaC : infrastructure as a code

A

Configures ( virtual) infrastructure using executable code, which can be stored in version control

( Scripts for virtual machines)

23
Q

Why test in production?

A
  • Volume
  • Real users (powerful feedback)
24
Q

Types of testing

A
  • Blue Green testing
  • Canary testing
  • A/B feature testing
  • resiliance testing
25
Q

Blue green

A

Staging ( 🍏 ) gets uploaded to production ( 🔵) .
If an issue arrises the changes are switched back to staging. This happens through a routing table.

26
Q

Canary testing

A

A small percentage of customer traffic is sent to a new version of the system ( tinker with load balance)
( error testing)

27
Q

A/B feature testing

A

A small percentage of the customer traffic is sent to a new version of the production environment. (Used for UI testing )

28
Q

Resiliance testing

A

Random VM or containers are terminated in the production environment.

29
Q

Netflix test strategies

A
  • caos monkey
  • caos gorilla
  • latency monkey
30
Q

Caos monkey 🐒

A

Terminates random VMs. This ensures that the recovery plan is constantly tested.

31
Q

Caos gorilla 🦍

A

Terminates network connections between zones ( geographical potentially such as Devon region is disconnected traffic should be redirected)

32
Q

Latency monkey 🐵

A

Delays client server communication, measures upstream and downstream services and checks that they respond appropriately

33
Q

Staging environment

A

Scale down replica of the production environment

34
Q

Cloud computing

A

Many enterprises don’t own the infrastructure that provides the staging environment but rent it in the “cloud ☁️”

35
Q

Cloud architecture provides

A
  • broad network access
  • on demand self service
  • measured services
  • rapid elasticity
  • resource pooling
  • assurance
36
Q

broad network access

A

Cloud is available over standard networks

37
Q

on demand self service

A

Often you get free trials. Very easy entry requirements.

38
Q

measured services

A

The provider monitors and charges for what is used

39
Q

rapid elasticity

A

Easily acquire or release machines

40
Q

resource pooling

A

Achieve multi tenancy on one physical machine to multiple virtual ones

41
Q

Assurance

A

Cloud services are staffed by the top people in the field.

Can afford the best and most up to date equipment.

Hardened by continuous hacking.

42
Q

Cloud computing reasons to adopt it :

A
  • shift from expenditures on datacenters to steady operational spendure
  • avoid being locked by one company who can charge what they like
  • increase security
  • availability multiple datacenters
  • performance
43
Q

A/b vs Blue Green

A

Ab : compare between two versions , user experience comparison
Blue green switching of production with staging.