EC2 Flashcards

1
Q

What is EC2?

A

Web service that provides resizable compute capacity in the cloud

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

What is the difference between using the EC2 local instance store and Amazon Elastic Block Store (Amazon EBS) for the root device?

A

By using Amazon EBS, data on the root device will persist independently from the lifetime of the instance. Alternatively, the local instance store only persists during the life of the instance.

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

How do I access my EC2 systems?

A

The RunInstances call that initiates execution of your application stack will return a set of DNS names, one for each system that is being booted. This name can be used to access the system exactly as you would if it were in your own data center.

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

How many instances can I run in Amazon EC2?

A

You are limited to running On-Demand Instances per your vCPU-based On-Demand Instance limit, purchasing 20 Reserved Instances, and requesting Spot Instances per your dynamic Spot limit per region.

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

How can I run more EC2 instances than specified in the instance limit?

A

Complete the Amazon EC2 limit increase request form

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

True or false: There are no limitations in sending email from EC2 instances.

A

False. In order to maintain the quality of Amazon EC2 addresses for sending email, we enforce default limits on the amount of email that can be sent from EC2 accounts.

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

How long does it typically take to set up new EC2 instances after a call to RunInstances?

A

A few minutes

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

What are vCPU-based limits for EC2?

A

EC2 measures usage towards each limit based on the total number of vCPUs that are assigned to the running On-Demand instances in your AWS account.

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

How many vCPUs for nano, micro, small and medium EC2 instances?

A

1

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

How many vCPUs for large and xlarge EC2 instances?

A

2, 4 respectively

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

How many vCPUs for Nxlarge EC2 instances, as an expression of N?

A

N*4

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

What is the default vCPU limit for EC2 On-Demand standard instances (A, C, D, H, I, M, R, T, Z)?

A

1152 vCPUs

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

What is the default vCPU limit for EC2 On-demand instances F, G, Inf, P, X?

A

128 vCPUs

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

True or false: vCPU-based limits do not apply to EC2 Reserved Instances.

A

True

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

When do vCPU limits apply to EC2 Spot Instances?

A

Only when running, not when requesting

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

EC2 - What are Accelerated Computing instances?

A

Use hardware accelerators, or co-processors, to perform some functions more efficiently than is possible in software running on CPUs (e.g. floating-point number calculation and graphics processing).

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

EC2- What are the 3 types of Accelerated Computing instances?

A

GPU compute for general-purpose computing, GPU graphics for graphics-intensive, and FPGA programmable hardware compute instances for advanced scientific workloads

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

EC2 - When should I use GPU graphics and compute instances?

A

For applications with massive parallelism such as workloads using thousands of threads.

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

EC2 - What applications can benefit from P4d?

A

Machine learning workloads like NLP, image classification, object detection, etc. Increased GPU performance can significantly reduce time to train.

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

What are the 5 EC2 instance families?

A

General purpose, compute optimized, memory optimized, accelerated computing, storage optimized

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

What are EC2 T2 instances?

A

General purpose, burstable performance instances that provide a baseline level of CPU performance with the ability to burst above the baseline.

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

Which EC2 T2 instance type allows instance storage?

A

Trick question! None of them.

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

What is the memory in GiB for EC2 t2 instance types?

A
nano - 0.5
micro - 1
small - 2
medium - 4
large - 8
xlarge - 16
2xlarge - 32
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

What is the memory of EC2 m4.large in GiB, and for m4.Nxlarge, what is the memory as an expression of N?

A

m4. large - 8 GiB

m4. Nxlarge - N*16

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

What are EC2 m4 and m5 instances good for?

A

Small and mid-size databases, data processing tasks requiring additional memory, running backend servers for enterprise applications

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

What are EC2 t2 instances good for?

A

Websites and web applications, development environments, build services, microservices, test and staging envs

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

What are EC2 m5a and m6g instance types?

A

Balanced general purpose instance types with special processors / SSD hardware. m6g is cheap.

28
Q

What are M5n EC2 instances good for?

A

Higher bandwidth variant of M5 general purpose instances. Better for applications that can take advantage of improved throughput.

29
Q

What are EC2 A1 instances?

A

Significant cost savings, ideally suited for Arm-based workloads supported by the Arm ecosystem.

30
Q

What are EC2 T3, T3a, and T4g instance types?

A

Next-generation burstable instance types. T4g is Arm-based and cheap.

31
Q

Which EC2 instance type within the T instance family is most cost effective?

A

T4g

32
Q

Which EC2 instance type within the M family is most cost effective?

A

M6g

33
Q

What are Compute Optimized EC2 instances good for?

A

