Module 5: Adding a compute layer with eC2 Flashcards

1
Q

Role of cloud architect when designing a compute layer

A

Analyse key characteristics of the workload to choose AMI, EC2 instance type and storage options that optimize the perf and security

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

What are the different type of compute options proposed by AWS

A

1) Virtual Machines
2) Containers
3) Virtual Private Servers
4) Platform as a service
5) Serverless

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

What AWS service propose virtual Machines

A

EC2

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

What AWS Services allow the usage of containers?

A

Amazon Elastic Container Service (ECS)
Amazon Elastic Kubernetes Service (EKS)
Use both service to run container application in highly available and scalable environment

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

What AWS service allows for Virtual Private servers (VPS)

A

Amazon Lightsail

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

What AWS service aloow computing in a PaaS setting

A

Beanstalk

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

What serverless computing services are part of the AWS ecosystem

A

AWS lambda
AWS fargate

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

What is EC2?

A

Elastic Cloud compute.
It provides secure and resizable virtual servers in the cloud that can run workloads of differing sizes.

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

What is ECS?

A

Elastic Container Services:
Allows you to use docker containers in the cloud

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

What is EKS

A

Elastic Kubernetes services
Allows you to use kubernetes

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

What is Amazon Lightsail?

A

Lightsail is a virtual private server that provides devekopers with compute storage and networking capabilities. Light weight with everything. Simple management interface. Use case include running website, devloping apps, blog, e-commerce…..

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

What is Lambda?

A

Serverless compute solution allowing you to run code like Java, Go, Powershell, Node.js, C#, Python or Ruby

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

What is Beanstalk

A

Solution that runs web apps and services developped in java, .net, php, node.js, ruby, Go and docker. you upload your code and the service automatically handle the devlopment for you.

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

What languages are supported by beanstalk?

A

Java
:NET
PHP
Node.js
Python
Ruby
Go
Docker

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

What is Fargate?

A

serverless compute for containers

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

What is the advantage of serverless services?

A

They enable you to run workloads withou having to provision configure or manage servers

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

Compute service categories differentiators

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

Structure of an EC2

A

The instance runs on top of an Hypervisor. The hypervisor is the platform that provides access to the actual hardware supporting the machine.

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

What is an instance store ?

A

Ephemeral storage physically attached to the host computer and provides temporary block storage to the instance

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

What is a common supporting memory service to EC2?

A

EBS (Elastic Block Store) used for the boot disk and other storage needs. Provides persistent block storage volumes. The data will be persisted even when the instance is stopped.

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

How does EBS optimized instance improve the synergy with EC2?

A

By minimizing the I/O contention between the volume and other traffic from the instance

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

Why choose EC2?

A

You need complete control of your computing resources, OS; CPU; STORAGE; Applications… It can be used for running any type of workload

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

Type of instances for optimizing cost?

A

On demand instance,
Reserved instances,
Spot instances,
Saving plans
Dedicated hosts

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

What do you need to configure if you want to access the instance using Secure Shell (SSH)or Remote desktop Protocol (RDP)

A

You need to setup a key pair. A set of security credentials

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

AMI or Amazon Machine Image

A

An AMI is a template for the root volume

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

AMI benefits

A

Repeatability, Reusability, Recoverability

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

5 key characterirstics to choose an AMI

A

1) The Region: Each AMI exists in a specific Region
2) The OS: Windows o Linux variant
3) Storage for the root device: EBS for persistence or Instance store
4) Architecture: Processor architecure 32bits or 64 bits
5) Virtualization type : Paravirtual (PV) or Hardware Virtual Machine (HVM). (Better perf = HVM)

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

Sources to obtain AMI :

A

Quick starts (AWS built AMI)
My AMI (create your own)
AWS Marketplace: AMI from software vendors for a multiple of use case
Community built AMI: created by a community of users but not vetted by AWS. Use at own risk

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

