EC2 Fundementals Flashcards
What is EC2?
EC2 = Elastic compute cloud, which is infrastructure as code
What are the components of Elastic Compute Cloud (EC2)?
Elastic Compute Cloud is composed of :
• Renting virtual machines (EC2)
• Storing data on virtual drives (EBS)
• Distributing load across machines (ELB)
• Scaling the services using an auto-scaling group (ASG)
What are the EC2 configuration Options?
- Operating System (OS):Linux, Windows or Mac OS
- How much compute power & cores (CPU)
- How much random-access memory (RAM)
- How much storage space:
- Network-attached (EBS & EFS)
- hardware (EC2 Instance Store)
- Network card: speed of the card, Public IP address
- Firewall rules: security group
- Bootstrap script (configure at first launch): EC2 User Data
What are the different types of EC2 instances?
EC2 has different instances for different types of operations. these include,
general-purpose,
compute-optimized (batch process, HPCgaming),
memory-optimized (rds/non rds, caching), and
storage optimized(RDS and no SQL, OLTP, data warehousing)
What are security groups?
These are a firewall around our EC2 instance that provides network security. These control how traffic goes into and out of our EC2 instance. They contain only allow rules.
How many security groups can you attach to a single EC2 instance?
single 1 security grp or multiple security groups
How many EC2 instances can a single security group be attached to?
can attach a security group to just 1 EC2 instance or multiple instances of EC2
What are the default security group settings?
All inbound traffic is blocked by default
All outbound traffic is authorised by default
Are security groups Multi AZ?
No, security groups are locked into a AZ.
Can you attach a security group to multiple VPCs?
No, security groups are bound to VPC and sit outside of the EC2 instance.
What is port 22 used for?
port 22 is for ssh into Linux Instance
What’s the port number for FTP?
port 21
What’s the SFTP port number?
port 22
What traffic do ports 80 and 443 allow?
HTTP(80) and HTTPS(443)
What’s the port number for the Windows instance
3389 = RDP (Remote Desktop Protocol)