AWS & Cloud Engineering
Security groups
Explain how security groups filter traffic per resource, why they are stateful, and why one broad inbound rule exposes every resource that carries the group.
What you will be able to do
- Explain why a security group needs no outbound rule for an allowed reply.
- Decide which source to name in an inbound rule for a database tier.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in AWS & Cloud Engineering
- Gateway endpointsIntermediate · 4 min
Explain how a gateway endpoint for S3 or DynamoDB works as a route table target, what it costs, and which callers it cannot reach from outside its VPC.
- Interface endpointsIntermediate · 4 min
Explain how an interface endpoint places a private network interface in each chosen subnet, how private DNS sends service hostnames to it, and what it costs to run.
- Network ACLsIntermediate · 4 min
Explain how network ACL rules are numbered and evaluated, why they are stateless, and how an ACL allows or denies traffic at the subnet boundary.
- IAM evaluation logicIntermediate · 4 min
Explain how IAM decides a request, why an explicit deny overrides every allow, and how permissions boundaries and organization policies narrow what a role can do.
- STS and assume roleIntermediate · 4 min
Explain how AssumeRole returns temporary credentials, how trust policies and session duration limit who gets them and for how long, and why short sessions reduce risk.
- Instance profilesAdvanced · 4 min
Explain how an instance profile passes a role's temporary credentials to an EC2 instance through instance metadata, so no access key needs to be stored on the instance.