Workload isolation and private endpoints
Isolate workloads, not just subnets
A private subnet is a routing choice, not proof of isolation. In the reports design, the application reaches a private database only on its required database port; the database security group permits the application security group rather than the internet. Security groups are stateful allow rules for associated network interfaces; network ACLs are stateless subnet controls. Restrict outbound access according to workload needs and use separate identities for separate tasks. Keep management access private and narrowly authorized.
Private endpoints and permission checks
An interface endpoint uses private network interfaces to reach a supported service; gateway endpoints provide a route-based path for supported services such as S3 and DynamoDB. Check DNS, routes, endpoint security groups where applicable and service/Region support. A supported endpoint policy restricts requests through that endpoint; it does not replace IAM or destination resource policies. Example: the reports service reads its own S3 prefix with a narrowly scoped role; an endpoint policy limits allowed destinations and a bucket policy enforces appropriate resource access. Test effective access in an authorized environment, including a denied request for a separate fictional prefix.
Harden the workload lifecycle
Use IAM roles and temporary credentials for AWS API calls rather than keys embedded in images. For EC2 workloads that need instance metadata, require IMDSv2 and verify application compatibility and effective instance settings; disable metadata only when it is not needed. Keep instance profiles narrowly scoped. Maintain a dependency inventory, rebuild images with reviewed updates, scan the image digest selected for release and patch running systems using an approved maintenance window. ECR basic scanning covers OS vulnerabilities; enhanced scanning integrates Inspector for supported OS and language packages. A clean scan is not proof of safety: coverage, freshness and unsupported components matter.
Verify the actual release and boundary
Record approved image digest, scan coverage and age, patch status, runtime role and effective network paths. Systems Manager Patch Manager can help organize patching of eligible managed nodes; verify prerequisites, test changes and track reboots or failures. A private endpoint can add hourly and data-processing costs depending on type; compare with the actual egress architecture. Review the fictional design: if the database is private but its application role is excessively privileged, network isolation does not solve the permission problem. Practice: explain why both a route and a scoped permission are needed for a private service call.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Workload isolation and private endpoints — knowledge check
Reason about defensive controls and synthetic access decisions.
Which database ingress is most appropriate here?
Does an endpoint policy replace IAM permissions?
What should an EC2 workload that needs metadata use?
What is a limitation of a clean image scan?
What should a release review identify?