EC2 Flashcards
What are the reserved instance types?
Standard
Scheduled
Convertible Reserved Instance
What EC2 Hibernate is about?
It is the Stop changed behaviour in which the RAM is written into the EBS. When the instance is stopped/started, the content of EBS is loaded into the RAM. The startup is much faster. It is ideal for processes that takes long to start up. It also works for Windows. Instances can’t be terminated for more than 60 days
How the instanced related information can be retrieved dynamically?
From the instance with an attached IAM role with enough privileges, as part of the user data, one can use curl http://169.254.169.254/latest/meta-data/local-ipv4, and output to a file/S3 that can then be read by a Lambda function
What are the scenarios for each placement group?
Clustered: higher throughput/network within the same host/AZ. Interesting for applications that will have benefits of the mentioned features
Spread: possible multiple AZ, but isolated instances racks. Interesting for applications that are critical and are independent from each other such as web applications. Only 7 instances can be deployed per availability zone
Partitioned: Group of instances per rack. Interesting for HDFS/Cassandra/HBase
It is possible to move an instance to a placement group in case the instance is stopped via CLI
How to achieve HPC?
Snowmobile is a truck that moves exabytes of data into/from the cloud;
AWS DataSync;
Data Direct;
Instance store has millions of IOPS;
EFS scale IOPS based on the total size;
FSx for Lustre is backed by S3 and it also supports millions of IOPS;
AWS Batch that allows hundreds of thousands of instances to be provisioned according to the needs;
AWS ParallelCluster allows a huge workload including VPC to be provisioned given a simple text file;
Describe AWS WAF
It is the layer 7 (application) web firewall that will help preventing attacks by filtering traffic by IP, region, query string parameters, headers names/values, etc
Can you move a reserved instance from one region to another?
No. If needed, you need to sell the reserved instance if you have US account.