Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
AWS · SCS-C03

Network controls and segmentation

SCS-C03 · Lesson 12 of 22 · 1:38:18

YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗

Learning with these videos? Subscribe for new courses and exam-style questions.

In this lesson

Prepare for the SCS-C03 exam (AWS Certified Security – Specialty). In this lesson: security groups and network ACLs compared, AWS Network Firewall for north-south and east-west traffic (firewall subnets or a transit gateway attachment), isolated subnets and segmentation, and removing unintended paths with Network Access Analyzer, Inspector network reachability findings, and AWS Verified Access. Includes three original practice questions.

Study notes

The text of this lesson, to read at your own pace. Information as of November 2026.

Only the paths you need

AnyCompany Health runs its clinician portal, its patient database, and its video visit service in VPCs across several accounts. An attacker who gets into one web server should find every other path shut. This lesson covers the network controls that open only the paths you need, and the tools that find the paths you did not mean to open.

Security groups and network ACLs

A security group is attached to a network interface, it only has allow rules, and it is stateful: the response to an allowed request is allowed automatically. A rule can reference another security group, so the database accepts traffic only from the instances of the application tier, whatever their IP addresses. A network ACL is attached to a subnet, it has numbered allow and deny rules that are evaluated in order, lowest number first, and it is stateless. Because it is stateless, a network ACL must also allow the response traffic, usually on ephemeral ports, or connections fail. Use the network ACL to block an address range for a whole subnet, since a security group cannot deny traffic.

AWS Network Firewall

AWS Network Firewall is a managed, stateful firewall and intrusion prevention service, based on Suricata, that filters traffic at the perimeter of a VPC. A firewall policy combines stateless rule groups, which look at each packet, and stateful rule groups, which track flows and can match domain names or Suricata compatible signatures. Route tables steer the traffic to firewall endpoints in dedicated firewall subnets, and a firewall endpoint cannot filter the traffic of its own subnet, so keep those subnets for the firewall only. For many VPCs, attach the firewall directly to AWS Transit Gateway to inspect traffic in one place, and manage firewalls across accounts with Firewall Manager. For DNS, Route 53 Resolver DNS Firewall filters the outbound DNS queries of a VPC, which also helps prevent data exfiltration through DNS.

Segmentation

North-south traffic crosses the edge of your network, between the internet or your data center and your VPCs, while east-west traffic moves between workloads inside AWS, such as from one VPC to another. Inspect both: Network Firewall supports north-south and east-west inspection, but it does not inspect traffic over VPC peering, so route that traffic through a transit gateway when it must be inspected. Split the tiers into subnets: a public subnet has a route to an internet gateway, a private subnet reaches the internet only through a NAT gateway, and an isolated subnet has no routes outside its VPC. AnyCompany Health puts its patient database in isolated subnets, and reaches AWS services from there through VPC endpoints, without any internet path. Environments get the same treatment: production and development run in different VPCs and accounts, with no route between them.

Finding unintended access

Network Access Analyzer checks your network against requirements that you write, for example that production and development VPCs are isolated, or that every path from an internet gateway passes through a firewall, and it lists the paths that break them. Amazon Inspector network reachability findings show EC2 instances with ports that can be reached from the edges of the VPC, such as an internet gateway, a peering connection, or a VPN, and Inspector checks this every twelve hours. Each finding points to the security group, network ACL, or route that opens the path, so you can fix it at the source. And for staff who use internal applications, AWS Verified Access evaluates every request against identity and device trust, so a user reaches only the allowed applications, without a VPN.

Recap

Let's recap. Security groups are stateful, allow only, and can reference each other, while network ACLs are stateless, ordered, and can deny. Network Firewall inspects north-south and east-west traffic, from firewall subnets or attached to a transit gateway, but not over VPC peering. Isolated subnets have no routes outside the VPC. And Network Access Analyzer, Inspector network reachability findings, and Verified Access remove the paths and the access that nobody needs.

Quick checks for this lesson

The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.

  1. An address range is attacking the web subnet, and the security team must block it at once, for every instance in that subnet. What should they change?

    • Add deny rules to the security groups
    • Add a deny rule to the network ACL
    • Create a Network Access Analyzer scope
    • Add an AWS Config rule for the subnet
    Show the answer

    Add a deny rule to the network ACL

    A network ACL supports deny rules, evaluated in order, and it applies to every instance in the subnet. “Add deny rules to the security groups” is not possible, because security groups only have allow rules. “Create a Network Access Analyzer scope” would report network paths, without blocking anything. And “Add an AWS Config rule for the subnet” would check the configuration, without blocking any traffic.

  2. Traffic between two VPCs connected by VPC peering must now pass through AWS Network Firewall for inspection. What should the network team do?

    • Add firewall endpoints to the peering
    • Add stateful rules to the security groups
    • Turn on VPC Flow Logs on both VPCs
    • Route the traffic through a transit gateway
    Show the answer

    Route the traffic through a transit gateway

    Network Firewall does not inspect traffic over VPC peering, so the VPCs connect through a transit gateway, with the firewall attached to it. “Add firewall endpoints to the peering” is not possible, because VPC peering has no place for firewall endpoints. “Add stateful rules to the security groups” would not inspect anything, because security groups have no inspection rules. And “Turn on VPC Flow Logs on both VPCs” would log the traffic, without inspecting it.

  3. Auditors want proof that no network path exists between the production VPCs and the development VPCs, and the security team must find any path that already breaks this rule. What should they use?

    • A Network Access Analyzer scope
    • GuardDuty findings on VPC Flow Logs
    • AWS Verified Access with trust providers
    • Security Hub CSPM controls for VPCs
    Show the answer

    A Network Access Analyzer scope

    A Network Access Analyzer scope states the requirement, and the analysis lists every path between the production and development VPCs. “GuardDuty findings on VPC Flow Logs” would report threats in traffic that already flows. “AWS Verified Access with trust providers” would control the access of users to applications, not the paths between VPCs. And “Security Hub CSPM controls for VPCs” would check settings against general best practices, not your own segmentation rule.