Secure network edge services
Apply and troubleshoot appropriate edge controls for content delivery, web applications, APIs, DNS, DDoS, and internet-facing workloads.
- Lesson
- d3-lesson
- Practice pool
- d3-questions
- Application
- scs-l08
Select and troubleshoot layered controls for network edges, compute workloads, VPCs, hybrid paths, service endpoints, and workload isolation.
Apply and troubleshoot appropriate edge controls for content delivery, web applications, APIs, DNS, DDoS, and internet-facing workloads.
Protect workload identity, images, runtime, metadata, patching, vulnerability exposure, and isolation across AWS compute choices.
Design and troubleshoot routing, segmentation, inspection, private connectivity, hybrid controls, and traffic evidence.
Infrastructure security starts with a data-flow and trust-boundary diagram. Identify every entry point, identity transition, network hop, protocol, destination, return path, administrative path, and evidence source. Then apply controls at layers that can enforce the requirement. A secure design rarely depends on a single security group, firewall, or managed service.
Ask four questions for every path: Who initiates it? Where is identity evaluated? What network controls constrain it? What evidence proves the expected path and denied paths?
| Objective | Scope | Proof |
|---|---|---|
| 3.1 Secure network edge services | DNS, DDoS, CDN, web, API, load balancing, TLS, and internet exposure | Allowed and denied edge requests behave as designed and produce usable evidence |
| 3.2 Secure compute workloads | Workload identity, images, metadata, runtime, patching, vulnerability, secrets, and isolation | A workload has only required access and can be rebuilt from a trusted artifact |
| 3.3 Secure networks | Routing, segmentation, inspection, endpoints, hybrid connectivity, DNS, and flow evidence | Forward and return paths are explicit, least exposed, and testable |
Choose the edge pattern from the protocol and requirement. Amazon CloudFront can reduce origin exposure and place caching, TLS, geographic, and AWS WAF controls near users. AWS WAF evaluates supported web requests; it is not a network firewall. AWS Shield provides DDoS protections, with Shield Advanced adding capabilities and response support for eligible resources. Route 53 controls authoritative DNS and health-based routing; Route 53 Resolver DNS Firewall addresses DNS queries in VPC resolution paths. API Gateway adds API authorization, throttling, validation, and stage controls. An Application Load Balancer understands HTTP characteristics, while a Network Load Balancer operates at the transport layer.
Protect the origin separately. Restrict an origin to the intended CloudFront or load-balancer path where supported, require appropriate TLS, remove unnecessary public addresses, and log both edge and origin behavior. A WAF rule should have an explicit threat or abuse case, scope, count-mode validation, false-positive review, version history, and rollback. Rate controls need a business-aware threshold and an understanding of shared client addresses.
Use workload roles instead of embedded credentials. EC2 instance profiles, ECS task roles, EKS workload identity mechanisms, and Lambda execution roles should be scoped to the workload rather than shared across an environment. Restrict access to instance metadata and prefer IMDSv2 for EC2. Keep secrets outside images and source control. Control who can pass roles as carefully as who can edit workload code.
Treat the artifact and deployment path as part of the runtime boundary. Build from approved base images, scan dependencies and images, sign or otherwise establish provenance where required, restrict registry mutation, separate build and deploy privileges, and retain deployment evidence. Amazon Inspector can identify supported vulnerability exposure, but findings still need ownership, prioritization, remediation, exceptions, and verification. Systems Manager can reduce inbound administration paths when configured with least privilege and appropriate logging.
Match isolation to the compute model. Security groups are stateful controls attached to supported resources; network ACLs are stateless subnet controls. Container boundaries do not automatically equal strong tenant boundaries. Lambda removes host administration but not identity, dependency, data, networking, or application risk. Managed services shift operational responsibility; they do not remove customer configuration and access decisions.
Start with routes. A packet must have a valid forward and return path before a firewall rule matters. Draw route tables, transit attachments, gateway propagation, inspection insertion, NAT or egress paths, hybrid advertisements, and asymmetric-path risks. Use separate accounts and VPCs for strong ownership boundaries when the organization needs them; subnets alone are not an administrative boundary.
VPC peering is direct and non-transitive. Transit Gateway supplies hub-and-spoke routing at scale. Cloud WAN adds centrally managed global network policy. PrivateLink exposes a service through interface endpoints without general network reachability. Gateway endpoints provide private connectivity to supported regional services such as Amazon S3 and DynamoDB. Interface endpoints use AWS PrivateLink and need security groups, DNS decisions, endpoint policies where supported, and service-side authorization. Direct Connect provides dedicated connectivity but not automatic encryption; combine connectivity and cryptographic requirements deliberately. VPN provides encrypted tunnels and can serve as primary, backup, or interim connectivity depending on constraints.
AWS Network Firewall supports managed network inspection in designed traffic paths. Gateway Load Balancer can integrate virtual appliances. Centralized inspection can simplify governance but increases routing complexity and shared-fate impact. Distributed inspection can improve isolation but increases duplication and operations. Validate availability-zone behavior, symmetric routing, fail-open or fail-closed requirements, capacity, logging, and bypass paths.
| Need | Prefer | Key check |
|---|---|---|
| Publish HTTP content with origin protection | CloudFront, appropriate WAF, restricted origin | Can clients bypass the edge? |
| Private consumer access to one service | PrivateLink/interface endpoint | Does DNS and service authorization preserve tenancy? |
| Connect many VPCs and hybrid sites | Transit Gateway or Cloud WAN based on scale and policy | Are route domains and inspection paths explicit? |
| Reduce inbound fleet administration | Systems Manager access pattern | Are session identity, logs, and endpoint paths governed? |
| Filter VPC traffic centrally | Network Firewall or governed appliance architecture | Is routing symmetric and highly available? |
| Protect workload credentials | Scoped workload role and metadata controls | Can code obtain or pass broader credentials? |
A multi-account application must accept public HTTPS traffic, call a private service in another account, access Amazon S3 without internet egress, and send all outbound traffic through inspection.