Bitzu

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

Single choice

Which AWS service can automatically rotate database credentials on a schedule?

  1. AWS Systems Manager Parameter Store
  2. AWS IAM Identity Center
  3. AWS Secrets Manager
  4. 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.

Select all that apply

Which statements about AWS Systems Manager Parameter Store are correct?

  1. SecureString parameters are encrypted using AWS KMS
  2. It rotates database passwords automatically with native integrations
  3. Standard-tier parameters have no additional charge
  4. It acts as a user directory for mobile app sign-in
  5. 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.

True or false

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.

Download on the App StoreGet it on Google Play

More CLF-C02 topics in this module