EC2 Fundamentals Flashcards

1
Q

How can you be notified if your AWS spending exceeds a certain amount?

A

Create a budget in the AWS Billing console

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

What is Amazon EC2?

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

What operating systems are available on VMs in EC2?

A

Linux, Mac or Windows

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

What are the sizing and configuration options in EC2?

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

What is EC2 user data?

A

It is a script used to bootstrap (launching commands when the machine starts) an EC2 instance

The script is only run once

The script runs with the root user (sudo rights)

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

What things can you automate when using the EC2 user data?

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

EC2 instance types (examples)

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

If you stop and start an EC2 instance, which of the following may change and which will stay the same?

  • Public IP Address
  • Private IP Address
A
  • Public IP Address (may change)
  • Private IP Address (will stay the same)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the naming convention of EC2 instance types (e.g. m5.2xlarge)?

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

What are the different types of EC2 instance types?

A
  • General Purpose
  • Compute Optimized
  • Memory Optimized
  • Accelerated Computing
  • Storage Optimized
  • HPC Optimized (high-performance computing)

https://aws.amazon.com/ec2/instance-types

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

What are the features of general purpose EC2 instance types?

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

What are the features of compute optimized EC2 instance types?

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

What are the features of memory optimized EC2 instance types?

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

What are the features of storage optimized EC2 instance types?

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

What are security groups in AWS?

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

How are security groups used in EC2?

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

Security Group Diagram

A
18
Q

If an application running in EC2 is not accessible (times out) from the outside, what would likely be the first place to look?

A

Security groups

19
Q

What is a good analogy for the relationship between EC2 and security groups?

A

Security groups act as a firewall outside of the EC2 instances

20
Q

Are security groups region and VPC specific?

A

Yes

21
Q

Can a security group be attached to multiple EC2 instances?

A

Yes

22
Q

If an application running in EC2 gets a connection refused error, what would likely be the first place to look?

A

It’s either an application error or it is not launched

23
Q

What is the default inbound access for security groups in EC2?

A

Inbound traffic is BLOCKED by default

24
Q

What is the default outbound access for security groups in EC2?

A

Outbound traffic is AUTHORIZED by default

25
Q

Referencing security groups from other security groups to grant access (diagram)

A
26
Q

What are the classic ports and what are they used for?

A
27
Q

What is the recommended way to configure the AWS CLI security on an EC2 instance?

A

Attach an IAM role (which is nearly instantaneous and doesn’t require a restart of the instance or you SSH session; changes to permissions in the role are also nearly instantaneous)

Never use “aws configure” and add your credentials in because any user in the account can gain access to your credentials

28
Q

What are the different EC2 instance purchasing options?

A
29
Q

What are the benefits of the EC2 On Demand purchasing option?

A
30
Q

What are the benefits of the EC2 Reserved Instances purchasing option?

A
31
Q

What are the benefits of the EC2 Saving Plan purchasing option?

A
32
Q

What are the benefits of the EC2 Spot Instance purchasing option?

A
33
Q

What are the benefits of the EC2 Dedicated Host purchasing option?

A
34
Q

What are the benefits of the EC2 Dedicated Instances purchasing option?

A
35
Q

What is the difference between EC2 Dedicated Host and Dedicated Instance purchasing options?

A

EC2 Dedicated Instance means you have your own instance on your own hardware

EC2 Dedicated Host means you get access to the physical server itself and it gives you visibility into the lower level hardware

36
Q

What are EC2 Capacity Reservations?

A
37
Q

How do you decide between different EC2 instance purchasing options?

A
38
Q

How do EC2 Spot Instance requests work?

A

Can get a discount of up to 90% off the On Demand price

Define a max spot price and you get the instance while the current spot price < max spot price

The hourly spot price varies based on offer and capacity

If the current spot price > max spot price, you can choose to stop or terminate your instance with a 2 minute grace period

39
Q

What are the options you can specify in an EC2 Spot Instance request?

A
  • Maximum price
  • Desired number of instances
  • Launch specification
  • Request type (one time or persistent)
  • Valid from, Valid until
40
Q

When are you allowed to cancel an EC2 Spot Instance request?

A

When it is open (before the instances have been provisioned), active (while the instances are provisioned) or disabled (when the instances have been stopped or terminated but before the request is open again, for persistent spot request only)

The order is to first cancel the Spot Instance request and then terminate the instances

41
Q

Does cancelling an EC2 Spot Instance request terminate the instances?

A

No

42
Q

What are EC2 Spot Fleets?

A