Black Friday sale: an extra 40% off every course until Monday, November 30.New Year sale: an extra 30% off every course until Friday, January 1.Memorial Day sale: an extra 25% off every course until Monday, May 31.SysAdmin Day sale: an extra 25% off every course until Sunday, August 1.Back to School sale: an extra 25% off every course until Sunday, August 22.Labor Day sale: an extra 25% off every course until Monday, September 6.Black Friday sale: an extra 40% off every course until Monday, November 29.New Year sale: an extra 30% off every course until Saturday, January 1.Choose your certification →

Copyright (c) 2026 MindMesh Academy. All rights reserved. This content is proprietary and may not be reproduced or distributed without permission.

2.1.1.4. Managing Build & Deployment Secrets (Secrets Manager, Parameter Store)

2.1.1.4. Managing Build & Deployment Secrets (Secrets Manager, Parameter Store)

Hardcoded secrets in source code are the #1 cause of credential leaks — and they end up in Git history forever. AWS provides two services for secret management, and the exam heavily tests when to use each.

AWS Secrets Manager stores and automatically rotates database credentials, API keys, and OAuth tokens. Rotation uses a Lambda function that updates both the secret value and the target service (e.g., rotating an RDS password updates both Secrets Manager and the database). Secrets Manager costs $0.40/secret/month.

AWS Systems Manager Parameter Store stores configuration values and secrets in a hierarchy (e.g., /prod/db/password). Standard parameters are free (up to 10,000), and the SecureString type encrypts values with KMS. Parameter Store does not support automatic rotation — you must build your own rotation logic.

TierCostMax value sizeParameter policies
StandardFree (up to 10,000 per account/Region)4 KBNo
Advanced$0.05 per parameter/month8 KBYes (expiration, notification)

Organize values by path (/{environment}/{service}/{name}): GetParametersByPath returns a whole subtree in one call, and IAM policies can scope access by prefix (arn:aws:ssm:*:*:parameter/prod/*). Parameter Store has no built-in cross-Region replication (unlike Secrets Manager replica secrets), so a DR Region's parameters stay stale unless automation keeps them in sync.

Accessing secrets in CodeBuild:
env:
  secrets-manager:
    DB_PASS: prod/mydb:password    # Secrets Manager
  parameter-store:
    API_URL: /prod/api/endpoint     # Parameter Store
Accessing secrets in CloudFormation:
Resources:
  MyDB:
    Type: AWS::RDS::DBInstance
    Properties:
      MasterUserPassword: '{{resolve:secretsmanager:prod/mydb:SecretString:password}}'

Exam Trap: Both services integrate with KMS, but the default encryption differs. Secrets Manager always encrypts (using aws/secretsmanager key by default). Parameter Store SecureString requires explicit KMS key specification — a String type parameter stores values in plaintext. To share a secret with another account, you need a resource policy on the secret and a customer managed KMS key whose key policy grants that account kms:Decrypt — a secret encrypted with the AWS managed aws/secretsmanager key can't be read cross-account.

See how it connects
Alvin Varughese
Written byAlvin Varughese
Founder•26 professional certifications earned