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
Q

True or False: You can modify the instance type, kernal, RAM, and volume usage on an instance-store backed instance?

A

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
Q

What scenarios would you attach additional ENIs to an instance?

A

To create separate networks for your workloads, i.e. a management workload and an application workload. Adding ENIs won’t increase your throughput.

27
Q

What scenarios would you use Enhanced Networking (ENA or Intel 82599 VF)?

A

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
Q

When would you use an Elastic Fabric Adapter (EFA)

A

To accelerate HPC for machine learning applications and to achieve OS-bypass on Linux machines.

29
Q

What CloudWatch metrics are available for EC2 instances by default?

A

CPU, network, disk, and status checks (you’d have to create a custom one for memory utilization for example)

30
Q

What is the default interval CloudWatch polls your EC2?

A

Every 5 minutes

31
Q

What is the main difference between CloudWatch and CloudTrail?

A

CloudWatch is all about monitoring performance; CloudTrail is about auditing AWS calls and actions and resource activity

32
Q

What information is available at 169.254.169.254/latest/user-data?

A

The bootstrap script

33
Q

What information is available at 169.254.169.254/latest/meta-data?

A

Lots of information, including your public and private IP addresses, your tags, security groups, etc.

34
Q

How do you attach an EFS to EC2s?

A
  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
Q

What protocol is used for EFS?

A

NFSv4

36
Q

How large can an EFS scale?

A

Petabytes

37
Q

How many NFS connections can EFS support?

A

1000s

38
Q

What kind of consistency does EFS provide?

A

Read after Write

39
Q

What kind of availability does EFS provide?

A

Storage across multi-AZ

40
Q

What type of file system would you use for SMB file storage?

A

Windows SFx

41
Q

What high-performance file system is available for Linux machines and provides hundreds of Gbps throughput, millions of IOPs, and sub-millisecond latency?

A

SFx for Lustre

42
Q

What is unique to a Spread Placement Group?

A

You can only have up to 7 running instances per availability zone per group

43
Q

What are the features of a Partitioned Placement Group?

A

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
Q

What is the use case for a Clustered Placement Group?

A

Workloads that require high-throughput, low latency network for instances running logically clustered together within a single Availability Zone.

45
Q

True or False: You can merge placement groups?

A

False

46
Q

The name of a placement group must be unique within your AWS account within a

A

Region

47
Q

True or False: You can launch host tenancy instances within a placement group

A

False

48
Q

How can you specify your spot instance/fleet to run for a specified duration?

A

By using a Spot Block that reserves for a specified amount of time and will only be interrupted for capacity needs

49
Q

What is the use case for spot instances?

A

Stateless, fault-tolerant, flexible applications like big data, containerized workloads, ci/cd, stateless web servers, HPC, and rendering workloads

50
Q

What is specified in a spot instance request?

A
The persistence (one-time or persistent)
Maximum spot price
51
Q

What is specified in a spot fleet request?

A

Set of instances (which can include on-demand instances)
Target capacity
Maximum spot price

52
Q

What AWS service allows you to run 100s of thousands of scheduled, parallel jobs spanned crossed instances

A

AWS Batch

53
Q

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?

A

AWS ParallelCluster