EC2 Fundamentals Flashcards
True or False:
Security groups only contain allow rules.
True
What are security groups?
They act as a “firewall” on EC2 instances.
What do security groups regulate?
Access to ports
Authorized IP ranges - IPv4 and IPv6
Control of inbound network
Control of outbound network
Can a security group be attached to multiple instances?
Yes
Are security groups locked to a region / VPC combination?
Yes
Do security groups live “inside” or “outside” the EC2 instance?
Outside. If traffic is blocked, EC2 won’t see it.
What is port for SSH to log into Linux instance?
22
What is port to for FTP?
21
What is port for SFTP?
22
What is port for HTTP and HTTPS websites?
80 for HTTP
443 for HTTPS
What is port for RDP (remote desktop protocol) to log into a Windows isntance?
3389
When you get timeout when connecting to EC2 instance, where is the issue?
Within security groups
When you first download a SSH file with permissions 0644, and get “permissions too open” error, how do you fix?
chmod 0400
What user do you use to login to EC2 via SSH?
ec2-user@
What is EC2 Instance Connect?
Allows you to connect to an EC2 instance within the web browser
What is the best way to provide AWS credentials to our EC2 instances?
IAM roles