EC2 Fundementals Flashcards

1
Q

What is EC2?

A

EC2 = Elastic compute cloud, which is infrastructure as code

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

What are the components of Elastic Compute Cloud (EC2)?

A

Elastic Compute Cloud is composed of :
• Renting virtual machines (EC2)
• Storing data on virtual drives (EBS)
• Distributing load across machines (ELB)
• 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 are the EC2 configuration Options?

A
  • Operating System (OS):Linux, Windows or Mac OS
  • How much compute power & 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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the different types of EC2 instances?

A

EC2 has different instances for different types of operations. these include,
general-purpose,
compute-optimized (batch process, HPCgaming),
memory-optimized (rds/non rds, caching), and
storage optimized(RDS and no SQL, OLTP, data warehousing)

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

What are security groups?

A

These are a firewall around our EC2 instance that provides network security. These control how traffic goes into and out of our EC2 instance. They contain only allow rules.

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

How many security groups can you attach to a single EC2 instance?

A

single 1 security grp or multiple security groups

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

How many EC2 instances can a single security group be attached to?

A

can attach a security group to just 1 EC2 instance or multiple instances of EC2

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

What are the default security group settings?

A

All inbound traffic is blocked by default

All outbound traffic is authorised by default

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

Are security groups Multi AZ?

A

No, security groups are locked into a AZ.

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

Can you attach a security group to multiple VPCs?

A

No, security groups are bound to VPC and sit outside of the EC2 instance.

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

What is port 22 used for?

A

port 22 is for ssh into Linux Instance

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

What’s the port number for FTP?

A

port 21

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

What’s the SFTP port number?

A

port 22

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

What traffic do ports 80 and 443 allow?

A

HTTP(80) and HTTPS(443)

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

What’s the port number for the Windows instance

A

3389 = RDP (Remote Desktop Protocol)

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

What are the different types of EC2 instances?

A

• On-Demand Instances: short workload, predictable
pricing
• Reserved: (MINIMUM 1 year)
• Reserved Instances: long workloads
• Convertible Reserved Instances: long workloads
with flexible instances
• Scheduled Reserved Instances: example – every
Thursday between 3 and 6 pm
• Spot Instances: short workloads, cheap, can lose
instances (less reliable)
• Dedicated Hosts: book an entire physical server,
control instance placement
• Dedicated Instances: no other customers will share
your hardware

17
Q

What’s the difference between spot instance and spot fleet?

A

A spot instance is a single instance and a spot fleet is set of spot instances or sometimes additional on-demand instances

18
Q

What is EC2 User Data?

A

EC2 User Data: Script launched at the first start of an instance

19
Q

How can a spot instance be terminated?

A

You need to first cancel the spot request and then terminate the instance. Cancelling a request doesn’t terminate the instance.