EC2 Flashcards

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 is the EC2 User Data Script used for?

A

To automate boot tasks such as installing updates/software, downloading files etc.

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

What are the use cases for General Purpose EC2 Instance Types?

A

Web servers, Code repositories etc.

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

What are 6 example use cases for Compute Optimized EC2 Instances?

A
  • Batch Processing Workloads
  • Media Transcoding
  • High Performance Web Servers
  • High Performance Computing (HPC)
  • Scientific Modeling and Machine Learning
  • Dedicated Gaming Servers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are 4 example use cases for Memory Optimized EC2 Instances?

A
  • High Performance databases
  • Distributed web scale cache stores
  • In-memory databases optimized for BI
  • Apps performing real-time processing of big unstructured data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are 5 use case examples for Storage Optimized EC2 Instances?

A
  • High frequency online transaction processing systems (OLTP)
  • Relational and non relational databases
  • Cache for in-memory databases (Redis)
  • Data Warehousing applications
  • Distributed File System
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a Security Group?

A

It is like a Firewall

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

What 4 things do Security Groups Regulate?

A
  • Access to Ports
  • Authorized IP ranges
  • Control of inbound network
  • Control of outbound network
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Can a Security Group be attached to multiple EC2 instances?

A

Yes, and an instance can have multiple security groups

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

Are Security Groups Global?

A

No, they are tied to a specific region/VPC combination.

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

If my application is showing a timeout when I try to connect, what is the likely cause?

A

A security group misconfiguration

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

If my application gives a connection refused error, what is the likely cause?

A

An app error or app failed to launch. The security group config is fine

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

What are the default inbound/outbound security group settings?

A
  • Inbound traffic is blocked

- Outbound traffic is authorized

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

What is the SSH port?

A

22

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

What is the FTP pport?

A

21

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

What is the SFTP port?

A

22

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

What is the HTTP port?

A

80

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

What is the HTTPS port?

19
Q

Whats is the RDP port?

20
Q

What are the 4 EC2 Instance purchasing options?

A
  • On-Demand instances
  • Reserved Instances
  • Spot Instances
  • Dedicated Hosts
21
Q

What are 4 features of On-Demand Instances?

A
  • Pay for what you use
  • Highest cost but no upfront payment
  • No long term commitment
  • Recommended for short term and un-interrupted workloads
22
Q

What are the 5 features of Reserved Instances?

A
  • Up to 75% discount compared to on-demand
  • Reservation periods of 1 or 3 years
  • Pay zero upfront, partial or full
  • Reserve a specific instnace type
  • Recommended for steady state apps like databases
23
Q

What are the 2 types of Reserved Instances?

A
  • Convertible

- Scheduled

24
Q

What are 5 features of Spot Instances?

A
  • Up to 90% discount compared to on-demand
  • Can lose instances anytime if your bid price gets lower than the spot price
  • Most cost-efficient instances
  • Useful for workloads that are resilient to failure
  • Not suitable for critical jobs or databases
25
What are 5 examples of apps that are resilient to failure?
- Batch jobs - Data Analysis - Image Processing - Distributed workloads - Workloads with flexible start/end time
26
What are the 5 features of Dedicated Hosts?
- Helps address compliance requirements and reduce costs by using existing software licenses - Allocated to your account for 3 years - More expensive - Useful for software that has a complicated licensing model (BYOL) - Suitable for string compliance or regulatory needs
27
What is the difference between Dedicated Host and Dedicated Instance?
A Dedicated instance does not provide access to the underlying hardware for the dedicated resources
28
What is a Spot Block?
It allows you to block a spot instance for a specified time frame 1-6 hours
29
How many Elastic IPs can you have in your account?
5
30
What should you do instead of using ElasticIPs?
- Use random public IPs and register a DNS name to it | - Use Load Balancer instead of public IP
31
What are the 3 strategies available for Placement Groups?
- Cluster - Spread - Partition
32
What does the Cluster Strategy for placement groups do?
Clusters instances into a low latency group in a single partition in a single AZ
33
What does the Spread Strategy for placement groups do?
Spreads instances across underlying hardware, with a max of 7 instances per group per AZ
34
What does the Partition Strategy for placement groups do?
Spreads instances across many different partitions within an AZ
35
What does ENI stand for?
Elastic Network Interfaces
36
What is an ENI?
A logical component in a VPC that represents a virtual network card
37
What are the 5 most important attributes an ENI can have?
- Primary private IPv4 - One Elastic IP - One Public IPv4 - One or more Security Groups - A MAC address
38
Is an ENI tied to a specific EC2 instance?
No, they can be created independently and moved from one instance to another
39
Is an ENI global?
No, they are AZ specific
40
What is EC2 Hibernate?
It is a new feature that preserves the in-memory state in the event an instance is stopped.
41
What are 3 use cases for Hibernate?
- Long running processes - Saving RAM state - Services that take time to initialize
42
What is EC2 Nitro?
The underlying platform for the next generation of EC2 instances
43
What are the 2 advantages of Nitro?
- Better Networking Options | - Higher Speed EBS, for up to 64,000 IOPS
44
Can I change the default number of cores and threads?
Yes, you can optimize vCPU to specify that you want 2 cores instead of 4, 1 thread per core instead of 2 at instance launch time