EC2 Flashcards

1
Q

What pricing models are available for EC2

A

On-Demand
Reserved (contract 1-3 yrs)
Spot
Dedicated Hosts

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

EC2 Family F is for

A

FPGA (Genomics, Financial Analytics, Big Data)

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

EC2 Family I is for

A

IOPS (NoSQL, DBMS, Data warehousing)

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

EC2 Family G is for

A

Graphics (Video encoding, 3d Streaming)

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

EC2 Family H is for

A

High Disk Throughput (MapReduce, File System)

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

EC2 Family T is for

A

Cheap General Purpose (think t2.Micro)

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

EC2 Family D is for

A

Density (Fileservers, data warehouses, Hadoop)

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

EC2 Family R is for

A

RAM (Memory intensive apps)

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

EC2 Family M is for

A

Main choice (Applications)

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

EC2 Family C is for

A

Compute (CPU intensive)

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

EC2 Family P is for

A

Graphics (Think Pics; Machine Learning, BitCoin mining)

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

EC2 Family X is for

A

Xtreme Memory (Hana, Apache Spark)

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

EC2 Family Z is for

A

Xtreme Memory AND CPU (Electronic Design Automation)

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

EC2 Family A is for

A

ARM-based workloads

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

EC2 Family U is for

A

Bare-metal (to eliminate virtualization overhead)

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

True or False: Termination protection is off by default for new instances?

A

True; you must enable it yourself

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

True or False: By default, your root EBS volume will be deleted when you terminate your instance

A

True

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

True or False: You can blacklist specific ports or IP addresses using security groups.

A

False; You can specify allowed traffic only

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

What is the maximum number of security groups you can have per region?

A

2500

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

What are your cheap EBS volume options?

A

The Hard Disk ones, st1 and sc1

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

What are the SSD options for EBS volumes?

A

gp2 (general purpose) and io1 (for provisioned IOPs)

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

When would you use an Instance Store volume as opposed to an EBS?

A

When you only need ephemeral storage; instance store volumes are deleted when the instance is terminated

23
Q

What are the components of an AMI?

A

The EBS snapshot or instance store templates
Launch permissions that control which AWS accounts can use the AMI
Block device mapping that specifies the volumes to attach when an instance is launched

24
Q

You can select an AMI based on the following characteristics

A
Region
OS
Architecture
Launch Permissions
Storage for root device
25
True or False: You can modify the instance type, kernal, RAM, and volume usage on an instance-store backed instance?
False; you can't stop (you can only run or terminate) an instance store backed instance so you can't modify these parameters once you start.
26
What scenarios would you attach additional ENIs to an instance?
To create separate networks for your workloads, i.e. a management workload and an application workload. Adding ENIs won't increase your throughput.
27
What scenarios would you use Enhanced Networking (ENA or Intel 82599 VF)?
You would use theses for SR-IOV device virtualization for higher I/o and lower CPU utilization to achieve speeds of 10 Gbps to 100 Gbps at no additional charge.
28
When would you use an Elastic Fabric Adapter (EFA)
To accelerate HPC for machine learning applications and to achieve OS-bypass on Linux machines.
29
What CloudWatch metrics are available for EC2 instances by default?
CPU, network, disk, and status checks (you'd have to create a custom one for memory utilization for example)
30
What is the default interval CloudWatch polls your EC2?
Every 5 minutes
31
What is the main difference between CloudWatch and CloudTrail?
CloudWatch is all about monitoring performance; CloudTrail is about auditing AWS calls and actions and resource activity
32
What information is available at 169.254.169.254/latest/user-data?
The bootstrap script
33
What information is available at 169.254.169.254/latest/meta-data?
Lots of information, including your public and private IP addresses, your tags, security groups, etc.
34
How do you attach an EFS to EC2s?
1. Create the EFS 2. Create an inbound rule on your instance security groups to allow NFS port 2049 3. Mount EFS to the instances
35
What protocol is used for EFS?
NFSv4
36
How large can an EFS scale?
Petabytes
37
How many NFS connections can EFS support?
1000s
38
What kind of consistency does EFS provide?
Read after Write
39
What kind of availability does EFS provide?
Storage across multi-AZ
40
What type of file system would you use for SMB file storage?
Windows SFx
41
What high-performance file system is available for Linux machines and provides hundreds of Gbps throughput, millions of IOPs, and sub-millisecond latency?
SFx for Lustre
42
What is unique to a Spread Placement Group?
You can only have up to 7 running instances per availability zone per group
43
What are the features of a Partitioned Placement Group?
It's like a Spread Placement Group, but allows multiple instances per partition. Each partition is within its own set of racks. This is ideal for workloads for HDFS, Hbase, Cassandra. You can have a maximum of 7 partitions per Availability Zone.
44
What is the use case for a Clustered Placement Group?
Workloads that require high-throughput, low latency network for instances running logically clustered together within a single Availability Zone.
45
True or False: You can merge placement groups?
False
46
The name of a placement group must be unique within your AWS account within a
Region
47
True or False: You can launch host tenancy instances within a placement group
False
48
How can you specify your spot instance/fleet to run for a specified duration?
By using a Spot Block that reserves for a specified amount of time and will only be interrupted for capacity needs
49
What is the use case for spot instances?
Stateless, fault-tolerant, flexible applications like big data, containerized workloads, ci/cd, stateless web servers, HPC, and rendering workloads
50
What is specified in a spot instance request?
``` The persistence (one-time or persistent) Maximum spot price ```
51
What is specified in a spot fleet request?
Set of instances (which can include on-demand instances) Target capacity Maximum spot price
52
What AWS service allows you to run 100s of thousands of scheduled, parallel jobs spanned crossed instances
AWS Batch
53
Which AWS service provides an easy way to model an HPC cluster using a text file to define instances, resources, VPCs, subnets, cluster types, and scaling?
AWS ParallelCluster