AWS network and key controls
Separate reachability from access
Amazon VPC defines a logical network boundary. Route tables select paths; security groups filter traffic at associated interfaces/resources and are stateful, while subnet network ACLs are stateless. Return traffic for an allowed tracked connection is handled by the security group; a network ACL needs rules for both directions. Neither establishes application-level authorization. A private subnet alone is not proof of isolation: inspect routes, endpoints, connected networks and access policies.
Choose the key control
AWS Key Management Service (AWS KMS) manages cryptographic keys. A key policy is central to access; IAM permissions, grants and endpoint policies can also matter. An encrypted object may still be read by a principal with the necessary object and key permissions. Separate key administration from key use, document recovery dependencies and avoid deleting a key merely to remove an unwanted grant. Disabling or deleting a needed key can make legitimate data unavailable.
Secrets are not key policies
AWS Secrets Manager stores sensitive values such as database credentials and supports rotation mechanisms. An application should retrieve only its own secret through a scoped role; never put the returned value in logs or source code. Rotation needs coordination with the consuming application and database, plus a recovery plan. Confirm the secret access policy, encryption key permission and actual rotation evidence separately.
Layered example
In the fictional invoice architecture, a gateway connects to an application; only the application reaches the private database. The application role reads its secret and uses the designated KMS key as needed. A toy control record with network, identity, key and secret gates all true passes; a false key gate fails even if the network is private. A missing secret-access export remains under review. Encryption does not replace authorization or backup recovery tests.
Practice: draw and review
Use controls.json to identify confirmed failures and missing evidence for each workload. Draw gateway, application, database, key and secret boundaries. Propose an owner, smallest correction and recovery check for each failure. Compare the AWS track topics VPC, KMS and Secrets Manager; the fixture is not a network reachability analyzer or a KMS policy engine.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
AWS network and key controls — knowledge check
Evaluate AWS identity, network, audit and remediation decisions.
Which VPC control is stateless?
What is central to KMS key access?
What should a workload retrieve?
Private network and known false key gate: toy result?
Why test recovery before key retirement?