- A
AWS Secrets Manager
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.
- B
AWS Systems Manager Parameter Store
Why wrong: 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.
- C
AWS Identity and Access Management (IAM) roles
Why wrong: 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.
- D
AWS Key Management Service (AWS KMS)
Why wrong: 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.
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?
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.
When this WOULD be correct
A company needs to store configuration data (e.g., database URLs, application settings) that does not require automatic rotation, and they want a simple, low-cost solution integrated with AWS Systems Manager for operational management.
- ✗
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.
When this WOULD be correct
A correct scenario would be: 'A company runs an application on EC2 that needs to access an S3 bucket. The security team wants to avoid storing AWS access keys on the EC2 instance. Which AWS feature should they use?' In that case, an IAM role attached to the EC2 instance would provide temporary credentials for API access.
- ✗
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.
When this WOULD be correct
A company needs to encrypt data at rest in an S3 bucket using a customer-managed key and must be able to rotate the key annually. AWS KMS would be the correct service to create, manage, and rotate the encryption keys.
Option-by-option analysis
Why each answer is right or wrong
Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The CLF-C02 exam frequently reuses these exact scenarios with slightly different constraints.
✓AWS Secrets ManagerCorrect answer▾
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.
✗AWS Systems Manager Parameter StoreWrong answer — click to see why▾
Why this is wrong here
AWS Systems Manager Parameter Store does not support automatic rotation of database credentials; it requires manual updates or custom automation via AWS Lambda, whereas the question specifies a need for a managed service that automatically rotates credentials on a schedule.
★ When this WOULD be the correct answer
A company needs to store configuration data (e.g., database URLs, application settings) that does not require automatic rotation, and they want a simple, low-cost solution integrated with AWS Systems Manager for operational management.
Why candidates choose this
Candidates may confuse Parameter Store with Secrets Manager because both can store secrets, but they overlook that Parameter Store lacks built-in automatic rotation, which is a key requirement in the question.
✗AWS Identity and Access Management (IAM) rolesWrong answer — click to see why▾
Why this is wrong here
IAM roles cannot store or rotate database credentials; they provide temporary permissions for AWS API actions, not authentication credentials for RDS MySQL. The question requires a managed service for storing and rotating database credentials, which IAM roles do not support.
★ When this WOULD be the correct answer
A correct scenario would be: 'A company runs an application on EC2 that needs to access an S3 bucket. The security team wants to avoid storing AWS access keys on the EC2 instance. Which AWS feature should they use?' In that case, an IAM role attached to the EC2 instance would provide temporary credentials for API access.
Why candidates choose this
Candidates may confuse IAM roles with credential management because IAM roles can provide temporary credentials for AWS services, but they do not manage or rotate database passwords for RDS.
✗AWS Key Management Service (AWS KMS)Wrong answer — click to see why▾
Why this is wrong here
AWS KMS is a key management service for encryption keys, not a service for storing or rotating database credentials. It does not provide automatic rotation of secrets like database passwords.
★ When this WOULD be the correct answer
A company needs to encrypt data at rest in an S3 bucket using a customer-managed key and must be able to rotate the key annually. AWS KMS would be the correct service to create, manage, and rotate the encryption keys.
Why candidates choose this
Candidates may confuse KMS with Secrets Manager because both involve 'keys' and 'secrets,' and KMS can be used to encrypt secrets stored elsewhere, but it does not store or rotate credentials itself.
Analysis generated from the official CLF-C02blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”
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.
- →
Security and Compliance — study guide chapter
Learn the concepts, then practise the questions
- →
Security and Compliance practice questions
Targeted practice on this topic area only
- →
All CLF-C02 questions
1,024 questions across all exam domains
- →
AWS Certified Cloud Practitioner CLF-C02 study guide
Full concept coverage aligned to exam objectives
- →
CLF-C02 practice test guide
How to use practice tests most effectively before exam day
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.
Cloud Concepts practice questions
Practise CLF-C02 questions linked to Cloud Concepts.
Security and Compliance practice questions
Practise CLF-C02 questions linked to Security and Compliance.
Cloud Technology and Services practice questions
Practise CLF-C02 questions linked to Cloud Technology and Services.
Billing, Pricing, and Support practice questions
Practise CLF-C02 questions linked to Billing, Pricing, and Support.
AWS shared responsibility model practice questions
Practise CLF-C02 questions linked to AWS shared responsibility model.
AWS IAM practice questions
Practise CLF-C02 questions linked to AWS IAM.
AWS pricing practice questions
Practise CLF-C02 questions linked to AWS pricing.
AWS support plans practice questions
Practise CLF-C02 questions linked to AWS support plans.
AWS S3 practice questions
Practise CLF-C02 questions linked to AWS S3.
AWS EC2 practice questions
Practise CLF-C02 questions linked to AWS EC2.
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 →
Keep practising
More CLF-C02 practice questions
- A company publishes a message each time a new product is added to its catalogue. Three services need to receive this mes…
- A media company stores frequently accessed video thumbnails in Amazon S3. The thumbnails are read multiple times every d…
- A company needs a service to translate domain names (like www.example.com) into IP addresses, check the health of their…
- A startup runs an application on AWS and receives a monthly bill that charges exactly for the number of compute hours us…
- A financial institution runs its core banking application on-premises due to regulatory requirements. It has connected i…
- A company wants to run a MySQL database in AWS without managing database software installation, applying patches, settin…
Last reviewed: Jun 11, 2026
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.
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.
Sign in to join the discussion.