All jobs / Backend developer / Deployment Basics
Backend developer interview question · 0–1 years
A security group allows inbound port 443. Do you also need an outbound rule for the responses?
The strongest answer
No — security groups are stateful, so return traffic for an allowed connection is permitted automatically; a network ACL, by contrast, is stateless and would need both directions
Why it works
Right. Stateful means the response follows the request; NACLs are where both directions are written.
What a good answer covers
- Security groups are stateful.
- Network ACLs are stateless.
- Return traffic for allowed connections is automatic.
- Write both directions only in a NACL.
Answers that fall short
- Close, but not the strongest: Yes, always add the matching outbound rule
That is how a stateless firewall works, not a security group. - Weak: Only if the client is outside the VPC
Statefulness does not depend on where the client is. - Red flag: Only for UDP
Protocol does not change it.
Who gets asked this
- Backend developer
- Full-stack developer
- DevOps / SRE / cloud
- Data engineer
- Cybersecurity
- Solutions / cloud architect
More Deployment Basics questions
- What is a VPC, in one sentence?
- Why put a load balancer in front of two web servers instead of pointing DNS at one?
- What does autoscaling actually do, and what does it not do?
- Why choose a managed database service over running the database yourself on a VM?
- What is a cold start in a serverless function?
- Cloud is pay for what you use. What is the cost people forget most often?
- The interviewer asks: “How do you log from a service in production?” Strongest answer?
- The interviewer asks: “Liveness versus readiness — what do you expose?” Strongest answer?