Instance on EBS vs instance store:
Which boots faster?

A

EBS

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

If you want a fast boot what type of storage should you choose?

A

EBS

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

Max Size of root device on Instance store

A

10Gib

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

Max Size of root device on EBS

A

16 TiB

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

Can I stop the instance without an EBS ?

A

No. Either running or terminated. You need EBS to stop

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

Can you change the instance type on instance store?

A

No you can’t because it needs to be stopped to be change and you can’t stop without EBS

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

What is more expensive ?
EBS or instance store

A

EBSE because you also are charge for EBS volume usage, storing your AMI as a snapshot and the instance usage

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

If you want persistent storage. What do you use for storage?

A

EBS (Elastic Block Store)

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

Through which interface can you reboot an instance

A

the EC2 console, CLI or SDK.

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

A rebooting instance keeps:

A

the public DNS and public IP address. It stays on the same physical host

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

Can you recover or reconnect to a terminated instance ?

A

No

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

Starting a stop instance migrate the instance to a new host computer, true or false

A

True

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

What is the difference between stop and hibernate

A

It retains the data when hibernated

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

How do you create an image ?

A

By using EC2 Image Builder

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

What elements are impacted by my choice in AMI ?

A

CPU
Memory
Storage
Network performance

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

Why should I know the workload and my cost requirements before launching an instance?

A

Helps choose the right instance as it will configure the performance settings and cost of the instance

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

What type of instance do not support enhanced Networking?

A

T2

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

What is enhanced networking?

A

It means that the Session Initiation Protocol (SIP) workloads have access to consistent bandwidth and lower aggregate latency

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

Naming convention of instance.

What does c7gn.xlarge means

A

C: family
7: Generation
g: Processor family
n: additional capabilities
X-Large: size

48
Q

What are the 6 types of instance that we have

A

1) General Purpose
2) Compute optimized instance
3)Storage Optimized instance
4)Memory optimized
5)Accelerated computed instance
6)High performance computing

49
Q

What are the instance families for general purpose instances types ?

A

M;T
Web app server
Enterprise application
Gaming servers

50
Q

What are isntance families for compute optimized ?

A

C (compute)
Batch processing
Distributed analytics

51
Q

What are isntance families for storage optimized ?

A

I;D;H
High perf databases
Real time analytics

52
Q

What are isntance families for memory optimized ?

A

R;X;Z
High perf databases
Big data analytics

53
Q

What are isntance families for accelerated computing ?

A

P;DL;VT;G;F;Trn;Inf
Machine learning and AI

54
Q

What are isntance families forHigh performance computing ?

A

Hpc (High performance Computing)
Deep learning workloads

55
Q

When planning for my instance should I underplan and resize or oversize and resize ?

A

Undersize because you will adjust later on. If you over-specs, then it will hide performance issues and it will cost too much for what is really needed

56
Q

What is teh advantage of choosing the latest AMI in the family

A

It generally has the best cost/performance ratio.

57
Q

There is a service providing recommendations on how to optimize instance type. How is it called ?

A

AWS Compute Optimizer.
It analyses the run time and advice for improved performance and cost reduction

58
Q

What techology hides behind Cosmputeoptimizer?

A

Amazon ML (Machine learning). It provides recommendation for M, C, R, T and X families

59
Q

What are the recommendations given by compute optimizer ?

A

Under-provisioned, over-provisionned, optimized or none.

60
Q

In what circumstances does the compute optimizer returns none

A

If:
1) The compute optimizer runs since less than 12 hours.
2) The instance has been running for less than 30 hours
3) The instance family is not supported

61
Q

Match the workload to the instance family:

Transactional databases

C / M / I / P / Inf2 / R / T

A

I because I family is Storage optimized

62
Q

Match the workload to the instance family:

Small devlopment environment

C / M / I / P / Inf2 / R / T

A

T
Because they are general purpose instances

63
Q

