Store and manage sensitive information such as: - Database passwords - API keys - OAuth tokens - Certificates
Secrets are encrypted using AWS KMS.
Store application configuration values.
Examples: - API endpoints - Feature flags - Environment names - Database hostnames - Configuration values
Can also store secrets, but Secrets Manager is preferred for secret rotation.
Examples: - https://api.example.com - DEV - FeatureEnabled=true
Exam Tip
Non-sensitive configuration → String
Examples: - Passwords - API keys - Tokens
Exam Tip
Sensitive value → SecureString
Exam Tip
Small normal config → Standard
| Secrets Manager | Parameter Store |
|---|---|
| Secrets | Configuration |
| Automatic rotation | No automatic rotation |
| Built for passwords/API keys | Built for application settings |
| More expensive | Mostly free (Standard) |
Remember
Secrets → Secrets Manager
Configuration → Parameter Store
Secrets Manager can automatically: - Generate a new password - Update the database - Store the new password
Applications must retrieve the latest secret.
Very common exam question.
If your application:
After rotation:
Old password ❌
Database expects:
New password ✅
Authentication fails.
Fix
Retrieve the latest secret from Secrets Manager (or refresh the cache).
Exam Tip
Rotation succeeds but login fails → Application is using a cached old secret.
Very common DVA question.
Suppose:
Account A - Lambda
Account B - Secret
For access to work you need TWO permissions.
Lambda execution role needs:
The secret itself must allow Account A.
Exactly like S3 bucket policies.
Exam Tip
Cross-account Secrets Manager always requires:
Both are required.
Secrets Manager supports resource policies.
Used for: - Cross-account access - Granting specific principals access
Without the resource policy:
Access is denied.
Secrets Manager encrypts secrets with KMS.
SecureString in Parameter Store also uses KMS.
Plain String parameters are not encrypted.
Secrets Manager
Secrets Manager
Secrets Manager
Secrets Manager
Parameter Store String
Parameter Store String
Parameter Store String
Parameter Store String
✅ Secrets Manager
✅ Parameter Store
✅ String parameter
✅ SecureString
✅ Secrets Manager
✅ Application is using a cached old secret
Need BOTH: