EC2 Flashcards
Types of EC2
- General Purpose
- Compute Optimized
- Memory Optimized
- Storage Optimized
General Purpose great for what kind of work
Good for web servers or code repositories
Storage Optimized great for what kind of work
Great for storage-intensive tasks that require high, read and write access to large data sets . Use case:
- High-frequency online transaction procession system
- Distributed File systems
Compute Optimized great for what kind of work
great for the compute-intensive task that requires high-performance processors:
Use case :
- High-performance computing
Memory-Optimized great for what kind of work
Fast performance for workloads that process large data sets in memory. Use case :
- high-performance relational/non-relational databases
- Distributed web-scale
What is Security Group
they control how traffic is allowed into or out of our EC2 instances. They are firewalls on EC2 instances
What port is used login to Linux instance
22 - ssh(secure shell)
80 port is used for what?
For accessing an unsecured website
Port 443(HTTPS) is used for accessing what
for accessing secured website
Is Inbound or Outbound traffic authorized by default in the security group
Outbound
EC2 Pricing model
- On-demand
- Reserved
- Spot
- Dedicated Host
For what kind of work is on-demand EC2 plan recommended?
- short term and uninterrupted workloads
Reserved EC2 model is recommended for what kind of work?
For steady-state usage application- like database
For what kind of work is the Spot EC2 plan recommended?
- application that has a flexible start and end time
- like batch jobs, data analysis, Image processing
How do you terminate a spot instance?
First, have to cancel the spot request and then terminate the associated spot instance
For what kind of work is a dedicated host ec2 plan recommended?
For licensing used for regulatory requirements
Which EC2 Purchasing Option can provide you the biggest discount, but it is not suitable for critical jobs or databases?
a) reserved instance
b) Dedicated Hosts
c) Spot instance
c
What is a spot block purchasing option instance
this is good for for running batch job that will run for specified duration without interruption
What is a spot fleet?
Spot fleet is a set of spot instance and optionally on demand instance. It allows you to automatically request spot instance with the lowest price
Spread Placement group is good for what kind of work
where you want to achieve maximum availabity when there’s an AZ failure
Elastic network interface can be attached to ec2 instance in another AZ
false
Elastic network interface can be attached to ec2 instance in another AZ
false
Is AMI Region Specific
True
Is AMI Region Specific
True
What is EBS Multi-Attach
Using EBS Multi-Attach, you can attach the same EBS volume to multiple EC2 instances in the same AZ. Each EC2 instance has full read/write permissions.
What is Instance Store?
EC2 Instance Store provides the best disk I/O performance.
What is EFS
Amazon EFS is a simple, serverless, set-and-forget, elastic file system that makes it easy to set up, scale, and cost-optimize file storage in the AWS Cloud
When to use EFS instead of EBS?
Amazon EFS Standard storage classes are ideal for workloads that require the highest levels of durability and availability.
Big Data and analytics, media processing workflows, content management, web serving, and home directories.
For what kind of work is EBS used ?
Amazon EBS can deliver performance for workloads that require the lowest latency access to data from a single EC2 instance.
What does Hibernating do?
– Hibernating an instance saves the contents of RAM to the Amazon EBS root volume. When the instance
restarts, the RAM contents are reloaded.
What does Hibernating do?
– Hibernating an instance saves the contents of RAM to the Amazon EBS root volume. When the instance
restarts, the RAM contents are reloaded.
What is ENI
• Logical component in a VPC that represents a
virtual network card
Why do we use ENI for ?
You can create ENI independently and attach
them on the fly (move them) on EC2 instances
for failover
Can Primary ENI be detached from an instance
NO