CLF-C02 ยท Identity and access management
Storing secrets and credentials
AWS Secrets Manager with automatic rotation versus AWS Systems Manager Parameter Store for configuration and secrets, and when to choose each.
Key points
- AWS Secrets Manager: stores credentials (database passwords, API keys), encrypted with AWS KMS; automatic rotation (managed or a Lambda function).
- Billed per secret per month and per API call.
- AWS Systems Manager Parameter Store: configuration as String, StringList or KMS-encrypted SecureString; standard tier has no extra charge; no credential rotation.
- Rotation: Secrets Manager; configuration: Parameter Store.
Source: https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-parameter-store.html
Practice questions
Which AWS service can automatically rotate database credentials on a schedule?
- AWS Systems Manager Parameter Store
- AWS IAM Identity Center
- AWS Secrets Manager
- Amazon Cognito
Show answer
Answer: C. AWS Secrets Manager
AWS Secrets Manager supports automatic rotation, updating both the secret and the database. Parameter Store has no built-in credential rotation, and IAM Identity Center manages workforce sign-in.
Which statements about AWS Systems Manager Parameter Store are correct?
- SecureString parameters are encrypted using AWS KMS
- It rotates database passwords automatically with native integrations
- Standard-tier parameters have no additional charge
- It acts as a user directory for mobile app sign-in
- Every parameter must be encrypted with a customer managed key
Show answer
Answer: A. SecureString parameters are encrypted using AWS KMS, C. Standard-tier parameters have no additional charge
Parameter Store offers String, StringList and SecureString types, with SecureString values encrypted by AWS KMS, and the standard tier has no additional charge. It does not rotate credentials automatically; that is a Secrets Manager feature. It is a regional configuration store, not a user directory.
Storing database passwords directly in application source code is acceptable as long as the repository is private.
Show answer
Answer: False
False. Credentials in code end up in copies, logs and history and are hard to rotate. Store them in AWS Secrets Manager (or Parameter Store) and retrieve them at run time with a role.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
