SOA-C02 Security and Compliance Practice Question
A company wants to securely store secrets such as database credentials and API keys used by applications running on Amazon EC2. Which AWS service should be used to manage and rotate these secrets automatically?
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 designed to manage secrets, including automatic rotation. Option A is wrong because IAM is for AWS user credentials and permissions, not for storing application secrets. Option C is wrong because AWS KMS is for encryption keys, not secrets management. Option D is wrong because AWS Systems Manager Parameter Store can store secrets but does not support automatic rotation natively (requires custom Lambda).
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 Identity and Access Management (IAM)
Why it's wrong here
AWS Identity and Access Management (IAM) governs identities, authentication, and authorization for AWS APIs, including users, groups, roles, and policies. It is not designed to store application secrets such as database passwords; IAM credentials are for accessing AWS APIs, not for use by an application to authenticate to an external database. While IAM can enable database authentication for some services (e.g., RDS IAM authentication) by eliminating passwords, it still does not store arbitrary secret values, and attempting to use IAM as a secrets manager would violate its security model and provide no mechanism for secret rotation or access auditing at the secret level.
- ✓
AWS Secrets Manager
Why this is correct
AWS Secrets Manager is a purpose-built service for securely storing and managing database credentials, API keys, and other secrets throughout their lifecycle. It natively supports automatic rotation, either through built-in integration with AWS services like RDS, Redshift, and DocumentDB, or via custom AWS Lambda rotations. Unlike generic parameter storage, Secrets Manager enforces fine-grained IAM access policies and provides audit trails via AWS CloudTrail, making it the recommended choice for production secrets that require rotation and regulated access.
- ✗
AWS Key Management Service (KMS)
Why it's wrong here
AWS Key Management Service (KMS) is a key management system that creates and controls customer master keys for cryptographic operations, not a secret storage service. KMS can encrypt data, including secrets, but the resulting ciphertext must be stored somewhere else (e.g., a file or Parameter Store). It does not provide a native interface to store and retrieve plaintext secrets on demand, nor does it support secret versioning or rotation of secret values; its role is to protect encryption keys and perform cryptographic operations, not act as a secrets repository.
- ✗
AWS Systems Manager Parameter Store
Why it's wrong here
AWS Systems Manager Parameter Store can store secrets as 'SecureString' parameters encrypted with AWS KMS, making it a low-cost alternative for simple secret storage. However, Parameter Store lacks native automatic rotation—rotating a secret requires building a custom AWS Lambda function and scheduling it to update the parameter value. It also does not have built-in integrations with database services for automated credential rotation, and its versioning and access audit capabilities are more limited than those offered by Secrets Manager, making it a poor fit for environments requiring regular, automated rotation.
Quick reference
Cloud Service Model Comparison
| Model | You Manage | Provider Manages | Examples |
|---|---|---|---|
| IaaS | OS, runtime, apps, data | Hardware, hypervisor, networking | EC2, Azure VMs, GCP Compute Engine |
| PaaS | Apps and data | OS, runtime, middleware, hardware | Elastic Beanstalk, Azure App Service |
| SaaS | Data and settings only | Everything else | Microsoft 365, Salesforce, Workday |
| FaaS / Serverless | Function code only | Infra, scaling, runtime | Lambda, Azure Functions, Cloud Run |
| CaaS | Containers and apps | Kubernetes, OS, hardware | EKS, AKS, GKE |
Go deeper
Related to this question
About these practice questions
One of 247 original SOA-C02 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This SOA-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 SOA-C02 exam.