- A
Read the connection string from Amazon RDS tags.
Why wrong: Tags are not meant for secrets and are not injected into the application.
- B
Use AWS Secrets Manager.
Secrets Manager is designed for managing secrets.
- C
Use Elastic Beanstalk environment properties.
Environment properties are injected as environment variables.
- D
Store the connection string in a configuration file in the application bundle.
Why wrong: Storing secrets in the bundle is insecure.
- E
Use AWS Systems Manager Parameter Store.
Parameter Store can store encrypted strings.
Quick Answer
The correct methods are environment properties, AWS Systems Manager Parameter Store, and AWS Secrets Manager. These three approaches allow you to pass a secure database connection string in Elastic Beanstalk without hard-coding it into your application code, because each provides a separate, managed layer for injecting sensitive values at runtime. On the AWS Certified Developer Associate DVA-C02 exam, this question tests your understanding of how to decouple configuration from code using AWS-native services—a core principle of the twelve-factor app methodology. A common trap is assuming that RDS tags or a file in the deployment package are secure, but tags are metadata not designed for secrets, and any file in the bundle can be read by anyone with access to the source. Remember the mnemonic "ESP" for Environment properties, Systems Manager Parameter Store, and Secrets Manager—three secure paths, not the package or the tag.
DVA-C02 Deployment Practice Question
This DVA-C02 practice question tests your understanding of deployment. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. 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 uses AWS Elastic Beanstalk to deploy a web application. The application uses an Amazon RDS database. The developer wants to ensure that the database connection string is not hard-coded in the application code. Which THREE methods can the developer use to pass the connection string securely? (Choose THREE.)
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.
Options A, B, and D are correct. A: Environment properties in Elastic Beanstalk are injected into the application. B: AWS Systems Manager Parameter Store provides secure, encrypted storage. D: AWS Secrets Manager is designed for secrets like database credentials. Option C is wrong because the application code should not read from RDS tags; tags are not intended for sensitive data. Option E is wrong because putting the connection string in a file in the deployment package is not secure.
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.
- ✗
Read the connection string from Amazon RDS tags.
Why it's wrong here
Tags are not meant for secrets and are not injected into the application.
- ✓
Use AWS Secrets Manager.
Why this is correct
Secrets Manager is designed for managing secrets.
Related concept
Read the scenario before looking for a memorised answer.
- ✓
Use Elastic Beanstalk environment properties.
Why this is correct
Environment properties are injected as environment variables.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
Store the connection string in a configuration file in the application bundle.
Why it's wrong here
Storing secrets in the bundle is insecure.
- ✓
Use AWS Systems Manager Parameter Store.
Why this is correct
Parameter Store can store encrypted strings.
Related concept
Read the scenario before looking for a memorised answer.
Common exam traps
Common exam trap: answer the scenario, not the keyword
Many certification questions include familiar terms but test a specific constraint. Read the exact wording before choosing an answer that is generally true but wrong for this case.
Detailed technical explanation
How to think about this question
This question should be treated as a scenario, not a definition check. Identify the problem, the constraint and the best action. Then compare each option against those facts.
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.
- Use explanations to understand the rule behind the answer.
TExam Day Tips
- Underline the problem statement mentally.
- 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 DVA-C02 exam domain this question belongs to, then review the specific concept being tested. Practise related questions in that domain and focus on understanding why each wrong answer is tempting — not just why the correct answer is right.
- →
Deployment — study guide chapter
Learn the concepts, then practise the questions
- →
Deployment practice questions
Targeted practice on this topic area only
- →
All DVA-C02 questions
1,616 questions across all exam domains
- →
AWS Certified Developer Associate DVA-C02 study guide
Full concept coverage aligned to exam objectives
- →
DVA-C02 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related DVA-C02 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Development with AWS Services practice questions
Practise DVA-C02 questions linked to Development with AWS Services.
Security practice questions
Practise DVA-C02 questions linked to Security.
Deployment practice questions
Practise DVA-C02 questions linked to Deployment.
Troubleshooting and Optimization practice questions
Practise DVA-C02 questions linked to Troubleshooting and Optimization.
DVA-C02 fundamentals practice questions
Practise DVA-C02 questions linked to DVA-C02 fundamentals.
DVA-C02 scenario practice questions
Practise DVA-C02 questions linked to DVA-C02 scenario.
DVA-C02 troubleshooting practice questions
Practise DVA-C02 questions linked to DVA-C02 troubleshooting.
Practice this exam
Start a free DVA-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 DVA-C02 question test?
Deployment — This question tests Deployment — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Use AWS Secrets Manager. — Options A, B, and D are correct. A: Environment properties in Elastic Beanstalk are injected into the application. B: AWS Systems Manager Parameter Store provides secure, encrypted storage. D: AWS Secrets Manager is designed for secrets like database credentials. Option C is wrong because the application code should not read from RDS tags; tags are not intended for sensitive data. Option E is wrong because putting the connection string in a file in the deployment package is not secure.
What should I do if I get this DVA-C02 question wrong?
Identify which DVA-C02 exam domain this question belongs to, then review the specific concept being tested. Practise related questions in that domain and focus on understanding why each wrong answer is tempting — not just why the correct answer is right.
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 →
Same concept, more angles
2 more ways this is tested on DVA-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 is deploying a Node.js application on AWS Elastic Beanstalk. The application uses environment variables for configuration. The development team wants to ensure that the environment variables are not exposed in the source code or in the deployment logs. Which TWO actions should the team take? (Choose TWO.)
medium- A.Enable detailed logging for the Elastic Beanstalk environment and filter out sensitive data.
- B.Set environment variables using Elastic Beanstalk environment properties in the console.
- ✓ C.Store sensitive environment variables in AWS Systems Manager Parameter Store and retrieve them at runtime.
- ✓ D.Use AWS Secrets Manager to manage secrets and reference them in the application code.
- E.Embed the environment variables in the application package as a .env file.
Why C: Options A and D are correct: Using AWS Systems Manager Parameter Store or Secrets Manager to store environment variables and retrieving them at runtime prevents exposure. Option B (environment properties) stores them in plaintext in the environment configuration. Option C (logging) is not relevant. Option E (environment variables in source) is bad practice.
Variation 2. A developer is using AWS Elastic Beanstalk to deploy a Node.js application. The application requires an environment variable that contains a secret (e.g., a database password). The developer wants to store the secret securely and make it available to the application instances. Which Elastic Beanstalk feature should be used?
medium- A.Store the secret in an environment property with the value set in plaintext.
- ✓ B.Use the AWS Secrets Manager integration in Elastic Beanstalk.
- C.Use an .ebextensions configuration file to set the environment variable.
- D.Use Elastic Beanstalk platform hooks to retrieve the secret at startup.
Why B: AWS Elastic Beanstalk has a native integration with AWS Secrets Manager that allows you to retrieve secrets and inject them as environment variables into your application instances without exposing the secret in plaintext. This integration handles the secure retrieval and rotation of secrets automatically, making it the correct choice for securely storing and accessing a database password.
Last reviewed: Jun 20, 2026
This DVA-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 DVA-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.