Match the workload to the instance family:

Gaming servers

C / M / I / P / Inf2 / R / T

A

M
General purpose

64
Q

Match the workload to the instance family:

In-memory caches

C / M / I / P / Inf2 / R / T

A

R because R instances are memory optimized

65
Q

Match the workload to the instance family:

Image and video generation

C / M / I / P / Inf2 / R / T

A

Inf2 because inf2 is accelerated computing

66
Q

Match the workload to the instance family:

Machine learning

C / M / I / P / Inf2 / R / T

A

P because inf2 is accelerated computing

67
Q

Match the workload to the instance family:

Batch processing

C / M / I / P / Inf2 / R / T

A

C because C is Compute optimized

68
Q

Where can I find more info on the instance type

A

Instance type page in the management console

69
Q

What are the four storage options for an instance ?

A

1) Amazon EBS (Elastic Block Store)
2) Amazon EFS (Elastic File System)
3) Amazon FSx for windows file server
4) Instance store

70
Q

What is a root volume for ?

A

It stores the OS and initial file systems for the instance

71
Q

What are the only two storage type can be used to store a root volume ?

A

EBS and Instance store

72
Q

When to use an instance store?

A

If you need fas compute time and data doesn’t need to be stored persistently on the volume.

73
Q

If the instance is stopped, what happens to the data on the instance store

A

It gets deleted

74
Q

If I want the data to persist, what shoud I do ?

A

Use EBS.

75
Q

What is the issue common to EBS and instance store?

A

They can be used by a single volume at a time. However, EBS can be detached and reassigned while instance store is fixed.

76
Q

What storage type to choose if I want several instances to collaborate on the single volume ?

A

EFS for linux instances and FSx for Microsoft Windows instances

77
Q

Instance store technology ?

A

SSD or HDD on block storage. The disk is physically attached to the computer running the instance.

Good for buffers, caches, scratch data

78
Q

If I want an instant store with high I/O performance what should I choose ?

A

SSD with NVMe (non volatile memory express)

79
Q

If the instance is rebooted, do I keep the data in the instance store ?

A

YES, but not when terminated

80
Q

EBS technology

A

Persistent block storage in SSD or HDD

81
Q

EBS advantages

A

Cana attach to any other instance in teh same AZ.
Can be encrypted
Support snapshot that are persisted to S3
Data persists

82
Q

What type of instance storage can be compared to an external hard disk ?

A

Amazon EBS (Elastic Block Store)

83
Q

Why do EBS instance have lw access latency ?

A

Because they are mounted directly on the instance

84
Q

Why choose an EBS in SSD?

A

If I have high transactional workloads with frequent read/write operations and small I/O sizes

85
Q

If I want to use an instance to support a datawharehouse with a lot of transactions what type of storage is the best suited ?

A

EBS with IOPS SSD (in out per second)

86
Q

Why should I choose and EBS HHD backed?

A

For large streaming download. Where throughput in MIb/s is a more critica component.

87
Q

Two version of HHD for EBS and advantage of each?

A

Throughput optimized instances:
Streaming workload, big data
Cold HDD:
Lowest cost HDD volume but designed for less frequent access

88
Q

I can select an EBS to match an instance but can I choose an optimized instance for my EBS ?

A

YES

89
Q

What if you have multiple instances that must use the same storage ?

A

Best solution is to use EFS for Linux or FSx for windows.

90
Q

Why is S3 not prefered to EFS or FSx when sharing storage accross instance ?

A

Because S3 is object based so if you have a high througuput then because you need to overwrite entire file for each modification, this is not at all optimal compared to a file system like EFS or FSx.

91
Q

Which file storage system service is Linux based

A

EFS

92
Q

Advantages of NFS

A

Scales automatically,
Support NFS,
Petabytes of capacity
Works accross several instance
Uses NFS protocol

93
Q

Are mutlitple AZ supported by EFS ?

A

