Security Groups Flashcards
https://docs.aws.amazon.com/vpc/latest/userguide/VPC_SecurityGroups.html
What does SG stand for?
Security Group
In a security group, what inbound traffic is allowed by default?
by default, all inbound traffic is blocked.
In a security group, what outbound traffic is allowed by default?
All outbound traffic is allowed
When you make a change to a security group, how long does it take for that change to take effect?
Changes to security groups take effect immediately
What is the maximum number of EC2 instances that can be associated with a single security group?
Unlimited. You can have any number of EC2 instances within a security group.
Can you have multiple security groups attached to an EC2 instance?
Yes
What does it mean that security groups are stateful?
If you create an inbound rule allowing traffic in, that traffic is automatically allowed back out again
Suppose you need to block a specific IP address from accessing your EC2 instance. How can this be accomplished using Security Groups?
You cannot block specific IP addresses using security groups
(Use network access control lists instead)
Can you specify Allow rules in a security group?
Yes
Can you specify deny rules in a security group?
NO
Can your Security Group allow traffic from EC2 instances based on what Security Group the requesting instance has?
YES
Suppose you are trying to connect to an EC2 Instance. The request is timing out but you are not explicitly getting a “connection refused” error. What is a likely explanation?
You may need to check if your Security Group is allowing the incoming traffic