EC2 Flashcards
(108 cards)
What is EC2 Instance?
EC2 is a web service that provide resizable compute instance in the cloud.
What are available EC2 Pricing Models?
- On Demand Pricing.
- Reserved Pricing
- Spot Pricing
- Dedicated Host Pricing
In which Scenario On Demand Pricing works?
- Users who don’t want up front payment or long term commitment.
- Application which has unpredicted workloads which cant be interrupted.
- Applications which are developed or tested for First time in AWS.”
In which Scenario Reserved Pricing works?
Users are able to make upfront payment.
Applications with predictable work loads
In which Scenario Spot Pricing works?
Applications can be feasible only on low cost.
Applications which has feasible timings.
Users who want large amount of capacity on flexible timeline.
In which Scenario Dedicated Host works?
Dedicated Host is used where multi tenant virtualization is not applicable like regulatory requirement, Software license.
What are available EC2 Instance Types?
FIGHT DR MCPXZ AU
How AWS calculate Spot Instance Termination Charges?
“If AWS terminate the instance in a partial hour you will not be charged.
If User terminate the instance in a partial hour you will be charged.”
How to encrypt root volume?
“1. Root volume can be encrypted during Instance creation - Add Storage stage.
2. if encryption is not created during instance creation-
Encrypt snapshot while creating snapshot of root volume.
Create AMI on encrypted snapshot & create an instance out of it which will have encrypted root volume.”
How to protect accidental ec2 instance termination?
We need to select “Protect against accidental termination” option during EC2 instance creation.
What will happens to root volume when instance is terminated?
In General Root volume will be Deleted Automatically when instance is terminated
however in case of EBS you can persist the root volume after termination.
what is EBS?
Amazon Elastic Block Storage provide persistent block storage volume for EC2 instance like Hard drive.
EBS volumes can persist independently from the life of the instance.
It can be dynamically change the configuration of a volume attached to an instance.
What is Security Groups?
“Security Group act as a virtual firewall for EC2 instance.
Security Group control all inbound & outbound network traffic of EC2 instance.”
What are Different EBS Storage volume?
- General Purpose.
- Provisioned IOPS.
- Throughput Optimized.
- Cold Hard Disk Drive.
- Magnetic
EC2 comes under which group?
Compute Group
What is AMI?
Amazon Machine Image provides information required to launch an EC2 instance.
What is Cloud Watch?
Cloud watch is an monitoring service which monitor AWS resources & applications that run on AWS.
How long does it takes to implement security group changes?
Immediate
How to set EC2 Instance outbound rules?
EC2 Instance outbound rules can be set in security group.
How to block a port in security group?
You cant block a port in security group.
You can only allow a port in security group.
By default all ports are blocked in a security group.
what is default setting for security group?
By default all ports are blocked in a security group.
How many EC2 can we have in a security group?
1 to many
how many security group can we have in a EC2 instance ?
1 to many
can we have EBS volume & EC2 in different region?
No; We need to have EC2 & EBS in same region to operate fast.