YES
Each AZ has a mount with an IP that EFS connects to.

94
Q

EFS in One zone storage is cheaper by up to how much compared to multi AZ?

A

up to 47% cheaper. So consider the use case well before spreading your EFS.
Of course you gain both durability and availability with multiple AZ.

95
Q

If I am One zoning an EFS can I still connect an instance from another AZ to it ?

A

Yes. The EFS will just be hosted on a single AZ but still made accessible through mount in the AZ it is hosted on

96
Q

What is instance user data

A

It is a script used to run shell commands or cloud init directives. It runs with root user priviledges after the instance start but before it gets accesible to the network.
You can use it to patch and update software from the AMI.

97
Q

What is instance metadata and what is it used for ?

A

It is information about the instance.
1) id
2) mac (media access control)
3) hostname
4) public and local ip
It is used because you might want to have this information to launch or access your instance. You can access the meta data of the instance with specific url:
http://169.254.169.254/latest/meta-data/

98
Q

Can you edit the user data on a running instance

A

No you need to stop it before, remove the old ones and put in the new before relaunching

99
Q

Why use user data and not run commands when the instance as started ?

A

For reproducibility purposes.

100
Q

What are the different AMI deployment models?

A

Basic
Silver
Gold

Goes from basic configuration to some configuration to fully configured.

Gold AMI have shorter boot times but increased build times.

101
Q

What do you get with a basic AMI

A

Only the OS

102
Q

What is a placement group used for?

A

This is when you want to influence the placement of your instances in an availability zone.
To increase performance or reduce correlated failures for example

103
Q

What are the three modes of placement groups for EC2 instances

A

Cluster: close together to reduce latency
Partition: Spread accross logcial partition to not share the same risk in the partition
Spread: Spread accross distinct harware to reduce correlated failures.

104
Q

Purchasing strategies type on EC2

A

Purchase models => emphasize on saving
Capacity reserved models => emphasize on availability
Dedicated models => emphasize on compliance, regulation and data privacy

105
Q

What is the on demand purchase model

A

Pay for compute capacity by the second or the hour. No commitment.
Good for spiky workloads on experimental workloads

106
Q

What is the reserved purchase model

A

Commit for 1 or 3 years. Receive a discount. Committed workloads

107
Q

What are EC2 saving plans?

A

A model by which you have similar disconts than a reserve instance but you commit for a $/hour in exchange.
Compute saving plans are very flexible and lets you save up to 66%
Instance Saving plans are less flexible (can’t change region) But offer bigger discounts

108
Q

What is EC2 Spot?

A

You bid on the unused capacity of EC2 instances and get a share of the compute time when available. Can be stopped anytime by AWS with a 2 minutes notice. Billed by the second.

Good for workloads that can be stopped

109
Q

What is capacity reservation for the EC2 cost model?

A

It lets you reserve compute capacity in a specific AZ

110
Q

What are the different types of capacity reservation?

A

1)On demand capacity reservation:
You always have access to capacity for as long as you need it.
2)Ec2 Capacity Blocks for ML
Reserve GPU for a future date to run any ML workload

111
Q

Example of strategy for cost optimization using EC2

A

1) Use reserved instance or saving plans for known steady state workload.
2) Use on demand instance for new or spiky workloads
3) Scale using spot instance for fault tolerance and flexible workloads

112
Q

Well architected pillars for using EC2

A

Security
Performance efficiency
Cost optimisation
Sustainability

113
Q

Security & EC2 : Best practices

A

1)Automate compute protection:
EC2 image builder; user data scripts; Silver or Gold AMIs to lock down secrutiy configurations
2)Control traffic at all layers:
Use VPS and security groups. Separate workloads.

114
Q

Best practice for Performance efficiency and EC2:

A

Scale the best compute options and right size

115
Q

Best practice for cost optimization with EC2:

A

Select the correct ressource type and the best pricing model

116
Q
A