EC2 Flashcards
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.
can we modify EBS volume with out stopping EC2 instance?
yes
what is snapshot?
Snapshots are point-in-time back up of data.
how multiple snapshot are taken?
Snapshots are incremental backups, which means that only the blocks on the device that have changed after your most recent snapshot are saved.
how to take snapshot of root volume?
EBS->Volume->Actions->Create Snapshot.
how to create AMI of your EC2 instance?
EBS->Volume->Actions->Create Snapshot.
EBS->Snapshot->Actions->Create Image.
how to move one EC2 to another AZ?
Create a Snapshot.
Create a AMI.
Create a EC2 instance from AMI in another AZ.
How to move one EC2 to another Region?
Create a Snapshot.
Copy Snapshot to another region.
Create a AMI.
Create a EC2 instance from AMI.
what are AMI types?
Region specific AMI OS specific AMI 32bit / 64bit Architecture Specific AMI Launch Permission specific AMI Root Device Storage specific AMI
what is EPHEMERAL STORAGE?
Instance Store Volume is also called as Ephemeral storage.
What is ENI?
Elastic Network Interface is a virtual network card on AWS VPC.
What is ENA?
Elastic Network Adaptor enhance network performance of EC2 Instance.
What is EFA?
Elastic Fabric Adaptor - Used for High Performance Computing & ML application.
We can do OS by pass in EFA.”
What is Encrypted volume
Volumes whose data is Encrypted at REST.
Does Snapshot of encrypted root volume is encrypted?
Yes
Does Volumes created from Encrypted snapshot are encrypted?
Yes
Can you share encrypted snapshot?
No; Only unencrypted snapshot can be shared.
What is Spot Instance?
Amazon EC2 Spot Instance let you take advantage of unused EC2 capacity in AWS Cloud.
Spot Instance are 90% cheaper compare to On demand pricing.
What is Spot Price?
Spot price is the maximum price you offer to pay for instance.
Instance will be provisioned when spot price is below maximum spot price.
What is Spot Block?
Spot Blocks are used to stop instance termination if spot prices goes above max spot price.