Batch processing workloads, media transcoding, high performance web servers, high performance computing, scientific modeling, dedicated gaming servers and ad server engines, machine learning inference

34
Q

What are C4 and C5 EC2 instance types?

A

Optimized for compute-intensive workloads and deliver cost-effective high performance

35
Q

Which EC2 Compute instances are good for applications that need higher networking throughput?

A

C5n, C6gn

36
Q

Which EC2 Compute instances deliver up to 40% better price performance?

A

C6g and C6gn

37
Q

True or false: The data stored on an EC2 local instance store will persist after the instance is terminated.

A

False

38
Q

Which EC2 volume type should you choose for transactional workloads?

A

SDD - performance depends mostly on IOPS

39
Q

Which EC2 volume type should you use for throughput workloads?

A

HDD - throughput-intensive and big-data workloads

40
Q

True or false: EBS snapshots are only available through the Amazon EC2 APIs.

A

True

41
Q

What is the recommended process to ensure consistent EBS snapshots on volumes attached to an instance?

A
  • cleanly detach the volume
  • issue the snapshot command
  • reattach the volume
42
Q

True or false: EBS snapshots can be used for point-in-time recovery.

A

True - each snapshot is given a unique identifier, and customers can create volumes based on any of their existing snapshots

43
Q

What is AWS EFA?

A

Elastic Fabric Adapter - network interface for EC2 instances that enables customers to run applications requiring high levels of inter-node communications at scale on AWS

44
Q

True or false: EFA is available as an optional EC2 networking feature that you can enable on any supported EC2 instance at no additional cost.

A

True

45
Q

Why should you use EFA?

A

Get lower, more consistent latency and higher throughput for tightly-coupled HPC applications

46
Q

What is ENA?

A

A custom network interface optimized to deliver high throughput and packet-per-second performance, and consistently low latencies on EC2 instances.

47
Q

What is the difference between an EFA ENI and an ENA ENI?

A

EFA ENI provides all the functionality of an ENA ENI, plus hardware support for applications to communicate directly (OS-bypass communication)

48
Q

True or false: You can attach an EFA device to a running instance.

A

False. EFA support can be enabled either at the launch of the instance or added to a stopped instance.

49
Q

EC2 - What are some types of applications that would benefit from the default public IP address instead of an Elastic IP address?

A

Compute clusters, web crawling, backend services

50
Q

When should I use the ELB Classic Load Balancer?

A

Simple load balancing of traffic across multiple EC2 instances based on application or network level information

51
Q

When should I use ELB Application Load Balancer?

A

Applications needing advanced routing capabilities, microservices, and container-based architectures, based on advanced application level information that includes the content of the request

52
Q

EC2 - What is SR-IOV in enhanced networking?

A

Method of device virtualization that provides higher I/O performance and lower CPU utilization compared to traditional implementations

53
Q

EC2 - When should I use Enhanced Networking?

A

If applications benefit from high packet-per-second performance and/or low latency networking

54
Q

EC2 - What is the additional fee to use Enhanced Netowrking?

A

Trick question! No additional fee.

55
Q

Where can I find a history of all EC2 API calls made on my account?

A

CloudTrail

56
Q

How long are metrics data for terminated EC2 instances and deleted ELBs stored?

A

2 weeks

57
Q

Why should I hibernate an EC2 instance?

A

To get instance and applications up and running quickly, if they take a long time to bootstrap (e.g. load memory caches)

58
Q

What is a hibernated instance in EC2?

A

An instance that has been started and then stopped while maintaining memory state - “pre-warmed” instances that can be resumed to reduce the time it takes for an instance to return to service

59
Q

What happens when I hibernate my EC2 instance?

A

Contents from the instance’s memory are persisted to EBS root volume. When instance restarted, returns to previous state and reloads RAM contents

60
Q

True or false: EBS root volume data is only persisted when you hibernate an EC2 instance, not when you stop it.

A

False.

61
Q

True or false: You can stop or hibernate an EC2 instance with local instance storage.

A

False. Stop and hibernate are only available for EBS backed instances.

62
Q

EC2 - What is the difference between hibernate and stop?

A

Hibernate - RAM data persisted

Stop - instance shut down and RAM is cleared

63
Q

True or false: You can enable hibernation on an existing instance (running or stopped).

A

False. Hibernation needs to be enabled when you launch the instance.

64
Q

EC2 - What is the maximum supported time to keep an instance hibernated?

A

60 days

65
Q

EC2 - What happens if my root volume doesn’t have enough space for the contents of RAM when hibernating?

A

Hibernation will fail and the instance will get shutdown instead.

66
Q

EC2 - How do you leverage previous investments in building VMs?

A

Migrate VMs to EC2 using VM Import/Export