EC2 Flashcards

1
Q

What are Security Groups

A

Security groups are a virtual firewall that controls traffic to and from EC2 Instances. (operate at instance level)

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

Are security groups stateful or stateless? Describe what that means.

A

Security groups are STATEFUL. This means that if traffic is allowed inbound, then it is automatically allowed outbound.

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

Describe Security Group defaults

A

All inbound traffic is blocked by default. All outbound traffic is allowed by default. Each region has 2,500 security groups per region. Each SG has a default of 5 Elastic Elastic Network Interfaces (ENIs).

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

How many SGs can you have per region

A

10,000 (default is 2500)

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

How many SGs can be associated with an ENI?

A

16 max (default is 5)

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

How many inbound/outbound rules can be assigned to a Security Group?

A

60 each(inbound/outbound)

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

How many Security Groups can be associated with an EC2 instance (1 or many)

A

many

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

T/F - Security Groups can be assigned to multiple EC2 instances

A

true

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

What is EC2?

A

Elastic Cloud Compute -> A cloud computing service

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

What are the 5 main EC2 instance types?

A

General Purpose Compute Optimized Memory Optimized Accelerated Optimized Storage Optimized

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

Describe General Purpose EC2 Instances

A

balance of compute, memory, and networking resources. Uses resources in equal proportions.

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

Describe Compute Optimized EC2 Instance Type

A
  • Ideal for compute bound applications that benefit from high performance processor.
  • Batch processing loads.
  • High performance web servers.
  • Dedicated Gaming machine.
  • Scientific modeling.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Describe Memory Optimized EC2 Instance Type

A

Ideal for workloads that process large datasets in memory.

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

Described Accelerated Optimized EC2 Type

A

Uses hardware accelerators and co-processors. Think Machine Learning. Floating point # calculations. Graphics processing.

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

Describe Storage Optimized EC2 Instance Type

A

High Sequential Read/Write access to large datasets on local storage. Use cases = NO-SQL DB, data warehouse, elasticSearch, Analytic workloads.

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

What are placement groups?

A

Allows you to specify the logical placement of your EC2 instances in order to optimize for communication, performance or durability.

17
Q

What do placement groups cost?

A

They are free

18
Q

What is the purpose of the UserData Section id the EC2 configuration?

A

This area allows you to upload a script that will automatically run when launching an EC2 instance.

19
Q

What are the 4 pricing categories for EC2?

A

On-Demand SPOT Reserved Dedicated

20
Q

Explain On-Demand EC2 pricing

A

Least commitment low cost and flexible pay per hour Good for short term, spikey or unpredictable workloads. Services can not be interuppted. Good for first time apps.

21
Q

Explain the EC2 Reserved Price model

A

Best long term strategy. Good for steady state pr predictable usage. Commit from 1-3 years. Can resell unused reserved instances.

22
Q

Explain Spot EC2 pricing

A

Provides the biggest savings User requests an instance at a specific price and if approved can use that instance until instance is needed by another user that is willing to pay a higher price. Instances can be terminated at anytime. If AWS terminates the instance you DO NOT pay for the partial hour usage. If you terminate the instance you DO pay partial hour usage.

23
Q

What are the 3 types of reserved instances?

A

Standard RI Convertible RI Scheduled RI

24
Q

What is a Standard Reserved Instance?

A

Up to 75% reduced pricing compared to On-Demand. Cannot change RI attributes.

25
Q

What is a Convertible Reserved Instance?

A

Up to 54% reduced pricing compared to on-demand. Allows you to change RI Attributes if greater then or equal to current instance.

26
Q

What is a Scheduled Reserved Instance (RI)?

A

You reserve an instance for specific time periods (i.e once a week for a few hours. Savings vary depending on schedule.

27
Q

What is an Elastic IP Address and how is it different then a public IP Address in AWS?

A

An AWS Public IP can change if the instance is stopped and restarted. In order to maintain consistency, an Elastic IP can be assigned to an instance. This is a public IP that remains the same even when an instance stops.

28
Q

What are Burstable Instances?

A

T2 Machines Can handle unexpected traffic by using “burst credits” If all credits are gone, the CPU becomes poor and user should consider moving to a large instance type. If a burstable machine does not need to “burst”, burst credits build up over time

29
Q

How are EC2 instances billed?

A

By the second, with a minimum of 60 seconds

30
Q

Do PRIVATE IPs change if the instances stops?

A

No but public does

31
Q

What is the URL for EC2 Instance Metadata?

A
  • http://169.254.169.254/latest/meta-data
  • This is an internal URL to AWS.
  • It will only work from inside your EC2 instance.
  • It will NOT work from your computer.
32
Q

What is EC2 Metadata?

A

Info about the EC2 Instance

33
Q

Can you retrieve an EC2 IAM Policy from the EC2 metadata?

A

No, but you can retrieve the IAM Role name and use the AWS IAM Policy Simulator to test that Role.