EC2 Flashcards

1
Q

What is EC2

A

IaaS

Resizable compute capacity in the cloud with a pay-as-you-go billing model

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

What are the four billing models on EC2

A
- On Demand:
Charged by hour or second
- Reserved:
Reserve at 1 or 3 years with up to 75% discount
- Spot instances
Bid a price you're willing to pay
- Dedicated hosts:
Rent a physical server
Allow using existing server bound software licenses
Can be on demand
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What pricing model would be best suitable for applications with spiky unpredictable loads?

A

On demand

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

What pricing model would be best suitable for applications with flexible start and end times, and only feasible at low compute prices loads?

A

Spot instances

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

What pricing model would you use for software with regulatory requirements that do not support multi-tenancy virtualization?

A

Dedicated hosts

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

What three types are available with reserved instances?

A
- Standard:
Up to 75% discount
- Convertible reserved instances:
Up to 54% discount
- Scheduled reserved instances
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are some attributes that you can change in a Convertible reserved instance?

A

Instance family
OS
Tenancy

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

Is termination protection turned on or off by default?

A

Turned off

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

What is the default action for EBS backed instances when instances are terminated?

A

Delete the EBS volume, but behavior can be disabled

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

How can you encrypt the EBS root volume of a default AMI?

A

During AMI creation via console or API, or third party tools (bit locker)

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

What rules does a default security group contain?

A

Inbound blocked by default

Outbound traffic allowed

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

How much time does it take for changes to Security Groups to be reflected?

A

Instant

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

T/F Security Groups are stateless

A

False, security groups are stateful

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

What does it mean for a firewall to be stateful?

A

It keeps track of what comes in and allows responses to those packages to go back.

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

Can you block specific IPs with security groups?

A

No

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

How many EC2 instances can be attached to a security group

A

As many as you want

16
Q

How many Security groups can you assign to an EC2 instance?

A

Up to 5 at a time (can be expanded up to 16 in extreme situations)

17
Q

In how many AZs are EBS volumes replicated?

A
  1. EBS volumes are only replicated within the AZ
18
Q

What are the main four types of EBS storages?

A
  • General Purpose (gp2)
  • Provisioned IOPS (io1)
  • Throughput Optimized HDD (st1)
  • Cold HDD (sc1)
19
Q

What is an EBS snapshot

A

An incremental photograph of the disk at a point in time. Stored in S3. Available within AZ.

20
Q

How would you move an EBS volume of AZ? And Region?

A

Take Snapshot > Take AMI > Launch Instance in other AZ

For moving of region, move AMI first

21
Q

What some attributes that can be changed on the fly on an EBS volume?

A

Size and storage type

22
Q

How can you encrypt an unencrypted root EBS volume?

A

Take a snapshot > copy the snapshot with encryption > create AMI from snapshot

23
Q

What is the difference between an AMI Instance Store and an EBS backed volume

A

Instance store backed instances cannot be stopped, if the underlying host fails, data is deleted. With EBS backed instances they can remain in existence

24
Q

What is an ENI?

A

Elastic Network Interface

Virtual equivalent of a network card

25
Q

How does Enhanced Networking work?

A

Uses I/O virtualization (SR-IOV)
Higher I/O performance and lower CPU utilization
Use for good network performance

26
Q

What types of Enhanced Networking are there

A
  • Elastic Network Adapter (ENA):
    Up to 100Gbps for supported instance types
  • Inter 822599 Virtual Function (VF):
    Legacy, up to 10Gbps