EC2 Flashcards
How to connect to EC2 instances in private subnet ?
Configure a bastion host in the public subnet and ssh into it. Then ssh to the backend instance from the bastion
How to create Instances with software pre-installed ? (2)
. Add the script for the installation in the User data section
. Create an AMI and then create a launch configuration
How to secure the data in EBS volume ?
encrypt the data using KMS
Type of EBS ?
. Low latency
. Development and test environments
. Balance of price and performance.
General purpose SSD
Type of EBS ? High performance for mission critical Low latency Sustained IOPS performance More than 64 000 IOPS
Provisioned IOPS SSD
Type of EBS ? . Big data, data warehouses, log processing . Low-cost . Frequently accessed . Throughput intensite workloads
throughput optimized HDD
Type of EBS ?
. Lowest cost
. Designed for less frequently accessed workloads
Cold HDD
Type of EC2 instance ?
. Development/testing cases where you are not certain about the best EC2 instance to use for an application
. cannot be interrupted, short-term use, highly variable, or unpredictable
On demand
Type of EC2 instance ?
. Application that is tolerant of potential interruption/failure,
. Using those instances has the potential for providing substantial cost savings (up to 90% than others)
. Useful to scale up an application that suddenly needs a great deal more compute capacity
Spot instance
Type of EC2 instance ?
. Reduce costs by making 1 or 3 year commitment to a consistent amount of usage (don’t support RDS)
. Used if you know your applications’ workload profiles
savings plans
. Reduce costs by making 1 or 3 year commitment to a consistent amount of usage (don’t support RDS)
. Used if you know your applications’ workload profiles
. Assigned to a specific AZ
Reserved instance
Instance metadata vs user data ?
Instance metadata is data use to configure or manage the running instance. for example, host name, events, and security groups.
User Data specified by the user, for example, you added a new bucked, its unique bucked name will be part of user data.
Random High rate read and writes
Works with SQL & NoSQL
“intensive read/write and consistent” for IO
Provisioned IOPS SSD
the most cost-effective EBS storage option
Throughput Optimized HDD
Storing of settings such as AMI ID, instance type, key pairs and Security Groups
EC2 launch template