EC2 Flashcards

EC2

1
Q

Batch processing media transcoding high performance web servers scientific modeling ML gaming servers. What type of EC2 instance?

A

Compute Optimized

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

High performance RDBMS or NonRDMBS, distributed webscale cache stores, In memory DB for BI, real time proecssing of big structured data. What type of EC2 instance?

A

Memory Optimized

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

OLTP, RDBMS and NoSQL DB, Cache in memory DB like Redis, DW, distributed file system. What type of EC2 instance?

A

Storage Optimized

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

It’s a firewall around EC2
Only ALLOW
Reference by IP or other SGs

A

Security Groups

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

Ways to connect to EC2

A

Using SSH, EC2 instance connect and Putty

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

Pay by sec after first min (Linux and Windows). For other OS Pay by hour. Stopped instances, however, do not incur charges. [For short term uninterruped workload]

A

On Demand

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

Commit to an instance type, Region, Tenancy(host, dedicated, default) and OS. Reserved Instances incur charges for every clock-hour during the selected term, regardless of instance running status [For steady state usage like DB]

A

Reserved (1 or 3 years)

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

Same as Reserved except you can change instance type, family, region, tenancy or OS Savings Plan (1 or 3 years) -

A

Convertible Reserved

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

(like $10/hour) instead of instance type. Can change instance size, OS and Tenancy

A

Commit to usage

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

Short workloads and can lose the ec2 instance [For batch jobs, data analysis, image processing, etc]

What type of instance?

A

Spot

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

Dedicated entire physical server and unshared. On demand or resereved [For compliance or existing server bound s/w licences]

A

Dedicated host

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

Dedicated entire physical server and shared [No control on instance placement. Can move h/w after stop/start]

A

Dedicated instance

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

Reserve capacity in specific AZ for any duration. No time commitment. If you dont run you are still charged. [For short term uninterruped workload in a specific AZ]

What type of reservation?

A

Capacity reservations

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

Network drive you can attach to your EC2 instance
Data remains even EC2 instance is terminated
Mounted on 1 instance at a timeBound to an AZ
Move data from 1 instance to another

A

EBS(Elastic Block Storage)

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

Backup of EBS volume at a time
Used to move EBD volume data from one AZ/Region to another

A

EBS Snapshot

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

Launch EC2 instances from it
You can add your s/w, configurations, OS, monitoring into it
Build for a specific region

A

AMI

17
Q

Used to create VMs or container images
Automate the creation, maintain, validate, and test AMIs for EC2 instances
It can run on a schedule
The output is tested AMI which can be distribued to other regions

A

EC2 Image Builder

18
Q

Hard drive attached to EC2 instance
Its gone once EC2 instance is terminated
Faster than EBS
Good for temporary content, cache, scratch data

A

EC2 Instance Store

19
Q

Network file system (NFS) attached to EC2
It can be attached to more than 1 EC2 instance unlike EBS
it works only with your Linux EC2 instance
It works across multiple AZs.
Pay per use and not by capacity
EFS IA = Storage class is going to be cost-optimized for files that you don’t access very often

A

EFS(Elastic File System)

20
Q

Third party high performance (HPC) file system on AWS
Fully managed service
Build on windows file server
Supports SMB and windows NTFS
Integrated with windows active directory
Accessed from AWS or on Premise

A

Amazon FSx

21
Q

ELB and ASG

A

ELB and ASG

22
Q

Running your application in at least two Azs. What is it?

Application can take greater loads either by increasing the size (verticle) or add more instances (horizontal). What is it?

Same as horizontal scalability. What is it?

A

Availability, Scalability and Elasticity

23
Q

Spread load across more than 1 instance based on incoming traffic
TYPES
1. (Layer 7)(HTTP/HTTPS, uses DNS or URL)

2.(Layer 4) (TCP/UDP, users Static IP)

  1. (Layer 3, GENEVA, used for intrusion detection and routes to third party security virtual appliances before sending it to EC2)
A

1.Application, 2.Network and 3.Gateway load balancers

24
Q

Scale out (add) and Scale in (remove) the EC2 instance based on loadWe have to set minimum and maximum number of EC2 beforehand.

A

ASG(Auto Scaling Group)

25
Q

Update the size manually

When all my EC2 instance goes over 70% for five minutes, then add two units to capacity to my ASG2.

I want the average CPU utilization of all the EC2 instances in my ASG to stay at around 40% on average3.

Increase the minimum capacity to 10 EC2 instances in my ASG at 5pm on Friday4.

Using ML to predict the pattern and scale

A

Manual Scaling
Conditional Scaling
Simple Step Scaling
Target tracking scaling
Scheduled Scaling
Predictive Scaling