Solutions Architect

Search the notes

    Network security

    Layered controls from the edge down to each instance. Part of Domain 1: Design Secure Architectures, 30% of the scored content.

    Official page

    Routing defines the subnet type. Keep only load balancers and gateways public, and put application and data tiers in private subnets.

    Key points

    • Public subnet: has a direct route to an internet gateway.
    • Private subnet: no direct route to an internet gateway. It reaches the internet only through a NAT (network address translation) device.
    • Isolated subnet: no route outside the VPC (Virtual Private Cloud) at all. A VPN-only subnet routes to a Site-to-Site VPN (virtual private network) through a virtual private gateway.
    • Zonal NAT gateway: lets private resources start outbound connections, never inbound. It sits in a public subnet with an Elastic IP (Internet Protocol), so create one per AZ (Availability Zone). 5 Gbps that scales to 100 Gbps.
    • Regional NAT gateway: expands across AZs automatically and needs no public subnet, but does not support private NAT.
    • IPv6: an egress-only internet gateway gives outbound-only IPv6 access.

    On the exam

    "Instances must download patches but must not be reachable from the internet": private subnet with a route to a NAT gateway. A NAT gateway takes no security group, so filter with instance security groups and NACLs (network access control lists).

    Official page

    Security groups are the primary, stateful filter at the instance. Network ACLs (access control lists) are a stateless guard rail at the subnet that can also deny.

    Key points

    • Security groups: allow rules only, all rules evaluated, return traffic allowed automatically. Rules can reference other security groups, ideal for tier-to-tier access.
    • Outbound default: a security group comes with a default outbound rule that allows all traffic.
    • Network ACLs: allow and deny rules numbered 1 to 32766, evaluated from the lowest number and stopped at the first match.
    • Stateless: return traffic must be allowed explicitly, usually the ephemeral ports 1024-65535.
    • Defaults: the default NACL allows all traffic. A new custom NACL denies everything through its final * rule until you add rules.
    • Block an IP: only a NACL can deny a specific address range, because security groups have no deny rules.

    On the exam

    "Block a malicious IP range now": NACL deny rule (or AWS WAF (Web Application Firewall) for HTTP (Hypertext Transfer Protocol)). "Allow the app tier only from the web tier": security group that references the web tier security group.

    Security groups vs network ACLs

    CharacteristicSecurity group and network ACL
    Level
    • Security group: instance
    • NACL: subnet
    Rules
    • Security group: allow only
    • NACL: allow and deny
    Evaluation
    • Security group: all rules
    • NACL: ascending number order, first match wins
    Return traffic
    • Security group: automatic (stateful)
    • NACL: must be allowed (stateless)
    Official page

    Reach AWS services and endpoint services privately, without an internet gateway, a NAT device or public IPs.

    Key points

    • Gateway endpoint: only for S3 (Simple Storage Service) and DynamoDB. A route table entry that targets the service prefix list, with no additional charge.
    • Interface endpoint: AWS PrivateLink network interfaces with private IPs in your subnets, protected by security groups and billed.
    • Reachability: only interface endpoints serve on premises over Direct Connect or VPN, and other Regions through peering or Transit Gateway.
    • Endpoint policy: a resource policy on the endpoint that limits the principals and resources reachable through it. The default allows everything.
    • Bucket lock-down: an S3 bucket policy with the aws:sourceVpce condition denies requests that do not come through your endpoint.
    • Gateway Load Balancer endpoint: sends traffic to a fleet of inspection appliances.

    On the exam

    "Private instances must reach S3 without NAT gateway data charges": S3 gateway endpoint. "On-premises servers on Direct Connect must reach S3 privately": S3 interface endpoint.

    Gateway vs interface endpoints for S3

    AspectGateway and interface
    Addressing
    • Gateway: S3 public IPs through a route
    • Interface: private IPs of your VPC
    On premises
    • Gateway: no
    • Interface: yes, over Direct Connect or VPN
    Other Regions
    • Gateway: no
    • Interface: yes, through peering or Transit Gateway
    Cost
    • Gateway: not billed
    • Interface: billed

    Systems Manager

    AWS Systems Manager

    Official page

    Operates fleets of EC2 (Elastic Compute Cloud) instances and on premises servers through the SSM Agent, with no SSH (Secure Shell) keys, bastion hosts or inbound ports.

    Key points

    • Session Manager: shell access from the console or the CLI (command line interface), controlled by IAM (Identity and Access Management) and logged to S3 or CloudWatch Logs. No inbound port is opened.
    • Requirements: the SSM Agent, an instance profile with the AmazonSSMManagedInstanceCore policy and a path to the service, through a NAT gateway or VPC interface endpoints.
    • Run Command: runs scripts across many instances at once, selected by tag.
    • Patch Manager: applies patch baselines during maintenance windows.
    • Automation: runbooks for common tasks, such as creating an AMI (Amazon Machine Image) or restarting an instance.

    On the exam

    "Reach instances in a private subnet without a bastion host or opening port 22": Session Manager. "Patch the whole fleet on a schedule": Patch Manager.

    Official page

    A layer 7 web application firewall that inspects HTTP(S) requests before they reach CloudFront, an ALB (Application Load Balancer), API (application programming interface) Gateway or another front door.

    Key points

    • Protected resources: CloudFront distributions, Application Load Balancers, API Gateway REST (Representational State Transfer) APIs, AppSync GraphQL APIs, Cognito user pools, App Runner services, Verified Access instances and Amplify.
    • Threat vectors: SQL (Structured Query Language) injection and cross-site scripting (XSS) match statements, plus AWS Managed Rules rule groups.
    • Rate-based rules: count requests per aggregation key and rate limit those that arrive too fast, a defense against HTTP floods.
    • Geo and IP: geographic match and IP set match statements allow or block by country or address range.
    • Responses: a matched request can be blocked with HTTP 403 or receive a custom response.

    On the exam

    "Block SQL injection and XSS against the web app": AWS WAF on the ALB or CloudFront. Security groups and NACLs cannot inspect HTTP content, and WAF does not attach to a Network Load Balancer.

    Official page

    Managed DDoS protection. Standard is automatic for every customer at no cost, Advanced adds expert response and cost protection for critical apps.

    Key points

    • Shield Standard: automatic and free, it defends against the most common network and transport layer (3 and 4) attacks such as SYN floods and UDP (User Datagram Protocol) reflection.
    • Shield Advanced: protects Elastic IPs, Elastic Load Balancing, CloudFront, Global Accelerator and Route 53, and adds layer 7 mitigation through AWS WAF.
    • Shield Response Team: 24/7 access for customers on Business or Enterprise support plans.
    • Cost protection: service credits for scaling charges caused by a DDoS attack.
    • Pricing: $3,000 per month with a 1-year commitment, billed per payer account, including AWS WAF usage for protected resources up to a limit.
    • Health-based detection: Route 53 health checks associated with protected resources detect attacks sooner.

    On the exam

    "DDoS experts on call and no surprise bill after an attack": Shield Advanced. If the question only asks for basic DDoS protection at no cost, Shield Standard is already on.

    Official page

    Managed stateful firewall and intrusion prevention for the VPC perimeter, for traffic through internet gateways, NAT gateways, VPN and Direct Connect.

    Key points

    • Rules: stateless and stateful rule groups, Suricata compatible IPS (intrusion prevention system) rules, 5-tuple rules and domain filtering.
    • Deployment: firewall endpoints in a dedicated firewall subnet in each AZ, with route tables steering traffic through them.
    • Use cases: allow egress only to approved domains, deep packet inspection, north-south and east-west inspection.
    • TLS (Transport Layer Security) inspection: decrypts and re-encrypts traffic with a certificate from ACM (Certificate Manager).
    • At scale: Firewall Manager deploys firewalls across accounts, and firewall policies can be shared through AWS RAM (Resource Access Manager).

    On the exam

    "Filter outbound traffic of every VPC by domain name, with IPS signatures": Network Firewall. WAF only covers HTTP(S) at the application front door.

    Firewall Manager

    AWS Firewall Manager

    Official page

    Central firewall policies for every account of an organization, applied automatically to new accounts and resources.

    Key points

    • Policy types: AWS WAF, Shield Advanced, VPC security groups, network ACLs, Network Firewall and Route 53 Resolver DNS (Domain Name System) Firewall.
    • Automatic coverage: new in-scope accounts and resources receive the protection as soon as they appear.
    • Scope: all resources of a type, resources with specific tags, or chosen accounts.
    • Requirements: works across an AWS Organizations organization. Charges come from the underlying services, such as AWS WAF and AWS Config.
    • Administrator: a Firewall Manager administrator account, which can be a delegated member account.

    On the exam

    "Every ALB in every account must always carry the corporate WAF rules, including future accounts": Firewall Manager. Configuring WAF account by account does not scale.

    Official page

    Protect traffic between on premises and AWS. Site-to-Site VPN encrypts over the internet, while Direct Connect is private but not encrypted by default.

    Key points

    • Site-to-Site VPN: IPsec tunnels to a virtual private gateway or a transit gateway. Each connection has 2 tunnels for high availability.
    • Tunnel bandwidth: 1.25 Gbps per tunnel, or up to 5 Gbps with large bandwidth tunnels on Transit Gateway or Cloud WAN (wide area network).
    • Direct Connect: dedicated private connectivity, but traffic in transit is not encrypted by default.
    • MACsec: layer 2 encryption between your router and the Direct Connect location, on 10, 100 and 400 Gbps dedicated connections.
    • VPN over Direct Connect: an IPsec VPN across the Direct Connect link adds encryption while keeping consistent network performance.

    On the exam

    "Traffic over Direct Connect must be encrypted": MACsec on a supported dedicated connection or an IPsec VPN over Direct Connect. Direct Connect alone does not meet an encryption requirement.