exam_2020 Flashcards

1
Q

Q1.A The CAP principle makes a statement about 3 properties. Give the definition of each property

A
C = Consistency
A = Availability
P = Partition Resistence
C = Every read receives the most recent write or an error
A = Every request receives a (non-error) response, without the guarantee that it contains the most recent write
P = The system continues to operate despite an arbitrary number of messages being dropped (or delayed) by the network between nodes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Q1.B Explain why you cannot have all 3 CAP properties at the same time

A

When a network partition happens, it must be decided whether to:

  • Cancel the operation and thus decrease the availability but ensure consistency or;
  • Proceed with the operation and thus provide availability but risk consistency
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Give another explanation for unable to have all 3 cap properties

A

Partition tolerance is must because it saves the data from getting completely lost due to Network/Node failure.

Therefore, the choice is between consistency and availability.

If you try to achieve consistency (all nodes give same and most recent write data) we have to sacrifice availability because it takes time to synchronise data to every replica of the node. While it’s synchronising, it may not be able to respond to requests of information retrieval thus hindering availability.

If you try to achieve availability (every non-failing node have to return a reasonable response, in reasonable time) we have to sacrifice consistency because while system is updating/synchronising all replicas/nodes with latest written data to make system consistent, and if meanwhile it got an request, it have to respond to make system available and in that case it might respond with an un-updated data because all nodes haven’t been updated and it have to reply in reasonable time

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

What are the six characteristics of containers?

A
  1. Namespaces
  2. Resource Control
  3. Security
  4. Images
  5. Open Standards
  6. Management
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are namespaces in containers?

A

Provide containers a way to identify and personalise their own space

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

Resource control in containers?

A

You want one piggie flushing the toilet not to raise water temperature in another.

Cgroups are used to manage container resource control. If you have written poorly-written cgroup configuration, you’ll run into problems with resources

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

Security in containers?

A

SELinux, security analysis tools and access to Red Hat security experts

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

Images in containers

A

You can make them from scratch but it’s better to use the red hat registry to have it fully furnished

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

Community standards in containers?

A

This is about standardisation and consistency. This improves application portability and allows you to deploy container-based applications anywhere

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

Management in containers?

A

Management and upkeep is important with apartments - especially as you scale up. CloudForms help streamline node and container creation, deployment, workflows and management

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