EC2 Flashcards
How many pricing models there is in EC2
4 ! On demand, Sport, Reserved, Dedicated Host
What happen cost wise if I terminate my EC2 spot instance after 2,30 hours
I will pay for 3 hours
What happen cost wise if Amazon terminate my EC2 spot instance after 2,30 hours
I will pay for 2 hours
What’s the acronyme to remember the different EC2 Instance Types
DR MC GIFT PX
What EC2 D2 mean and what’s use case ?
Dense storage - Usage : Fileservers/Data Warehousing/Hadoop
What EC2 R4 mean and what’s use case ?
(RAM) Memory optimised - Usage : Memoy Intensive Apps/DBs
What EC2 M4 mean and what’s use case ?
(Main) General Purpose - Usage : Applications servers
What EC2 C4 mean and what’s use case ?
Compute Optimized - Usage : CPU Intensive Apps/DBs
What EC2 G2 mean and what’s use case ?
Graphique Intensive - Usage : Video Encoding/ 3D Application Streaming
What EC2 I2 mean and what’s use case ?
(Io) High Speed storage - Usage : NoSql, DBs, Data whareousing
What EC2 M4 mean and what’s use case ?
(Main) General Purpose - Usage : Applications servers
What EC2 T2 mean and what’s use case ?
Lowest Code - Usage : General purpose
What EC2 P2 mean and what’s use case ?
Graphics - General purpose - Usage : Machine learning, Bitcoin Mining etc
What EC2 X1 mean and what’s use case ?
Memory Optimise - Usage : SAP HANA, Apache Spart etc
What EC2 T2 mean and what’s use case ?
Lowest Code - Usage : General purpose - (Good for dev, M4 would be use for production).
What EC2 X1 mean and what’s use case ?
(Xtreme RAM) Memory Optimise - Usage : SAP HANA, Apache Spart etc
What EC2 X1 mean and what’s use case ?
(Xtreme RAM) Memory Optimise - Usage : SAP HANA, Apache Spart etc
What EBS mean , what it is ?
Amazon Elastic Block Store (Amazon EBS) provides persistent block storage volumes for use with Amazon EC2 instances in the AWS Cloud. Each Amazon EBS volume is automatically replicated within its Availability Zone to protect you from component failure, offering high availability and durability.
How many different EBS type there is ? What are they ?
5 - SSD GP2 - SSD IOPS - HDD ST1 - HDD COLD SC1 - HDD Magnetic Standard.
What is EBS SSD GP2
General purpose SSD
What is EBS SSD IOPS IO1
High IOperation
WHat is EBS HDD ST1
Classic HDD Frequently accessed workload (cannot be bootable)
What is HDD Cold SC1
Less frequently accessed data (cannot be bootable)
What is HDD Magnetic
Standanrd HDD cheap, infrequent access (can be bootable)
Can EBS mount on different EC2 ?
No, Use EFS for this (Elastic File System)
Can EBS mount on different EC2 ?
No, Use EFS for this (Elastic File System)
By default is termination Protection on EC2 enable ?
No, need to enable it manually
By defaut what happen when terminating EC2 with the root EBS Volume ?
By default the root EBS volume will be deleted
Can Root volume can be encrypted ?
No except if using third party tool, but other EBS not (root) can be encrypted.
Where a EBS Snapshot is stored ?
S3
Are EBS Snapshot incremental ?
Yes
Are snapshot of EBS encrypted volume encrypted ?
Yes
Restore volume form encrypted snapshot is encrypted ?
yes
Can you share an encrypted snapshot ?
No
Where can you share a snapshot ?
Amazon Public Market place or other amazon account
Do you need to stop instance to take snapshot of root volume ?
Yes
What is Instance Store Volume ?
Call Ephemeral Storage, an instance store volume cannot be stop, if the host (baremetal) fail, data will be lost.
How to take a snapshot of a RAID Array ?
Stop Application from writing to disk and flush cache to the disk. Three way to do 1-Freeze file system, 2-Unmout RAID Array, 3-Shutting down EC2 instance
What is AMI
Amazon Machine Image
What the AMI context
regional, can launch only with the region where it’s stored, but can be copy crossed region.
What the default time of monitoring from cloud watch
5 m
What happen if I enable EC2 cloud watch detail monitoring
Monitoring time go down to 1 mn but is paid service
What Cloud watch is monitoring
Ressources and performance only
What is the difference between Cloud Watch and Cloud Trail ?
Cloud Trail is to monitor AWS activities while Cloud watch is to watch EC2 ressources and performance.
How can you add extra ressources watcher for RAM for exemple with cloud watch ?
Need to install a special deamon on EC2 instance.
What is an Alarm with Cloud watch
Use to notify when a threshold is hit
What is an Event with cloud watch
An event can be use to respond to a state change in AWS ressources
What is a Role in AWS ?
n IAM role is similar to a user, in that it is an AWS identity with permission policies that determine what the identity can and cannot do in AWS. However, instead of being uniquely associated with one person, a role is intended to be assumable by anyone who needs it. Also, a role does not have standard long-term credentials (password or access keys) associated with it. Instead, if a user assumes a role, temporary security credentials are created dynamically and provided to the user.
Can a role be assign after an EC2 instance After it has been provisionning ?
Yes. (before cannot).
Can a role being update anytime ?
Yes
What is a context of a IAM Role ?
Global
How to fetch Instance Metadata ?
Curl the IP http://169.254.169.254/latest/meta-data
What is EFS ?
Elastic File System
How pricing of EFS working ?
Pay for the usage storage
What the maximum size of EFS
Up to Petabytes
What EFS protocol is supported ?
Network File System Version 4 (NFSv4)
How many concurent NFS an EFS can handle ?
thousand concurent connection
What the context of the data storage of EFS ?
Availalbe in region only bu in all the Availibity zone of that region
What model EFS is based on data constistency ?
Read After Write (same as S3)
What is Lambda ?
AWS Lambda is an event-driven, serverless computing platform provided by Amazon as a part of the Amazon Web Services. It is a compute service that runs code in response to events and automatically manages the compute resources required by that code.
What is the list on compatible event to trigg lambda (20) ?
Amazon S3 Amazon DynamoDB Amazon Kinesis Streams Amazon Simple Notification Service Amazon Simple Email Service Amazon Cognito AWS CloudFormation Amazon CloudWatch Logs Amazon CloudWatch Events AWS CodeCommit Scheduled Events (powered by Amazon CloudWatch Events) AWS Config Amazon Alexa Amazon Lex Amazon API Gateway AWS IoT Button Amazon CloudFront Amazon Kinesis Firehose
Can I move a reserved instance from one region to another?
No
Reserved instances are available for multi-AZ deployments ?
True
If an Amazon EBS volume is an additional partition (ie not the root volume) , can I detach it without stopping the instance?
Yes but it will take some times
What is mandatory for cloudformation template ?
Ressources (specify the stack ressources and their properties)
What service is used to import existing VM into AWS ?
VM import/export
What the URL format for a static website service made on S3 ?
.s3-website-.amazonaws.com/
What kind of AMI image is needed to launch a T2.medium instance ?
An Amazon EBS-Backed Hardware Virtual Machine AMI.