teluzia.Cloud Engineer · Day 77
CHAPTER 11 · AWS SECURITY AND GOVERNANCE

Week 11 review, recall and recovery

30–90 min including independent practice6 topicsRecall, catch-up, or rest
LET’S MAKE THIS SIMPLE

What you’re learning today

Audit and rehearse restoring an encrypted backup. Map the restore principal, IAM grant/limits, KMS key access, secret version, CloudTrail event, Config finding, and organization guardrail. Produce a six-pillar risk list plus a restore checklist measured against RPO and RTO. Treat the review as a short evidence-based check: use the existing local lab or paper design, record which outcomes you actually reproduced, and repair one named gap before adding more complexity. Do not create extra billable resources just to prove recall.

Think of it this way

A weekly review is a recovery drill: demonstrate the system, inject one controlled mistake, and explain the evidence that proves repair.

TOPIC 01 / 06Step by step

Identity and resource policies

Identity policies attach permissions to principals; resource policies attach permissions to supported resources. Effective authorization depends on policy type and request context, including cross-account rules. An explicit deny overrides applicable allows. For example, a role allows s3:GetObject, but a matching bucket-policy explicit deny still prevents the read.

WORKED EXAMPLE
A role allows s3:GetObject, but a matching bucket-policy explicit deny still prevents the read.
Why this matters

A role allows s3:GetObject, but a matching bucket-policy explicit deny still prevents the read.

A common trap

Do not overlook this operational distinction: An explicit deny overrides applicable allows.

Read all topics in this lesson

A complete reference to revisit alongside the guided steps above.

Identity and resource policies

Identity policies attach permissions to principals; resource policies attach permissions to supported resources. Effective authorization depends on policy type and request context, including cross-account rules. An explicit deny overrides applicable allows. For example, a role allows s3:GetObject, but a matching bucket-policy explicit deny still prevents the read.

WORKED EXAMPLE
A role allows s3:GetObject, but a matching bucket-policy explicit deny still prevents the read.

Why this matters

A role allows s3:GetObject, but a matching bucket-policy explicit deny still prevents the read.

A common trap

Do not overlook this operational distinction: An explicit deny overrides applicable allows.

Keys and envelope encryption

KMS keys can protect data keys used by services to encrypt larger data. Envelope encryption separates a data key from its encrypted copy. The application or integrated service handles data encryption while KMS protects key material and authorizes cryptographic operations. For example, an S3 object encrypted with SSE-KMS needs applicable S3 access and KMS decrypt authorization for its read path.

WORKED EXAMPLE
An S3 object encrypted with SSE-KMS needs applicable S3 access and KMS decrypt authorization for its read path.

Why this matters

An S3 object encrypted with SSE-KMS needs applicable S3 access and KMS decrypt authorization for its read path.

A common trap

Do not overlook this operational distinction: The application or integrated service handles data encryption while KMS protects key material and authorizes cryptographic operations.

Secret storage and retrieval

Secrets Manager stores secret values with version metadata and access controls. Applications retrieve secrets using an authorized identity instead of embedding them in source. Retrieval should minimize unnecessary calls and avoid writing values into logs, errors, screenshots, or shell history. For example, an application uses an execution role to retrieve a database credential at runtime rather than commit its password in config.py.

WORKED EXAMPLE
An application uses an execution role to retrieve a database credential at runtime rather than commit its password in config.py.

Why this matters

An application uses an execution role to retrieve a database credential at runtime rather than commit its password in config.py.

A common trap

Do not overlook this operational distinction: Retrieval should minimize unnecessary calls and avoid writing values into logs, errors, screenshots, or shell history.

CloudTrail event evidence

CloudTrail records supported AWS API activity, including identity, action, time, and source context. Event history has scope and retention limits; trails and event data stores provide additional options. Management events and data events are different categories, and not every data operation is included by default. For example, an instance termination investigation searches the relevant region and time window for TerminateInstances and the recorded caller identity.

WORKED EXAMPLE
An instance termination investigation searches the relevant region and time window for TerminateInstances and the recorded caller identity.

Why this matters

An instance termination investigation searches the relevant region and time window for TerminateInstances and the recorded caller identity.

A common trap

Do not overlook this operational distinction: Management events and data events are different categories, and not every data operation is included by default.

Accounts, organizational units, and SCPs

AWS Organizations groups accounts and applies governance through a hierarchy. Organizational units organize accounts for inherited controls. SCPs limit available permissions in affected member accounts but do not grant actions themselves. Account separation can help isolate production, learning, security tooling, and consolidated billing responsibilities. For example, place a learning account in a sandbox OU with region restrictions while production accounts receive different guardrails.

WORKED EXAMPLE
Place a learning account in a sandbox OU with region restrictions while production accounts receive different guardrails.

Why this matters

Place a learning account in a sandbox OU with region restrictions while production accounts receive different guardrails.

A common trap

Do not overlook this operational distinction: Account separation can help isolate production, learning, security tooling, and consolidated billing responsibilities.

RPO, RTO, and restore tests

Recovery point objective limits acceptable data loss; recovery time objective limits acceptable outage duration. A backup’s existence does not prove restore success. Test recoveries in isolation and record data correctness, dependencies, authorization, and measured duration against the objectives. For example, if backups occur daily, a target RPO of fifteen minutes requires additional protection beyond that daily snapshot schedule.

WORKED EXAMPLE
If backups occur daily, a target RPO of fifteen minutes requires additional protection beyond that daily snapshot schedule.

Why this matters

If backups occur daily, a target RPO of fifteen minutes requires additional protection beyond that daily snapshot schedule.

A common trap

Do not overlook this operational distinction: Test recoveries in isolation and record data correctness, dependencies, authorization, and measured duration against the objectives.

KEEP THESE WITH YOU

Today’s takeaways

Identity and resource policies: Identity policies attach permissions to principals; resource policies attach permissions to supported resources. Effective authorization depends on policy type and request context, including cross-account rules. An explicit deny overrides applicable allows.

Keys and envelope encryption: KMS keys can protect data keys used by services to encrypt larger data. Envelope encryption separates a data key from its encrypted copy. The application or integrated service handles data encryption while KMS protects key material and authorizes cryptographic operations.

Secret storage and retrieval: Secrets Manager stores secret values with version metadata and access controls. Applications retrieve secrets using an authorized identity instead of embedding them in source. Retrieval should minimize unnecessary calls and avoid writing values into logs, errors, screenshots, or shell history.

CloudTrail event evidence: CloudTrail records supported AWS API activity, including identity, action, time, and source context. Event history has scope and retention limits; trails and event data stores provide additional options. Management events and data events are different categories, and not every data operation is included by default.

Accounts, organizational units, and SCPs: AWS Organizations groups accounts and applies governance through a hierarchy. Organizational units organize accounts for inherited controls. SCPs limit available permissions in affected member accounts but do not grant actions themselves. Account separation can help isolate production, learning, security tooling, and consolidated billing responsibilities.

RPO, RTO, and restore tests: Recovery point objective limits acceptable data loss; recovery time objective limits acceptable outage duration. A backup’s existence does not prove restore success. Test recoveries in isolation and record data correctness, dependencies, authorization, and measured duration against the objectives.

CLOSE THE LOOP

Ready to complete this day?

Verify your recall or recovery steps, then finish this review day.

Lab steps verifiedReview day: quiz optional