- A
Store the secrets in AWS Secrets Manager and reference them in the ECS task definition.
Secrets Manager provides encryption, rotation, and ECS integration.
- B
Store the configuration data in an S3 bucket with server-side encryption (SSE-S3) and download it at container startup.
Why wrong: This approach lacks automatic rotation and requires custom code to fetch secrets.
- C
Store the secrets in AWS Systems Manager Parameter Store (SecureString) and reference them in the ECS task definition.
Why wrong: While Parameter Store is similar, Secrets Manager is the recommended service for secrets.
- D
Store the configuration data in environment variables in the ECS task definition.
Why wrong: Environment variables are not encrypted at rest.
Quick Answer
The correct solution is to store the secrets in AWS Secrets Manager and reference them in the ECS task definition. This approach is best because Secrets Manager encrypts the database connection strings at rest using AWS KMS, supports automatic secret rotation, and integrates natively with ECS Fargate through the task definition’s `secrets` parameter, which injects the value into the container at runtime without exposing it in plaintext. On the AWS Certified Solutions Architect Professional SAP-C02 exam, this scenario tests your understanding of the difference between AWS Secrets Manager and Systems Manager Parameter Store—a common trap is choosing Parameter Store, which lacks built-in rotation and is not the recommended service for sensitive secrets like database credentials. Remember the memory tip: “Secrets Manager for secrets, Parameter Store for configs.”
SAP-C02 Design for New Solutions Practice Question
This SAP-C02 practice question tests your understanding of design for new solutions. 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. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. 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 is designing a new application that will be deployed on Amazon ECS with Fargate launch type. The application needs to store configuration data, including database connection strings, that must be encrypted at rest. The company wants to follow best practices for managing secrets. Which solution should the company use?
Clue words in this question
Noticing these words before you look at the options changes how you read each choice.
Clue:
"best"Why it matters: Signals that multiple options may be partially correct. Choose the option that most directly solves the exact problem described, not the one that sounds most complete.
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
Store the secrets in AWS Secrets Manager and reference them in the ECS task definition.
AWS Secrets Manager is the recommended service for storing sensitive configuration data like database connection strings because it provides built-in encryption at rest using AWS KMS, automatic secret rotation, and fine-grained access control. ECS task definitions can reference Secrets Manager secrets directly using the 'secrets' parameter, which injects the secret value into the container at runtime without exposing it in plaintext. This approach follows AWS best practices for managing secrets by avoiding hard-coded values and leveraging a dedicated secrets management service.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
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 secrets in AWS Secrets Manager and reference them in the ECS task definition.
Why this is correct
Secrets Manager provides encryption, rotation, and ECS integration.
Clue confirmation
The clue word "best" in the question point toward this answer.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
Store the configuration data in an S3 bucket with server-side encryption (SSE-S3) and download it at container startup.
Why it's wrong here
This approach lacks automatic rotation and requires custom code to fetch secrets.
- ✗
Store the secrets in AWS Systems Manager Parameter Store (SecureString) and reference them in the ECS task definition.
Why it's wrong here
While Parameter Store is similar, Secrets Manager is the recommended service for secrets.
- ✗
Store the configuration data in environment variables in the ECS task definition.
Why it's wrong here
Environment variables are not encrypted at rest.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates often choose Systems Manager Parameter Store (Option C) because it is cheaper and also supports SecureString, but they overlook that AWS Secrets Manager is the specifically recommended service for secrets that require rotation and tighter integration with ECS, especially for database credentials.
Trap categories for this question
Similar concept trap
While Parameter Store is similar, Secrets Manager is the recommended service for secrets.
Detailed technical explanation
How to think about this question
Under the hood, when you reference a Secrets Manager secret in an ECS task definition, the ECS agent retrieves the secret value using the AWS KMS-decrypted secret and injects it into the container's environment variables or as a file in a mounted volume. The secret is never stored in the task definition itself; instead, the task definition contains a reference ARN. This mechanism ensures that the secret is only accessible to the container at runtime and can be rotated without redeploying the task definition, as long as the task is restarted to pick up the new value.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
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
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
Design for New Solutions — study guide chapter
Learn the concepts, then practise the questions
- →
Design for New Solutions practice questions
Targeted practice on this topic area only
- →
All SAP-C02 questions
1,746 questions across all exam domains
- →
AWS Certified Solutions Architect Professional SAP-C02 study guide
Full concept coverage aligned to exam objectives
- →
SAP-C02 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related SAP-C02 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Design Solutions for Organizational Complexity practice questions
Practise SAP-C02 questions linked to Design Solutions for Organizational Complexity.
Design for New Solutions practice questions
Practise SAP-C02 questions linked to Design for New Solutions.
Continuous Improvement for Existing Solutions practice questions
Practise SAP-C02 questions linked to Continuous Improvement for Existing Solutions.
Accelerate Workload Migration and Modernization practice questions
Practise SAP-C02 questions linked to Accelerate Workload Migration and Modernization.
SAA-C03 VPC practice questions
Practise SAP-C02 questions linked to SAA-C03 VPC.
SAA-C03 S3 lifecycle policy questions
Practise SAP-C02 questions linked to SAA-C03 S3 lifecycle policy questions.
SAA-C03 RDS Multi-AZ questions
Practise SAP-C02 questions linked to SAA-C03 RDS Multi-AZ questions.
SAA-C03 IAM policy practice questions
Practise SAP-C02 questions linked to SAA-C03 IAM policy.
SAA-C03 Route 53 failover questions
Practise SAP-C02 questions linked to SAA-C03 Route 53 failover questions.
SAA-C03 CloudFront practice questions
Practise SAP-C02 questions linked to SAA-C03 CloudFront.
SAA-C03 NAT gateway questions
Practise SAP-C02 questions linked to SAA-C03 NAT gateway questions.
SAA-C03 VPC endpoint questions
Practise SAP-C02 questions linked to SAA-C03 VPC endpoint questions.
Practice this exam
Start a free SAP-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 SAP-C02 question test?
Design for New Solutions — This question tests Design for New Solutions — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Store the secrets in AWS Secrets Manager and reference them in the ECS task definition. — AWS Secrets Manager is the recommended service for storing sensitive configuration data like database connection strings because it provides built-in encryption at rest using AWS KMS, automatic secret rotation, and fine-grained access control. ECS task definitions can reference Secrets Manager secrets directly using the 'secrets' parameter, which injects the secret value into the container at runtime without exposing it in plaintext. This approach follows AWS best practices for managing secrets by avoiding hard-coded values and leveraging a dedicated secrets management service.
What should I do if I get this SAP-C02 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
Are there clue words in this question I should notice?
Yes — watch for: "best". Signals that multiple options may be partially correct. Choose the option that most directly solves the exact problem described, not the one that sounds most complete.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
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 →
Last reviewed: Jun 11, 2026
This SAP-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 SAP-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.