teluzia.Cloud Engineer · Day 36
CHAPTER 06 · AWS FOUNDATIONS

Account security, MFA, budgets and billing alerts

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

What you’re learning today

Secure the account before deploying infrastructure. Your foundation consists of protected root access, federated everyday access and observable spending. You will build an account-readiness checklist and a local budget calculation; the exercise does not assume a particular free-tier allowance or that an alert can stop spending automatically. The AWS root user has broad account authority and should be reserved for tasks that require it. Protect its credentials and use strong MFA. Prefer federated or IAM Identity Center access for people and temporary role credentials for workloads. Root access keys are unnecessary for normal learning operations. MFA adds an independent authentication factor to protect sign-in. Different credential paths enforce it differently, so browser MFA does not automatically make every long-lived access key safe. Temporary sessions expire and should be refreshed through the supported identity flow. Never place keys in source code or screenshots.

Think of it this way

Root access is the master key kept in a safe; a budget alert is a smoke alarm, not a valve that automatically stops the fuel.

TOPIC 01 / 03Step by step

Root protection and everyday access

The AWS root user has broad account authority and should be reserved for tasks that require it. Protect its credentials and use strong MFA. Prefer federated or IAM Identity Center access for people and temporary role credentials for workloads. Root access keys are unnecessary for normal learning operations. A readiness checklist records root MFA enabled, no root access keys and a separate everyday access method; it does not record passwords, recovery codes or actual MFA secrets in a shared project repository. Separating emergency account authority from daily work reduces the effect of credential compromise and makes permissions and audit records easier to scope to a specific person or workload performing operations in the account. Using root for daily CLI commands turns ordinary mistakes into account-wide risks; configure temporary scoped access and keep recovery information secure rather than treating the root identity as the easiest default for every exercise.

WORKED EXAMPLE
A readiness checklist records root MFA enabled, no root access keys and a separate everyday access method; it does not record passwords, recovery codes or actual MFA secrets in a shared project repository.
Why this matters

Separating emergency account authority from daily work reduces the effect of credential compromise and makes permissions and audit records easier to scope to a specific person or workload performing operations in the account.

A common trap

Using root for daily CLI commands turns ordinary mistakes into account-wide risks; configure temporary scoped access and keep recovery information secure rather than treating the root identity as the easiest default for every exercise.

Read all topics in this lesson

A complete reference to revisit alongside the guided steps above.

Root protection and everyday access

The AWS root user has broad account authority and should be reserved for tasks that require it. Protect its credentials and use strong MFA. Prefer federated or IAM Identity Center access for people and temporary role credentials for workloads. Root access keys are unnecessary for normal learning operations. A readiness checklist records root MFA enabled, no root access keys and a separate everyday access method; it does not record passwords, recovery codes or actual MFA secrets in a shared project repository. Separating emergency account authority from daily work reduces the effect of credential compromise and makes permissions and audit records easier to scope to a specific person or workload performing operations in the account. Using root for daily CLI commands turns ordinary mistakes into account-wide risks; configure temporary scoped access and keep recovery information secure rather than treating the root identity as the easiest default for every exercise.

WORKED EXAMPLE
A readiness checklist records root MFA enabled, no root access keys and a separate everyday access method; it does not record passwords, recovery codes or actual MFA secrets in a shared project repository.

Why this matters

Separating emergency account authority from daily work reduces the effect of credential compromise and makes permissions and audit records easier to scope to a specific person or workload performing operations in the account.

A common trap

Using root for daily CLI commands turns ordinary mistakes into account-wide risks; configure temporary scoped access and keep recovery information secure rather than treating the root identity as the easiest default for every exercise.

MFA and credential handling

MFA adds an independent authentication factor to protect sign-in. Different credential paths enforce it differently, so browser MFA does not automatically make every long-lived access key safe. Temporary sessions expire and should be refreshed through the supported identity flow. Never place keys in source code or screenshots. aws sts get-caller-identity is a read-only way to confirm a configured CLI identity; its account and ARN are not secret keys, but redact personal or account details when sharing public educational screenshots or notes externally. Knowing the actual principal and credential lifetime helps prevent accidental work in the wrong account and clarifies why an expired session differs from a missing permission in an otherwise authenticated request made by the selected CLI profile. Assuming MFA on browser login secures a leaked static API key ignores how that key authenticates; prefer temporary credentials and revoke exposed keys rather than relying on a separate sign-in protection to neutralize them.

WORKED EXAMPLE
aws sts get-caller-identity is a read-only way to confirm a configured CLI identity; its account and ARN are not secret keys, but redact personal or account details when sharing public educational screenshots or notes externally.

Why this matters

Knowing the actual principal and credential lifetime helps prevent accidental work in the wrong account and clarifies why an expired session differs from a missing permission in an otherwise authenticated request made by the selected CLI profile.

A common trap

Assuming MFA on browser login secures a leaked static API key ignores how that key authenticates; prefer temporary credentials and revoke exposed keys rather than relying on a separate sign-in protection to neutralize them.

Budgets and billing evidence

AWS Budgets tracks chosen cost or usage thresholds and can send notifications when actual or forecast values cross them. Notifications may be delayed and are not a guaranteed real-time spending cap. Budget actions have separate configuration and scope. Review billing, pricing units and current account eligibility before provisioning. For a self-chosen monthly cap of 20 units, alerts at 50%, 80% and 100% correspond to 10, 16 and 20; choose real currency and notification destinations privately in the account’s billing interface if configuring a real budget. A planned spending threshold and verified notification path make cost visible early, while understanding delays prevents leaving expensive resources running under the false assumption that a budget alarm automatically freezes every service at the exact limit selected. Relying on a budget email as an instantaneous shutdown can allow further charges; combine estimates, short-lived experiments, inventories and teardown checks with alerts instead of assuming billing observation is equivalent to a universal enforced resource cap.

WORKED EXAMPLE
For a self-chosen monthly cap of 20 units, alerts at 50%, 80% and 100% correspond to 10, 16 and 20; choose real currency and notification destinations privately in the account’s billing interface if configuring a real budget.

Why this matters

A planned spending threshold and verified notification path make cost visible early, while understanding delays prevents leaving expensive resources running under the false assumption that a budget alarm automatically freezes every service at the exact limit selected.

A common trap

Relying on a budget email as an instantaneous shutdown can allow further charges; combine estimates, short-lived experiments, inventories and teardown checks with alerts instead of assuming billing observation is equivalent to a universal enforced resource cap.

KEEP THESE WITH YOU

Today’s takeaways

Protect root and separate daily access.

Confirm the actual principal.

Alerts supplement estimates and teardown.

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