EC2 Fundementals Flashcards

(32 cards)

1
Q

What does EC2 stand for?

A

Elastic Compute Cloud

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

What are the core capabilities of EC2?

A

Renting VMs, EBS storage, ELB for load balancing, ASG for scaling.

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

What is EC2 User Data used for?

A

Running a script at first boot to install packages, updates, or configure the instance.

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

Does EC2 User Data run every time the instance starts?

A

No, it runs only at the first launch.

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

What does EC2 user data script run as?

A

It runs as the root user.

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

What are the configuration options when launching an EC2 instance?

A

OS, CPU, RAM, Storage, Network, Security Group, EC2 User Data.

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

What is the EC2 instance naming convention format?

A

Example: m5.2xlarge – class, generation, size.

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

What is a General Purpose EC2 instance good for?

A

Balanced compute, memory, networking – good for web servers.

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

What workloads suit Compute Optimized EC2 instances?

A

Batch processing, HPC, gaming servers, media transcoding.

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

What are Memory Optimized instances best used for?

A

Large in-memory data processing, BI apps, high-perf databases.

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

When should you use Storage Optimized instances?

A

High IOPS tasks, OLTP, data warehousing, cache, file systems.

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

What is the function of a Security Group in EC2?

A

It acts as a virtual firewall to control inbound and outbound traffic.

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

Do security groups allow DENY rules?

A

No, only ALLOW rules are permitted.

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

What happens if your app times out on EC2?

A

Likely a security group issue.

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

What happens if your app gives a connection refused error?

A

Likely the app isn’t running or configured incorrectly.

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

What are some classic ports to know for EC2?

A

22-SSH, 21-FTP, 80-HTTP, 443-HTTPS, 3389-RDP.

17
Q

What is EC2 Instance Connect?

A

Browser-based SSH access without downloading a key file.

18
Q

What EC2 OS is required for EC2 Instance Connect to work out-of-the-box?

A

Amazon Linux 2.

19
Q

What are EC2 On-Demand instances best for?

A

Short-term, unpredictable workloads.

20
Q

How are EC2 On-Demand instances billed?

A

Per second (Linux/Windows) or per hour (others).

21
Q

What are EC2 Reserved Instances best for?

A

Steady-state usage, long-term workloads.

22
Q

What is a Convertible Reserved Instance?

A

RI that allows change in instance family, type, OS, etc.

23
Q

What are EC2 Savings Plans?

A

Discounted pricing based on commitment to usage ($/hr for 1–3 years).

24
Q

How much can you save with EC2 Spot Instances?

A

Up to 90% compared to On-Demand.

25
When should you NOT use Spot Instances?
Critical workloads or databases.
26
What is an EC2 Dedicated Host?
Entire physical server dedicated to your use, good for BYOL.
27
What is the main difference between Dedicated Host and Dedicated Instance?
Dedicated Host gives control over placement; Dedicated Instance does not.
28
What is an EC2 Capacity Reservation?
Reserves EC2 capacity in a specific AZ; billed at On-Demand rates.
29
When did AWS start charging for IPv4 addresses?
February 1, 2024.
30
How much does AWS charge for Public IPv4?
$0.005 per hour (~$3.60 per month).
31
Is there a free IPv4 tier?
Yes, 750 hours/month for first 12 months for new accounts.
32
Why isn't IPv6 widely used?
Many ISPs still don’t support IPv6.