AWS Certified Cloud Practitioner (CLF-C02) / Security and Compliance

Protecting accounts and credentials

Lesson 9 of 42. Open to read. No account needed.

A developer puts a database password in a shared troubleshooting document so colleagues can connect quickly. Later the document is copied into a support ticket. Removing the visible password from the document does not undo those copies. Good credential handling starts before the first paste.

A credential is evidence used to authenticate an identity. Different credentials serve different callers, so changing one does not necessarily disable another. First identify what has been exposed and which identity or system accepts it.

Know What the Credential Does

ItemPurposeImportant distinction
Console passwordInteractive sign-in for an identity that uses a password.Changing it does not automatically invalidate a separate access key.
IAM user access keyAn access key ID and secret access key used to sign programmatic AWS requests.It is not the user's console password and does not prompt for an MFA code on every request.
Temporary AWS credentialsTime-limited credentials for a session, including a session token.Prefer appropriate temporary access instead of distributing permanent keys.
Application secretA database password, external API token or another application's credential.Its permissions and lifecycle belong to that target system too.

An AWS account is not one person's login. Within it, people and applications need identities with permissions suited to their work. A software deployment should not borrow the account owner's most powerful credentials just because they happen to work.

Reserve Root for the Tasks That Need It

The root user is the highly privileged account identity. Ordinary work should use separately assigned access. An administrator with broad IAM permissions is not identical to root; some operations have additional root requirements.

For a standalone account, current AWS documentation requires root credentials to change the account's root email address or close the account. It does not require root for every account setting or every billing task. Accounts managed through AWS Organizations have additional centralized management options, so do not apply a standalone-account rule to every member account.

Protect root sign-in with a strong unique password and MFA where root credentials exist, avoid creating root access keys, and restrict access to recovery email and phone channels. Recovery is another route into the account; protecting only the password leaves that route overlooked. Keep recovery arrangements usable when a device is lost, without placing the only copy behind the account access you are trying to recover.

Organizations can centrally manage root access and remove root credentials from member accounts. This is a different protection model from leaving a standalone root login active. Recognize the distinction; no account changes are required for this lesson.

MFA and Password Rules Solve Different Problems

Multi-factor authentication (MFA) adds another kind of proof, such as a registered security key or authenticator, to sign-in. It reduces dependence on a password alone. It does not turn an over-permitted identity into a suitably restricted one, or automatically neutralize an exposed long-term API key.

An IAM account password policy sets rules for IAM user passwords, such as length and permitted reuse. It does not govern the root password, access keys or passwords managed by an external identity provider. Password expiry therefore does not establish that a user's programmatic access has ended. Match the control to the credential rather than assuming one account policy covers all.

Store and Retrieve Application Secrets Deliberately

AWS Secrets Manager stores secrets and lets authorized applications retrieve them at runtime. It also supports rotation: replacing a secret and coordinating its use with the target system. Rotation requires a supported, configured arrangement; storing a value does not automatically update every database or client that uses it.

Give an application permission to retrieve only the secrets it needs. Where possible, use a role with temporary AWS credentials for that retrieval rather than embedding an AWS access key next to the database password. A protected store is undermined if everyone can read every value or if the application logs the value after fetching it.

Systems Manager Parameter Store holds named configuration values, such as an environment setting. Its SecureString type encrypts values using AWS KMS, a managed key service. Parameter Store does not itself rotate database credentials; AWS recommends Secrets Manager for secrets needing that lifecycle. Encrypted storage and controlled retrieval are different from automatic rotation.

Return to the shared document. Once a secret may have escaped, move future retrieval into an appropriate store and replace the exposed credential. Limit access, inspect relevant activity and address retained copies according to the organization's process. Merely changing the storage location does not invalidate a password somebody already knows.

Check Your Understanding

The developer deletes the database password from the shared document and changes their own AWS console password. They say the database exposure is now resolved. Why is that conclusion wrong, and what two changes directly address it?

Answer and Reasoning

The database accepts its own credential, not the developer's AWS console password. Copies of the document can still contain that database credential. Replace or revoke it at the database, coordinating authorized application access, and move future retrieval to a restricted secret-management arrangement. Inspecting relevant activity helps determine whether additional response is needed. MFA on the developer's login is valuable but is not a substitute for invalidating a different exposed secret.

References

Sources checked on 24 September 2026. The document-sharing example uses no real credential and requires no account access.

Study this course with an account

Course access adds revision notes, the Exam Cheat Sheet, saved progress, bookmarks and your own notes.

INR 199 plus 18% GST. 90 days of online access. No auto-renewal.

See course access

This website is operated by VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED, operating as Vectametric.

Corporate Identity Number (CIN): U85499KA2026OPC229822. GSTIN: 29AAMCV8281D1ZS. Registered office: RS NO/38/2A/1 BASTAND, ROAD MAHANTESH NAGAR, Ramdurg, Ramdurg, Belgaum- 591123, Karnataka.

Queries and grievances: Prajval Honnungar, Grievance Officer and Data Protection Contact.

Telephone: +91 94800 09310. Support: support@vectametric.com. Grievances: support@vectametric.com.

Copyright 2026 VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED. All rights reserved.

Vectametric home · Roadmaps · Vecta IT Exams · Vecta Government Exams · Vecta Banking & Finance Exams · Vecta Entrance Exams · About us · Contact · Privacy Policy · Terms and Conditions · No-Refund Policy