# Credential Management

Credential management is the controlled creation, storage, use, renewal, and revocation of the authentication material that people and workloads use to access systems.

Cloud concept. Updated 2026-10-29. Page: https://blowstack.com/tools/cloud-concepts-hub/credential-management

> Credentials include passwords, access keys, session tokens, and other material used to prove an identity. Managing their lifecycle reduces credential theft, limits the impact of compromise, and keeps applications working when credentials change or expire.

Practice exams covering Credential Management: [CLF-C02 AWS Certified Cloud Practitioner](https://blowstack.com/practice-exams/aws-certified-cloud-practitioner), [DEA-C01 AWS Certified Data Engineer - Associate](https://blowstack.com/practice-exams/aws-certified-data-engineer-associate), [DVA-C02 AWS Certified Developer - Associate](https://blowstack.com/practice-exams/aws-certified-developer-associate), [DOP-C02 AWS Certified DevOps Engineer - Professional](https://blowstack.com/practice-exams/aws-certified-devops-engineer-professional), [MLA-C02 (beta) AWS Certified Machine Learning Engineer - Associate](https://blowstack.com/practice-exams/aws-certified-machine-learning-engineer-associate), [SAA-C03 AWS Certified Solutions Architect - Associate](https://blowstack.com/practice-exams/aws-certified-solutions-architect-associate).

## 6 key aspects of Credential Management

Effective credential management minimizes persistent secrets, protects authentication paths, and makes credential replacement and revocation reliable.

1. **Credential lifecycle control**: Track credential ownership, purpose, consumers, and retirement requirements. Remove unused credentials and revoke exposed credentials rather than merely deleting their visible copies.
2. **Temporary credentials by default**: Use workload roles and federated sessions instead of distributing long-lived access keys. Ensure applications refresh expiring credentials through supported SDK credential providers.
3. **Protected storage and retrieval**: Keep secrets out of source code, images, and logs. Use encrypted storage with narrowly scoped retrieval permissions, and protect secrets after they enter application memory.
4. **Password and MFA controls**: Apply password requirements in the identity system that authenticates the user, and enable MFA where supported. Treat console passwords and programmatic credentials as separate authentication methods with separate controls.
5. **Root and emergency access protection**: Reserve root access for tasks that require it, avoid root access keys, and protect root sign-in with MFA and secured recovery channels. Monitor its use and maintain a controlled emergency-access procedure.
6. **Safe rotation and auditability**: Coordinate credential replacement with dependent applications to avoid outages. Record relevant authentication and secret-access events, and investigate unexpected use or failed retrievals.

## Cloud services for Credential Management

IAM and IAM Identity Center establish how people and workloads obtain access, while AWS STS supplies temporary credentials for role-based sessions. Applications can use those credentials to retrieve application secrets from Secrets Manager or encrypted configuration from Systems Manager Parameter Store without embedding AWS access keys. IAM permissions constrain which identities can retrieve each value; AWS KMS provides the underlying encryption controls for these stores. CloudTrail supplies an audit trail for relevant management and retrieval activity. Together, these services separate identity access from application secrets, reduce persistent credentials, and support controlled rotation and incident investigation.

- **[AWS Secrets Manager](https://blowstack.com/tools/cloud-services-hub/aws-secrets-manager)**: Secrets Manager stores secrets such as database credentials and API tokens, encrypts them, and controls retrieval through permissions. It supports automatic rotation through supported integrations or configured rotation workflows; rotation must also update the corresponding target system.
- **[AWS Systems Manager](https://blowstack.com/tools/cloud-services-hub/aws-systems-manager)**: Systems Manager Parameter Store provides centralized configuration storage, including SecureString parameters encrypted with AWS KMS. It can hold sensitive configuration values but does not offer the same built-in secret rotation capabilities as Secrets Manager.
- **[AWS CloudTrail](https://blowstack.com/tools/cloud-services-hub/aws-cloudtrail)**: CloudTrail records AWS account activity, including relevant credential-management operations, secret-retrieval API calls, and root activity. These events support investigations and can feed monitoring rules for unexpected credential or privileged-account use.

## Credential Management exam questions

Real practice exam questions on Credential Management, with the correct answer and its explanation.

### Question 1 (MLA-C02 (beta))

**Question:**

An ML team will run a 72-hour unattended evaluation of an Amazon Bedrock foundation model by using a third-party testing appliance. The appliance supports Bedrock inference through HTTPS bearer-token authentication but cannot sign AWS requests. It loads one credential from an encrypted secret store when the evaluation starts and cannot refresh or replace that credential during the run. Company policy permits a dedicated, narrowly scoped long-lived credential for this integration, provided that it is revoked after the evaluation. All required model access is configured.

Which credential configuration meets these requirements?

**Correct answer:** Create a long-term Amazon Bedrock API key associated with a dedicated IAM user that has only the required model invocation permissions. Set the key to remain valid throughout the evaluation, store it in the secret store, and revoke it afterward.

**Explanation:** A long-term Bedrock API key supports bearer-token authentication and can remain valid throughout the 72-hour run without renewal. A dedicated IAM user with narrowly scoped permissions, encrypted storage, and revocation after the evaluation meets the stated security requirements.

### Question 2 (DOP-C02)

**Question:**

A company's security monitoring system detects that an IAM user's access key was published in a public repository. AWS CloudTrail records show that an attacker used the key to call sts:GetSessionToken successfully. The user has not assumed any IAM roles. A DevOps engineer deactivates all of the user's access keys and records a containment timestamp after those actions complete.

The engineer must now deny requests made with the user's temporary credentials issued before the containment timestamp. The IAM user must be retained, and temporary credentials issued after the timestamp through an approved recovery process must remain usable with the user's existing permissions.

Which additional action meets these requirements?

**Correct answer:** Attach an inline policy to the IAM user that explicitly denies all actions on all resources when aws:TokenIssueTime is earlier than the containment timestamp.

**Explanation:** Temporary credential requests include aws:TokenIssueTime. An explicit deny using DateLessThan against the containment timestamp blocks the user's previously issued temporary credentials, including those obtained through GetSessionToken. Later sessions do not match the condition and remain subject to the user's existing permissions. Deactivating the access keys separately blocks requests signed directly with those keys.

### Question 3 (DEA-C01)

**Question:**

An AWS Glue job retrieves a database password from AWS Secrets Manager in us-east-1. The secret is encrypted with a dedicated customer managed AWS KMS key. The job's execution role already allows secretsmanager:GetSecretValue on the secret, but it has no KMS permissions. The key policy enables the account to delegate permissions through IAM policies.

Security requires the role to decrypt the password through Secrets Manager, but prohibits the role from calling KMS directly to decrypt ciphertext, even if the role obtains the ciphertext and its encryption context. No other policies grant or restrict the role's KMS access.

Which permission should a data engineer add to the execution role to meet these requirements?

**Correct answer:** Allow kms:Decrypt on the key ARN with a StringEquals condition requiring kms:ViaService to equal secretsmanager.us-east-1.amazonaws.com.

**Explanation:** Secrets Manager calls KMS on behalf of the execution role when retrieving the encrypted secret. The kms:ViaService condition permits this service-mediated decryption while excluding direct KMS calls from the role.

### Question 4 (DVA-C02)

**Question:**

A company runs unattended AWS CLI jobs on several on-premises servers. A legacy integration requires the jobs to use an IAM user's long-lived access key; migration to temporary credentials is outside the scope of this maintenance change. The user has one access key, which is active. Each server stores the key in a protected shared credentials file.

A developer must rotate the key without interrupting the jobs. At the end of the rotation, the original key must no longer authenticate AWS API requests, even if someone retained a copy. Which procedure meets these requirements?

**Correct answer:** Create a second active access key for the IAM user. Deploy its access key ID and secret access key to every server, and verify that all jobs use it successfully. Deactivate the original key, verify continued operation, and then delete the original key.

**Explanation:** An IAM user can have two access keys. Keeping the original active while deploying and validating the replacement avoids an authentication gap. Deactivating the original prevents retained copies from authenticating, and deleting it completes retirement.

### Question 5 (SAA-C03)

**Question:**

A company runs an application in two AWS Regions for disaster recovery. Both deployments use the same API credential for a global payment provider. The security team updates the credential centrally in the primary Region whenever the provider replaces it.

The company requires credential updates to propagate automatically to the recovery Region during normal operation. During an outage of the primary Region, the recovery deployment must retrieve the most recently replicated credential without contacting the primary Region. The company does not want to maintain custom synchronization code.

Which solution meets these requirements with the LEAST operational overhead?

**Correct answer:** Store the credential in AWS Secrets Manager in the primary Region and configure replication to the recovery Region. Configure each application deployment to retrieve the secret from its local Regional endpoint by using the corresponding Regional secret ARN.

**Explanation:** Secrets Manager supports managed replication of secrets across Regions and propagates updates to replica secrets. The recovery deployment can retrieve the replicated value locally without contacting the primary Region, and no custom synchronization code is required.

## Practice Credential Management in a full exam

Questions on Credential Management in each practice exam, with every answer option and an explanation for each:

- [SAA-C03](https://blowstack.com/practice-exams/aws-certified-solutions-architect-associate): 6 questions
- [DEA-C01](https://blowstack.com/practice-exams/aws-certified-data-engineer-associate): 5 questions
- [CLF-C02](https://blowstack.com/practice-exams/aws-certified-cloud-practitioner): 2 questions
- [MLA-C02 (beta)](https://blowstack.com/practice-exams/aws-certified-machine-learning-engineer-associate): 2 questions
- [DOP-C02](https://blowstack.com/practice-exams/aws-certified-devops-engineer-professional): 2 questions
- [DVA-C02](https://blowstack.com/practice-exams/aws-certified-developer-associate): 1 question

## What is Credential Management

Credential management governs how authentication material is issued, protected, used, replaced, and retired. In cloud environments, this includes credentials for engineers, administrators, applications, automation pipelines, and emergency access. Authentication establishes who is making a request; authorization determines what that identity may do. A securely stored credential can still be dangerous if its identity has excessive permissions, so credential management must work alongside least-privilege access policies.

Different credentials serve different purposes. An AWS IAM user can have a console password and, separately, access keys for programmatic requests. An access key consists of an access key ID and a secret access key. Temporary AWS credentials also include a session token and expire automatically. Changing a console password does not rotate access keys, and deleting an access key does not remove console access. Engineers must inventory and manage each authentication method independently.

Prefer temporary credentials over long-lived access keys wherever possible. A workload running on an AWS compute service can obtain role credentials through its supported credential mechanism rather than embedding keys in code. Developers can use federated sign-in and role sessions instead of maintaining individual long-lived keys. AWS SDK credential providers can retrieve and refresh role credentials automatically. Temporary credentials reduce persistent exposure, but they remain sensitive and can be abused until they expire or access is otherwise restricted.

When an application needs a database password or external API token, store it in a dedicated secret store rather than source code, container images, shared documents, or logs. For example, a workload can use its IAM role to retrieve a database password from AWS Secrets Manager. AWS Systems Manager Parameter Store also supports encrypted SecureString parameters. Secrets Manager provides managed rotation capabilities for supported integrations and customizable rotation workflows; Parameter Store does not provide equivalent built-in secret rotation. Encryption at rest alone is insufficient: restrict retrieval permissions, protect decryption access, and prevent applications from exposing retrieved values.

Password policies establish requirements such as minimum length, complexity, and reuse restrictions. AWS IAM account password policies apply to IAM user console passwords, not root user passwords, access keys, or passwords managed by an external identity provider. Configure workforce password controls in the system that actually authenticates those users. Use unique passwords and multifactor authentication rather than relying on complexity alone. Enabling MFA for console sign-in does not automatically require MFA for every request signed with an IAM user's long-lived access keys.

Root user protection deserves separate controls because root has highly privileged account capabilities. Do not use root for everyday administration, and do not create root access keys. Protect the root password with a strong, unique value, enable MFA, and secure the associated email account and recovery channels. Restrict access to root credentials, monitor root activity, and reserve root sign-in for tasks that require it. Where AWS Organizations centralized root access management is configured, eligible member accounts can have long-term root credentials removed; the management account still requires its own root protection.

Rotation and revocation must be operationally safe. When replacing a long-lived key, update its consumers, verify that they use the replacement, and then deactivate and delete the old key. For a leaked credential, revoke or disable it promptly and investigate its use; removing it from a repository does not invalidate it. Secret retrieval adds cost, latency, and availability dependencies, while caching reduces requests but can delay adoption of rotated values. Design refresh behavior, monitoring, and incident procedures around these trade-offs.

## Learn Credential Management in lessons

6 short lessons on Credential Management in 5 certification courses.

- CLF-C02: Credential Management: protecting passwords and access keys (Premium), https://app.blowstack.com/lessons/credential-management-protecting-passwords-and-access-keys-clf-c02
- MLA-C02 (beta): Credential Management: choosing credentials for foundation-model access (Premium), https://app.blowstack.com/lessons/credential-management-choosing-credentials-for-foundation-model-access-mla-c02
- DOP-C02: Credential Management: access key exposure (Premium), https://app.blowstack.com/lessons/credential-management-access-key-exposure-dop-c02
- DEA-C01: Credential Management: storing application secrets (Premium), https://app.blowstack.com/lessons/credential-management-storing-application-secrets-dea-c01
- SAA-C03: Credential Management: secure application credential delivery (Premium), https://app.blowstack.com/lessons/credential-management-secure-application-credential-delivery-saa-c03
- CLF-C02: Credential Management: protecting root user credentials (Premium), https://app.blowstack.com/lessons/credential-management-protecting-root-user-credentials-clf-c02
