Courseiva
Question 1,138 of 724
SecuritymediumMultiple ChoiceObjective-mapped

DVA-C02 Security Practice Question

A developer needs to encrypt secrets such as database passwords used by an application running on EC2. Which AWS service should be used to securely store and rotate these secrets?

⚠ Common exam trap

A common mix-up: candidates confuse AWS Systems Manager Parameter Store with Secrets Manager because both can store secrets, but Parameter Store lacks native automatic rotation, which is the key requirement in this question.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

AWS Secrets Manager

AWS Secrets Manager is the correct choice because it is specifically designed to securely store, manage, and automatically rotate secrets such as database passwords, API keys, and other credentials. It integrates natively with AWS services like RDS, Redshift, and DocumentDB to enable automatic rotation of secrets without custom code, and it enforces encryption at rest using AWS KMS. This makes it the ideal service for the use case described, where secrets must be both stored securely and rotated automatically.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • AWS CloudHSM

    Why it's wrong here

    AWS CloudHSM provides dedicated hardware security modules for cryptographic operations and secure key storage, meeting stringent compliance requirements. While it offers a highly secure environment for encryption keys, it is not designed for the direct storage, management, or automatic rotation of application-level secrets like database passwords. Its primary function is to provide FIPS 140-2 Level 3 validated hardware for cryptographic key management, not a secrets management service.

  • AWS Secrets Manager

    Why this is correct

    AWS Secrets Manager is purpose-built for securely storing, managing, and retrieving various types of secrets, including database credentials, API keys, and other sensitive data. Its key feature is native integration with services like Amazon RDS, enabling automatic rotation of database passwords on a schedule or on demand. This capability is crucial for enhancing security posture and meeting compliance requirements by regularly changing sensitive credentials.

  • AWS KMS

    Why it's wrong here

    AWS Key Management Service (KMS) is a managed service that makes it easy to create and control encryption keys used to encrypt your data across various AWS services and in your applications. While KMS is fundamental for encrypting the secrets themselves (Secrets Manager uses KMS under the hood for encryption), it does not directly store the secrets or provide features for their lifecycle management, such as automatic rotation or retrieval by applications. KMS manages keys, not the secrets content.

  • AWS Systems Manager Parameter Store

    Why it's wrong here

    AWS Systems Manager Parameter Store allows for secure storage of configuration data and secrets as parameters, including encrypted parameters using KMS. While it can store database passwords and is suitable for general configuration, it lacks native capabilities for automatic secret rotation, which is a critical security best practice for database credentials. Managing rotation would require custom automation and external scripting, making it less suitable than a dedicated secrets management service for this specific requirement.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 24, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This DVA-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DVA-C02 exam.