EC2 Flashcards

1
Q

EC2 Enhanced Networking

A

Uses advanced virtualisation (Single Route - IO Virtualisation) to deliver:

  • Higher I/O
  • Lower host CPU usage
  • More bandwidth
  • Higher packets per second (PPS)
  • Consistent lower latency

Available for no charge on most EC2 types.

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

How many hosts does a EC2 instance run in?

A

ONE AZ. If a AZ faces major issue, it will impact EC2 instances. (No HA by default).

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

EC2 Charges at Stopped State

A

Still incur charges for EBS

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

Permission error when SSH into Linux instance. How do I fix it?

A

Key is missing permissions. Need to perform chmod 0400 command on the .pem key.

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

EC2 Status Checks

A
  1. System Status Checks: makes sure traffic can reach the hardware. Checks for loss of power, network connectivity, software and hardware issues.
  2. Instance Status Checks: makes sure instance OS is available and accepting traffic. Checks for corrupted file system, incorrect instance networking, and/or OS kernel issues.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Elastic IP’s

A
  • Static IPv4 address
  • can only attach to one instance at a time
  • can mask a system/instance failure, by remapping to another working instance
  • Max 5 EIP’s
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

User Data Key Limitations

A
  • Opaque to EC2 instance, just a block of data
  • NOT secure. Don’t use it for passwords
  • Limited to 16KB in size
  • Can be modified when instance stopped
  • ONLY executed at launch
  • Accessed via metadata IP: 169.254.169.254/latest/user-data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Cloudformation::init (cfn-init)

A

Used to maintain desired state of EC2 instance through a helper script. Can control packages, groups, users, sources, files, commands, and services.

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

Scheduled reserved instances

A
  • Launch within time window you reserve

-

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

EC2 Status Checks Auto Recovery

A

Can create a CloudWatch alarm and auto recovery, which will try to fix the issue, including, moving to a new host (if required).

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

Types of spot requests

A
  1. One-time request: will launch instance if spot request is fulfilled.
  2. Persistent: will stay in queue as valid until request is value.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

AMI regional/AZ?

A

AMI ID’s differ across regions

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

Dedicated Hosts limitation

A
  1. AMI Limits: No RHEL, SUSE Linux, and Windows AMIs are NOT supported.
  2. Amazon RDS instances are not supported
  3. Placement groups are NOT supported
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Elastic Network Interfaces

A
  • Secondary ENI + MAC is used for transfering licenses between multiple instances
  • Multi homed (subnets) management can give multiple connections
  • Different Security Groups
  • OS: doesnt see public IPv4 address.
  • Bound to specific AZ
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Security Groups

A

Can reference other Security Groups (instead of IP).

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