EC2 Basics Flashcards
What is EC2?
Elastic Compute Cloud
What is EBS?
Elastic Block Store - Like an external HD
Its block storage for Amazon EC2 compute instances - it is similar to hard drives attached to your computers or laptops, but in a virtualized environment.
What is ELB? What does it use for?
Elastic Load Balancer - Distributing load across machines
What is ASG?
Scaling the services using an Auto-Scaling Group
What is EFS
Elastic File System
Provides scalable network file storage for Amazon EC2 cloud computing service users.
What is the different between EFS and EBS?
AMAZON EBSAMAZON EFS Accessible only via the given EC2 Machine
File System interface
Block Storage
Hardly scalable
Faster than S3 and EFSAccessible via several EC2 machines and AWS services
Web and file system interface
Object storage
Scalable
Faster than S3, slower than EBS Is meant to be EC2 driveGood for applications and shareable workloads
What is bootstrapping?
How many time it will run?
bootstrapping means launching commands when a machine starts
Can only run once
What does EC2 user data is used to automate at boot tasks?
(us, da?!)
EC2 user data is used to automate boot tasks such as:
- Installing updates
- Installing software
- Downloading common files from the internet
- Anything you can think of
Who can run the EC2 User Data Script?
Only the root user
What does the naming convention means?
m5.2xlarge
- m: instance class
- 5: generation (AWS improves them over time)
- 2xlarge: size within the instance class
What does Security groups act like in EC2?
Security groups are acting as a “firewall” on EC2 instances
What Security Groups adjust?
(AA IO)
- Access to Ports
- Authorised IP ranges – IPv4 and IPv6
- Control of inbound network (from other to the instance)
- Control of outbound network (from the instance to other)
To how many EC2 you can attached a security group?
Can be attached to multiple instances
Where is the security group “lives”?
“Lives” “outside” the EC2 – if traffic is blocked the EC2 instance won’t see it
I security group, What to remember about SSH?
It’s good to maintain one separate security group for SSH access