EC2 Flashcards

1
Q

What are the main features/services of EC2?

A
  • Renting virtual machines (EC2)
  • Storing Data on virtual drives (ELB)
  • Scaling the services using an auto-scaling group
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the configuration options for a virtual machine?

A
  • OS
  • CPU
  • RAM
  • Storage (EBS, EFS, Instance Storage?
  • Network card
  • security group
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How can an EC2 machine be configured automatically?

A

-Through a bootstrap script at launch

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

Which special types exist for EC2?

A
  • General Purpose
  • Compute Optimized
  • Memory Optimized
  • Storage Optimized
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How can you control traffic to/from EC2 Instances

A

Through Security Groups

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

What do security groups control?

A
  • Access to ports
  • Authorised IP ranges -IPv4 and IPv6
  • Control of inbound network
  • Control of outbound network
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the default traffic rules for security groups?

A
  • All inbound traffic is blocked

- All outbund traffic is allowed

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

Which purchasing option do you choose for long term planned workloads?

A

Reserved Instances

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

Which purchasing option do you choose for cheap, short workloads that can be interrupted?

A

Spot Instances

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

What are dedicated instances?

A

No other customer will share the hardware

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

What are dediacted hosts?

A

You can book an entire physical server and control instance placement.

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

Which purchasing option do you choose for short workloads that can not be interrupted?

A

On demand instances

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

What are dedicated hosts used for?

A

It is ued to fullfill compliance when licenses are bound to hardware.

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

What is an Elastic IP?

A

An Elastic IP is a public static IPv4 IP that can be attached to an EC2 instance

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

Why avoid Elastic IPs?

A

They are often a sign for architectural decisions?

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

How to avoid Elastic IPs?

A

register a DNS to a random public IP

-use a Load Balancer

17
Q

What are the available EC2 placement groups?

A
  • Cluster
  • Spread
  • Partition
18
Q

You have a very critical application. Which EC2 placement group do you need and why?

A
  • spread
  • EC2 instances are on different physical hardware
  • instances can spread multiüle availability zones
19
Q

You have a big data job that needs to conmplete fast. Which placement group to use and why?

A
  • cluster

- instances are in the same rack and connected via very low latency and high speed network

20
Q

What are elastic network interfaces?

A

They are virtual network cards that can be attached to EC2 instances

21
Q

What is EC2 Hibernate and how does it work?

A

The RAM of an EC2 instance is written to an EBS storage and written back to RAM on reboot

22
Q

What is a vCPU?

A

A cpu thread.

23
Q

What is an EBS volume?

A

a network drive that can be attached to an ec2 instance

24
Q

How are you billed for an EBS volume?

A
  • size in GBs

- IOPS

25
Q

How can EBS be backuped?

A

You create snapshots in s3

26
Q

How can you standardize your EC2 configurations quickly at launch?

A

Through AMIs (Amazon Machine Images).

27
Q

What if an EBS has too high latency?

A

Use EC2 Instance Store (Machine integrated storage)

28
Q

Are EBS volumes encrypted?

A

Yes.

29
Q

How can EBS fault tolerance be improved?

A

By combining 2 or more volumes in a RAID0 or RAID1 array

30
Q

What is efs?

A

Elastic file system is a network file system that can be mounted to multiple ec2 instances across multiple availability zones. It can scale dynamically.

31
Q

When to use ebs vs efs?

A

EBS: low-latency interactive applications that require consistent, predictable performance

EFS: used for storing large amounts of data that needs to be accessed fast and can not be stored on one EBS volume on one ec2 instance