teluzia.Cloud Engineer · Day 78
CHAPTER 12 · AWS ARCHITECTURE & CERTIFICATION READINESS

SAA-C03 secure architectures

4–5 hours including independent practice3 topics
LET’S MAKE THIS SIMPLE

What you’re learning today

Secure architecture layers locks around identity, network paths, and data instead of trusting a single front door. Prefer temporary credentials and roles suited to each workload. Separate who can assume a role from what its session can do. Permissions should match the necessary action, resource, and conditions instead of broad service-wide grants. Public reachability, routing, security groups, and network ACLs affect different layers. Security groups are stateful; network ACLs are stateless. A private subnet is identified by routing behavior, not its display name or CIDR spelling.

Think of it this way

Secure architecture layers locks around identity, network paths, and data instead of trusting a single front door.

TOPIC 01 / 03Step by step

Identity and least privilege

Prefer temporary credentials and roles suited to each workload. Separate who can assume a role from what its session can do. Permissions should match the necessary action, resource, and conditions instead of broad service-wide grants. For example, an application role reads one secret; a human reviewer cannot assume that role merely because its permissions exist.

WORKED EXAMPLE
An application role reads one secret; a human reviewer cannot assume that role merely because its permissions exist.

A deployment pipeline assumes an AWS role, and the application later assumes a different workload role. First identify each role's caller and trust path. Then enumerate necessary actions against specific resources. The deployer may update infrastructure, while the application only reads its configuration and writes its own business records. Sharing one administrator identity collapses that intended separation.

Least privilege limits access to required work. Temporary credentials expire instead of becoming permanent embedded keys. A permission boundary or organizational restriction may constrain effective access beyond the identity policy. Design access from the request path, not from a service's entire permission list. A secret can remain well protected in storage yet be exposed by an overly powerful application role that reads unrelated secrets. Temporary credentials reduce long-lived-key handling, but do not make excessive privileges harmless during the session. Validate denied operations as well as permitted ones to demonstrate the boundary.

Why this matters

An application role reads one secret; a human reviewer cannot assume that role merely because its permissions exist.

A common trap

Do not overlook this operational distinction: Permissions should match the necessary action, resource, and conditions instead of broad service-wide grants.

Read all topics in this lesson

A complete reference to revisit alongside the guided steps above.

Identity and least privilege

Prefer temporary credentials and roles suited to each workload. Separate who can assume a role from what its session can do. Permissions should match the necessary action, resource, and conditions instead of broad service-wide grants. For example, an application role reads one secret; a human reviewer cannot assume that role merely because its permissions exist.

WORKED EXAMPLE
An application role reads one secret; a human reviewer cannot assume that role merely because its permissions exist.

A deployment pipeline assumes an AWS role, and the application later assumes a different workload role. First identify each role's caller and trust path. Then enumerate necessary actions against specific resources. The deployer may update infrastructure, while the application only reads its configuration and writes its own business records. Sharing one administrator identity collapses that intended separation.

Least privilege limits access to required work. Temporary credentials expire instead of becoming permanent embedded keys. A permission boundary or organizational restriction may constrain effective access beyond the identity policy. Design access from the request path, not from a service's entire permission list. A secret can remain well protected in storage yet be exposed by an overly powerful application role that reads unrelated secrets. Temporary credentials reduce long-lived-key handling, but do not make excessive privileges harmless during the session. Validate denied operations as well as permitted ones to demonstrate the boundary.

Why this matters

An application role reads one secret; a human reviewer cannot assume that role merely because its permissions exist.

A common trap

Do not overlook this operational distinction: Permissions should match the necessary action, resource, and conditions instead of broad service-wide grants.

Network access boundaries

Public reachability, routing, security groups, and network ACLs affect different layers. Security groups are stateful; network ACLs are stateless. A private subnet is identified by routing behavior, not its display name or CIDR spelling. For example, a database has no direct internet route and accepts traffic only from the application security group on the required database port.

WORKED EXAMPLE
A database has no direct internet route and accepts traffic only from the application security group on the required database port.

A user connects to a public HTTPS load balancer. The load balancer reaches application instances through an allowed security-group relationship, and the application reaches the database through another narrowly allowed relationship. The database does not need a direct internet route to answer the application. Diagram both packet routing and security checks; they solve different requirements.

A route selects a network next hop. A stateful security group tracks permitted connection behavior. A stateless network ACL evaluates traffic directions independently, including necessary return traffic. A subnet named private is not proof of isolation if its actual routes permit direct internet access. Likewise, absent public addressing does not by itself explain every possible ingress path. Validate the intended path and reject unintended sources. Private placement can reduce exposure, but still requires credential security, appropriate outbound access, patching, and data authorization for the services reachable inside the network.

Why this matters

A database has no direct internet route and accepts traffic only from the application security group on the required database port.

A common trap

Do not overlook this operational distinction: A private subnet is identified by routing behavior, not its display name or CIDR spelling.

Data protection and audit

Encrypt data at rest and in transit according to the workload’s requirements. Key access, secret handling, and evidence retention deserve separate checks. Audit controls should identify sensitive actions and retain usable records without exposing private payloads. For example, a database connection uses TLS, storage encryption uses a managed key, and activity evidence records who modified access controls.

WORKED EXAMPLE
A database connection uses TLS, storage encryption uses a managed key, and activity evidence records who modified access controls.

A customer record travels over HTTPS, is processed by an authorized application, and is stored in an encrypted database. Each stage protects a different exposure. TLS protects the network transport; storage encryption protects stored representation; IAM and database authorization decide who can retrieve or alter data. An authorized compromised process can still disclose plaintext after decryption.

Encryption at rest protects stored data under a key. Encryption in transit protects a communicating channel. Audit evidence records relevant activity for later investigation. Key management requires recovery access, rotation decisions, and careful retirement, not simply an enabled checkbox. Avoid collecting complete sensitive records in ordinary access logs just to improve observability. The architecture should specify what metadata is useful and how long it is retained. Security controls are strongest when linked to a defined threat, because enabling several controls without understanding their boundaries can leave a major exposure untouched.

Why this matters

A database connection uses TLS, storage encryption uses a managed key, and activity evidence records who modified access controls.

A common trap

Do not overlook this operational distinction: Audit controls should identify sensitive actions and retain usable records without exposing private payloads.

KEEP THESE WITH YOU

Today’s takeaways

Identity and least privilege: Prefer temporary credentials and roles suited to each workload. Separate who can assume a role from what its session can do. Permissions should match the necessary action, resource, and conditions instead of broad service-wide grants.

Network access boundaries: Public reachability, routing, security groups, and network ACLs affect different layers. Security groups are stateful; network ACLs are stateless. A private subnet is identified by routing behavior, not its display name or CIDR spelling.

Data protection and audit: Encrypt data at rest and in transit according to the workload’s requirements. Key access, secret handling, and evidence retention deserve separate checks. Audit controls should identify sensitive actions and retain usable records without exposing private payloads.

CLOSE THE LOOP

Ready to complete this day?

Verify the practical steps and pass the knowledge check (at least two thirds correct).

Lab steps verifiedKnowledge check passed