Courseiva

DOP-C02 Configuration Management and IaC Practice Question

A company uses AWS Systems Manager Parameter Store to manage configuration data for its applications. The DevOps team wants to ensure that sensitive parameters, such as database passwords, are automatically rotated every 30 days. The parameters are currently stored as `SecureString` and are referenced by AWS Lambda functions. Which solution will meet these requirements with the LEAST development effort?

⚠ Common exam trap

The trap here is assuming that Parameter Store SecureString parameters can be automatically rotated natively, when they cannot; rotation requires custom logic or migration to Secrets Manager.

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

✓

Use AWS Secrets Manager to store the sensitive parameters and configure automatic rotation using a Lambda rotation function.

AWS Secrets Manager is designed for secret rotation and integrates with Lambda for automatic rotation. It supports scheduled rotation, reducing development effort compared to custom solutions. Storing secrets in Secrets Manager and enabling rotation every 30 days meets the requirement efficiently, while Parameter Store would require custom rotation logic.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Store the parameters in AWS Key Management Service (KMS) encrypted S3 buckets and use S3 Lifecycle policies to rotate the encryption keys every 30 days.

    Why it's wrong here

    S3 Lifecycle policies manage object storage, not secret rotation. KMS key rotation rotates the encryption key, but the underlying secret value remains unchanged. This does not meet the requirement to rotate the actual password. Additionally, Lambda functions cannot natively reference S3 objects as configuration without custom code. This approach is incorrect and adds unnecessary complexity.

  • ✓

    Use AWS Secrets Manager to store the sensitive parameters and configure automatic rotation using a Lambda rotation function.

    Why this is correct

    AWS Secrets Manager natively supports automatic rotation of secrets using Lambda functions. It provides built-in rotation templates for databases like Amazon RDS, and you can schedule rotation every 30 days. This requires minimal development effort because the rotation logic is managed by Secrets Manager. The Lambda functions can retrieve secrets directly from Secrets Manager, and rotation is transparent. This is the most efficient solution.

  • ✗

    Create a custom AWS Lambda function that generates new passwords and updates the Parameter Store parameters on a schedule using Amazon EventBridge.

    Why it's wrong here

    This approach requires writing and maintaining a custom Lambda function to generate passwords and update Parameter Store. You must also handle error cases, secure the function's permissions, and manage the schedule. While it achieves rotation, it involves significant development and operational overhead. Secrets Manager provides this functionality out-of-the-box, making it a less efficient choice.

  • ✗

    Use AWS Systems Manager Automation to run a document that rotates the parameters and updates the Lambda functions' environment variables.

    Why it's wrong here

    Systems Manager Automation can run documents on a schedule, but it does not provide built-in secret rotation logic. You would need to author a custom automation document that generates new passwords, updates Parameter Store, and possibly updates Lambda environment variables. This is complex and error-prone. Secrets Manager is purpose-built for this use case and requires less effort.

Quick reference

Cloud Service Model Comparison

ModelYou ManageProvider ManagesExamples
IaaSOS, runtime, apps, dataHardware, hypervisor, networkingEC2, Azure VMs, GCP Compute Engine
PaaSApps and dataOS, runtime, middleware, hardwareElastic Beanstalk, Azure App Service
SaaSData and settings onlyEverything elseMicrosoft 365, Salesforce, Workday
FaaS / ServerlessFunction code onlyInfra, scaling, runtimeLambda, Azure Functions, Cloud Run
CaaSContainers and appsKubernetes, OS, hardwareEKS, AKS, GKE

About these practice questions

This DOP-C02 question is part of Courseiva's 1,298-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Amazon Web Services exam blueprint

This DOP-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 DOP-C02 exam.