Module 5: Adding a compute layer with eC2 Flashcards
Role of cloud architect when designing a compute layer
Analyse key characteristics of the workload to choose AMI, EC2 instance type and storage options that optimize the perf and security
What are the different type of compute options proposed by AWS
1) Virtual Machines
2) Containers
3) Virtual Private Servers
4) Platform as a service
5) Serverless
What AWS service propose virtual Machines
EC2
What AWS Services allow the usage of containers?
Amazon Elastic Container Service (ECS)
Amazon Elastic Kubernetes Service (EKS)
Use both service to run container application in highly available and scalable environment
What AWS service allows for Virtual Private servers (VPS)
Amazon Lightsail
What AWS service aloow computing in a PaaS setting
Beanstalk
What serverless computing services are part of the AWS ecosystem
AWS lambda
AWS fargate
What is EC2?
Elastic Cloud compute.
It provides secure and resizable virtual servers in the cloud that can run workloads of differing sizes.
What is ECS?
Elastic Container Services:
Allows you to use docker containers in the cloud
What is EKS
Elastic Kubernetes services
Allows you to use kubernetes
What is Amazon Lightsail?
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…..
What is Lambda?
Serverless compute solution allowing you to run code like Java, Go, Powershell, Node.js, C#, Python or Ruby
What is Beanstalk
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.
What languages are supported by beanstalk?
Java
:NET
PHP
Node.js
Python
Ruby
Go
Docker
What is Fargate?
serverless compute for containers
What is the advantage of serverless services?
They enable you to run workloads withou having to provision configure or manage servers
Compute service categories differentiators
Structure of an EC2
The instance runs on top of an Hypervisor. The hypervisor is the platform that provides access to the actual hardware supporting the machine.
What is an instance store ?
Ephemeral storage physically attached to the host computer and provides temporary block storage to the instance
What is a common supporting memory service to EC2?
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 does EBS optimized instance improve the synergy with EC2?
By minimizing the I/O contention between the volume and other traffic from the instance
Why choose EC2?
You need complete control of your computing resources, OS; CPU; STORAGE; Applications… It can be used for running any type of workload
Type of instances for optimizing cost?
On demand instance,
Reserved instances,
Spot instances,
Saving plans
Dedicated hosts
What do you need to configure if you want to access the instance using Secure Shell (SSH)or Remote desktop Protocol (RDP)
You need to setup a key pair. A set of security credentials
AMI or Amazon Machine Image
An AMI is a template for the root volume
AMI benefits
Repeatability, Reusability, Recoverability
5 key characterirstics to choose an AMI
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)
Sources to obtain AMI :
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
Instance on EBS vs instance store:
Which boots faster?
EBS
If you want a fast boot what type of storage should you choose?
EBS
Max Size of root device on Instance store
10Gib
Max Size of root device on EBS
16 TiB
Can I stop the instance without an EBS ?
No. Either running or terminated. You need EBS to stop
Can you change the instance type on instance store?
No you can’t because it needs to be stopped to be change and you can’t stop without EBS
What is more expensive ?
EBS or instance store
EBSE because you also are charge for EBS volume usage, storing your AMI as a snapshot and the instance usage
If you want persistent storage. What do you use for storage?
EBS (Elastic Block Store)
Through which interface can you reboot an instance
the EC2 console, CLI or SDK.
A rebooting instance keeps:
the public DNS and public IP address. It stays on the same physical host
Can you recover or reconnect to a terminated instance ?
No
Starting a stop instance migrate the instance to a new host computer, true or false
True
What is the difference between stop and hibernate
It retains the data when hibernated
How do you create an image ?
By using EC2 Image Builder
What elements are impacted by my choice in AMI ?
CPU
Memory
Storage
Network performance
Why should I know the workload and my cost requirements before launching an instance?
Helps choose the right instance as it will configure the performance settings and cost of the instance
What type of instance do not support enhanced Networking?
T2
What is enhanced networking?
It means that the Session Initiation Protocol (SIP) workloads have access to consistent bandwidth and lower aggregate latency