StudyToCert

All certifications / Developer Associate / Lessons

AWS Certified Developer – Associate DVA-C02 · Domain 2: Security

Secrets and configuration: Secrets Manager (rotation) vs Systems Manager Parameter Store (SecureString, tiers)

▶ Watch the overview video

Last reviewed October 6, 2026 · Leer en español

Explain it simpler

Programs need settings, like which database to use, and secrets, like passwords. Neither should be written inside the code, where anyone who sees the code sees them. AWS offers two safe places to keep them. Parameter Store is like a tidy filing cabinet of labeled folders: cheap, simple, great for settings, and it can lock some drawers for secrets. Secrets Manager is like a security guard who not only keeps the passwords but also changes them on a schedule, updates the database to match, and makes sure the app always gets the working one. Pick the filing cabinet for everyday settings and low cost; pick the guard when passwords must be changed automatically.

Ben inherits the order service at Hollowbrook Bakery Supply. In the repository he finds a file called config.prod.js containing the database host, three feature settings, a payment provider API key and the Aurora master password, all in plain text. The compliance officer has just added a new rule: database passwords must change every 30 days, with no outage. Ben has heard of both AWS Secrets Manager and Systems Manager Parameter Store, and both can hold encrypted values. Which one belongs where, and how does the password change monthly without the application falling over?

Applications need configuration values, such as feature settings, endpoint URLs and table names, and secrets, such as database passwords and third-party API keys. Both should live outside the code, in a service that controls access with IAM and records each retrieval in AWS CloudTrail. Moving them out of code means you can change a value without redeploying, give different values to each environment, and keep secrets out of source control. AWS offers two main options, and the DVA-C02 exam typically asks you to pick between them based on a keyword in the scenario.

Free account

Keep reading for free

Create a free StudyToCert account to read the rest of this lesson: 7 more sections, 6 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.

Sign up free Log in

Study Developer Associate for free
A week-by-week plan with every lesson, quizzes, checkpoint tests, a practice exam and hands-on labs.
Open the Developer Associate study plan