EC2 Fundamentals Flashcards

1
Q

What is EC2

A

Elastic Compute Cloud
Infrastructure as a service

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

What are the 4 main purposes of EC2?

A
  1. Renting virtual machines (EC2)
  2. Storing data on virtual drives (EBS)
  3. Distributing load across machines (ELB)
  4. Scaling the services using an auto-scaling group (ASG)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does the cloud provide?

A

On demand computing

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

Features:
- Operating System (OS): Linux(most popular), Windows or Mac OS.
- How much compute power and cores (CPU)
- How much random-access memory (RAM)
- How much storage space:
- Network-attached (EBS & EFS)
- hardware (EC2 Instance store)
- Network card: speed of the card, Public IP address
- Firewall rules: security group
- Bootstrap script (configure at first launch): EC2 User Data

A

EC2 sizing & configuration options

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

How can an instance be bootstrapped?

A

With an EC2 User Data script

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

What is bootstrapping?

A

launching commands when the machine starts

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

When does the user data script run?

A

Once during the first start instance.

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

Examples:
- Installing updates
- installing software
- Downloading common files from the Internet
- Anything you can think of…

A

EC2 user data script to automate boot tasks.

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

EC2 User Data scripts runs with a root user?

A

True

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

Any command you have will have the pseudo rights?

A

True

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

Instance type:
- Balance between:
- Compute
- Memory
- Networking
- In the course, we will be using the t2.micro which is a General Purpose EC2 instance

A

General Purpose

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

Instance type:
- Batch processing workloads
- Media transcoding
- High performance web servers
- High performance computing (HPC)
- Scientific modeling & machine learning
- Dedicated gaming servers

A

Compute Optimized - of C name

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

Instance type:
- High performance, relational/non-relational databases
- Distributed web scale cache stores
- In-memory databases optimized for BI (Business Intelligence)
- Applications performing real-time processing of big unstructured data

A

Memory Optimized - of R/X/Z name

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

Instance type:
- High frequency online transactions processing (OLTP) system
- Relational and NoSQL databases
- Cache for in-memory databases (ex: Redis)
- Data warehousing applications
- Distributed systems
- HPC Optimized
- Instance Features
- Measuring Instance Performance

A

Storage Optimized - of I/G/H1

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

Uses hardware accelerators, or co-processors, to perform functions, such as floating point number calculations, graphics processing, or data pattern matching, more efficiently than is possible in software running on CPUs.

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

Provides a balance of compute, memory and networking resources, and can be used for a variety of diverse workloads. These instances are ideal for applications that use these resources in equal proportions such as web servers and code repositories.

A

General Purpose

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

Instance type:
- Generative AI applications, including question answering, code generation, video and image generation, speech recognition, and more.
- HPC applications at scale in pharmaceutical discovery, seismic analysis, weather forecasting, and financial modeling.

A
  • Accelerated Computing
18
Q

Great for compute-intensive tasks that require high performance processors:

A

Compute Optimized - of C name

19
Q

Fast performance for workloads that process large data sets in memory

A

Memory Optimized - of R/X/Z name

20
Q

Great for storage-intensive tasks that require high, sequential read and write access to large data sets on local storage

A

Storage Optimized - of I/G/H1

21
Q

What are security groups

A

The fundamental of network security in AWS

22
Q

What do security groups contain?

A

They only contain allow rules

23
Q

What do security groups do?

A

Control how traffic is allowed into or out of our EC2 Instances

24
Q

How can a security group rules be referenced?

A

By IP or by security group

25
Q

What acts as a “firewall” on our EC2 instance?

A

Security groups

26
Q

What do security groups regulate?

A
  • Access to ports
  • Authorized IP ranges - IPv4 and IPv6
  • Control of inbound network (from other to the instance)
  • Control of outbound network (from the instance to other)
27
Q

How many instance can a security group be attached to?

A

Multiple instances

28
Q

What can security groups be locked down to?

A

A region/VPC combination

29
Q

What does it mean that a security group lives “outside” the EC2?

A

if the traffic is blocked the EC2 instance won’t see it

30
Q

If the application is not accessible because of timeout…

A

It is a security group issue

31
Q

If your application gives a “connection refused” error…

A

the it’s an application error or it’s not launched

32
Q

By default all inbound traffic is…

A

block

33
Q

By default all outbound traffic is…

A

authorized

34
Q

Ports to know:
22 = SSH (Secure Shell)

A

log into Linux instance

35
Q

Ports to know:
21 = FTP (file transfer protocol)

A

upload files into a file share

36
Q

Ports to know:
22 = SFTP (Secure File Transfer Protocol)

A

upload files using SSH

37
Q

Ports to know:
80 = HTTP

A

access unsecured websites

38
Q

Ports to know:
443 = HTTPS

A

access secured websites

39
Q

Ports to know:
3389 = RDP (Remote Desktop Protocol)

A

log into a Windows instance

40
Q

What is SSH?

A

Secure Shell is the primary method for securely accessing Linux servers from a command line interface.

41
Q

What is Putty?

A

Putty performs the same function as SSH but it’s for windows

42
Q

What is “EC2 Instance Connect”

A

Offers a method to connect to EC2 instances directly through a web browser, simplifying the process without the need for terminal or additional software.