EC2 architecture and resilience Flashcards

1
Q

What are EC2 instances?

A

EC2 instances are virtual machines run on EC2 hosts

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

What types of hosts are used in EC2?

A

Shared hosts: every customer is isolated even on the same shared hardware.
Dedicated hosts: pay for the entire hardware, don’t pay for instances.

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

What level of resilience does EC2 provide?

A

AZ resilient service. They run within only one AZ system.

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

Can you access instances in a cross zone way?

A

You can’t access them cross zone.

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

What does an EC2 host contain?

A
  • Local hardware such - CPU and memory
  • Also have a temporary instance storage (If instance moves hosts, the storage is lost)
  • Can use remote storage, Elastic Block Store (EBS)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is EBS used for in EC2 instances?

A
  • EBS allows you to allocate volumes of persistent storage to instances within the same AZ.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What types of networking exist in EC2?

A
  • 2 types of networking
    • Storage networking
    • Data networking
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

When do EC2 instances get ENIs assigned to them?

A

When the EC2 instances are created and provisioned within a specific subnet.

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

What is the function of ENIs?

A

It maps to the physical hardware on the EC2 host.

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

Can instances have multiple network interfaces?

A

Yes

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

Can EC2 instances have multiple interfaces in multiple subnets?

A

Yes, as long as the subnets are in the same AZ.

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

An instance runs on a specific host. If you restart the instance…what happens?

A

The instance stays in the host.

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

When will an EC2 instance leave the host where it is running?

A
  • The host fails or is taken down by AWS - maintenance

- The instance is stopped and then started, different than restarted.

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

When an EC2 instance is moved from its host, where is it relocated?

A

To another host in the same AZ.

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

What is a migration of an EC2 instances?

A

It is taking a copy of an instance and moving it to a different AZ.

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

In which cases is EC2 useful?

A

Long running compute needs like server style applications

17
Q

Mention some server style applications where EC2 is useful:

A
  • things waiting for network response
  • long running compute
  • traditional OS+Application compute
  • burst or steady-state load
  • monolithic application stacks
    • middle ware or specific run time components
  • migrating application workloads or disaster recovery
    • existing applications running on a server and a backup system to intervene
18
Q

The instance types will variate depending on:

A
  • Raw CPU, memory, local storage, capacity & type
  • Resource ratios
  • Storage and data network bandwidth
  • System architecture / Vendor
  • Additional features and capabilities - GPUs, FPGAs
19
Q

What are the main instance categories/types in EC2?

A
  • General-purpose
  • Compute-optimized
  • Memory-optimized
  • Accelerated computing
  • Storage optimized
20
Q

When should you use General purpose type instances?

A

Default steady-state workloads with even resources.

21
Q

When should you use Compute-optimized type instances?

A

Media processing, scientific modeling and high-performance computing, gaming, machine learning.

Provides the latest high-performance CPUs with a higher ratio of CPU over the memory for a given price point.

22
Q

When should you use Memory Optimized type instances?

A

perfect for processing large in-memory data sets, in-memory caching, database workloads

23
Q

What does the Accelerated-computing instances offer?

A

Hardware GPU, FPGAs. Dedicated GPUs, high-scale parallel processing and modeling, custom programmable hardware such as FPGAs

24
Q

When should you use Storage optimized type instances?

A

Large amounts of super fast local storage. Massive amounts of IO per second. Scale-out transactional databases, data warehousing, Elastic search, and analytic workloads.

Designed for high sequential transfer rates

25
Q

How is the instance type naming scheme in EC2? R5dn.8xlarge

A
  • 1st char: Instance family.
  • 2nd char: Instance generation. Generally always select the newest generation.
  • 3rd char - before period: additional capabilities
    • a: amd cpu
    • d: NVMe storage
    • n: network optimized
    • e: extra capacity for ram or storage
  • char after period: Instance size. Memory and CPU considerations.
    • It is often easier to scale a system with a larger number of smaller instance sizes.