EC2 - Fundamentals/Instance Types Flashcards

1
Q

What is Amazon EC2?

A

EC2 (Elastic Compute Cloud) is AWS’s Infrastructure as a Service (IaaS), allowing you to rent virtual machines (EC2 instances) to run applications in the cloud.

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

What can you configure when launching an EC2 instance?

A

You can choose the operating system (Linux, Windows, or MacOS), compute power (CPU), RAM, storage type (EBS or instance store), network settings, security groups (firewall rules), and bootstrap (EC2 User Data) scripts.

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

What is the purpose of EC2 User Data?

A

EC2 User Data allows you to automate tasks at the time of instance launch, like installing software, updates, or downloading files. It runs only once and with root (admin) privileges.

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

What are EC2 Instance Types?

A

EC2 instance types are different configurations of virtual machines that you can choose based on your workload needs. They vary by compute power, memory, storage, and network performance.

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

What does the EC2 instance name (e.g., M5.2xlarge) mean?

A

The naming convention is:

M: Instance class (e.g., general purpose)
5: Generation (e.g., M5, the 5th generation of M-type instances)
2xlarge: Size (e.g., 2xlarge means larger resources like more CPU and RAM).

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

What are the main EC2 instance types and their use cases?

A

General Purpose (e.g., T2, M5): Balanced CPU, memory, and networking for a wide range of workloads.

Compute Optimized (e.g., C5, C6): Best for compute-heavy tasks like media transcoding and high-performance web servers.

Memory Optimized (e.g., R5, X1): Ideal for memory-heavy tasks like in-memory databases and real-time data processing.

Storage Optimized (e.g., I3, G4): Great for high storage workloads like databases and data warehousing.

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