Question 149 of 1,024
Security and CompliancemediumMultiple ChoiceObjective-mapped

Quick Answer

AWS Secrets Manager is the correct choice because it is a fully managed service designed to store, manage, and automatically rotate database credentials on a regular schedule without any manual intervention. It natively integrates with Amazon RDS for MySQL, allowing you to configure automatic rotation policies that update credentials in both Secrets Manager and the database simultaneously, which eliminates the security risk of hardcoding secrets in application code or configuration files. On the AWS Certified Cloud Practitioner CLF-C02 exam, this question tests your understanding of which managed service handles credential lifecycle management versus simple storage; a common trap is confusing AWS Secrets Manager with AWS Systems Manager Parameter Store, which can store secrets but does not offer native automatic rotation for RDS databases. Remember the key differentiator: if the requirement explicitly says “automatically rotate database credentials,” think Secrets Manager—it’s the only service that rotates credentials for you. A useful memory tip is “Secrets rotate, Parameters store.”

CLF-C02 Security and Compliance Practice Question

This CLF-C02 practice question tests your understanding of security and compliance. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. A key principle to apply: aWS Secrets Manager stores, manages, and retrieves secrets.. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A company runs a web application on Amazon EC2 instances that connect to an Amazon RDS MySQL database. The application requires database credentials to authenticate. The security team wants to eliminate the practice of storing database credentials in the application code or configuration files. Additionally, the team needs a managed service that can automatically rotate the database credentials on a regular schedule without any manual intervention. Which AWS service should the security team use to store and manage these database credentials?

Question 1mediummultiple choice
Read the full NAT/PAT explanation →

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 a managed service specifically designed to store, manage, and automatically rotate database credentials (such as those for Amazon RDS MySQL) on a scheduled basis without manual intervention. It natively integrates with Amazon RDS to rotate credentials, eliminating the need to embed secrets in application code or configuration files, which directly addresses the security team's requirements.

Key principle: AWS Secrets Manager stores, manages, and retrieves secrets.

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 Secrets Manager

    Why this is correct

    AWS Secrets Manager is the correct choice because it is designed specifically for storing secrets (like database credentials) and supports automatic rotation of secrets for Amazon RDS databases without manual effort.

    Related concept

    AWS Secrets Manager stores, manages, and retrieves secrets.

  • AWS Systems Manager Parameter Store

    Why it's wrong here

    AWS Systems Manager Parameter Store can store secure string parameters, but it does not offer native automatic rotation of secrets. You would need additional custom automation to rotate credentials, which does not meet the requirement for a managed automatic rotation service.

  • AWS Identity and Access Management (IAM) roles

    Why it's wrong here

    IAM roles are used to grant permissions to AWS resources and services (e.g., an EC2 instance assuming a role to access S3). They are not designed to store or rotate database credentials for an application connecting to a database.

  • AWS Key Management Service (AWS KMS)

    Why it's wrong here

    AWS KMS is a service for creating and managing encryption keys used to encrypt data. It does not store database credentials or provide any mechanism for credential rotation.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often 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.

Detailed technical explanation

How to think about this question

Under the hood, AWS Secrets Manager uses a rotation Lambda function that AWS automatically configures when you enable rotation for an RDS database; this function updates the secret in Secrets Manager and the database password in RDS simultaneously, ensuring consistency. A subtle behavior is that Secrets Manager caches credentials for up to 24 hours by default, so applications using the SDK must handle cache invalidation or use shorter cache durations to avoid using stale credentials after rotation. In a real-world scenario, if an application reads the secret only at startup and holds it in memory, a rotation event could cause authentication failures until the application refreshes the secret.

KKey Concepts to Remember

  • AWS Secrets Manager stores, manages, and retrieves secrets.
  • It supports automatic rotation of database credentials for Amazon RDS.
  • Secrets Manager eliminates hardcoding credentials in application code.
  • It integrates with other AWS services for secure secret management.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

AWS Secrets Manager stores, manages, and retrieves secrets.

Real-world example

How this comes up in practice

A company's IT admin needs to give a contractor read-only access to production logs without sharing account credentials. Using role-based access control (RBAC) and temporary scoped permissions — not a permanent shared password — is the correct pattern. Questions like this test whether you can apply least-privilege access across cloud identity services.

What to study next

Got this wrong? Here's your next step.

Review aWS Secrets Manager stores, manages, and retrieves secrets., then practise related CLF-C02 questions on the same topic to reinforce the concept.

Related practice questions

Related CLF-C02 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free CLF-C02 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this CLF-C02 question test?

Security and Compliance — This question tests Security and Compliance — AWS Secrets Manager stores, manages, and retrieves secrets..

What is the correct answer to this question?

The correct answer is: AWS Secrets Manager — AWS Secrets Manager is the correct choice because it is a managed service specifically designed to store, manage, and automatically rotate database credentials (such as those for Amazon RDS MySQL) on a scheduled basis without manual intervention. It natively integrates with Amazon RDS to rotate credentials, eliminating the need to embed secrets in application code or configuration files, which directly addresses the security team's requirements.

What should I do if I get this CLF-C02 question wrong?

Review aWS Secrets Manager stores, manages, and retrieves secrets., then practise related CLF-C02 questions on the same topic to reinforce the concept.

What is the key concept behind this question?

AWS Secrets Manager stores, manages, and retrieves secrets.

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

Same concept, more angles

2 more ways this is tested on CLF-C02

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. A company runs a web application on Amazon EC2 instances that connect to an Amazon RDS for MySQL database. Currently, the database administrator (DBA) hardcodes the database password in the application configuration file. A recent security audit recommends removing the password from the code and implementing automated password rotation every 30 days. The company wants a managed AWS service that can store the password securely and rotate it on a schedule without requiring custom code. Which AWS service should the company use?

medium
  • A.AWS KMS (Key Management Service)
  • B.AWS Systems Manager Parameter Store
  • C.AWS Secrets Manager
  • D.AWS IAM (Identity and Access Management)

Why C: AWS Secrets Manager is the correct choice because it is a managed service specifically designed to securely store database credentials and other secrets, with built-in capability to automatically rotate passwords on a defined schedule (e.g., every 30 days) without requiring custom code. It integrates natively with Amazon RDS for MySQL, enabling automated rotation of the master user password via a pre-built Lambda function, which directly addresses the security audit's requirement to remove hardcoded passwords and implement rotation.

Variation 2. A company runs a web application on Amazon EC2 that connects to an Amazon RDS database. The database credentials are currently hardcoded in the application configuration file. The security team requires that the credentials be automatically rotated every 90 days and that the application retrieves them securely from a managed service without storing them in the application code. Which AWS service should the company use to meet these requirements?

medium
  • A.AWS Key Management Service (AWS KMS)
  • B.AWS Secrets Manager
  • C.AWS Systems Manager Parameter Store
  • D.AWS Certificate Manager (ACM)

Why B: AWS Secrets Manager is the correct choice because it is purpose-built for securely storing, retrieving, and automatically rotating database credentials (including for Amazon RDS) on a schedule. It allows the application to fetch credentials at runtime via API calls, eliminating hardcoded secrets, and supports native rotation every 90 days without custom code.

Last reviewed: Jun 11, 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 CLF-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 CLF-C02 exam.