- A
Update the application code directly on the EC2 instances without redeploying the environment.
Why wrong: Manual updates on EC2 instances are not managed, break environment consistency, and are not a recommended deployment practice.
- B
Create a new environment configuration, update the code, and swap the CNAME of the environments.
Why wrong: CNAME swap allows zero-downtime deployment, but the database is still part of the environment. Any changes to the database configuration in the new environment could affect the database.
- C
Decouple the database from the Elastic Beanstalk environment by creating a separate RDS instance and connecting the application to it externally.
By creating an independent RDS instance and configuring the Elastic Beanstalk environment to connect to it via environment properties, the database is unaffected by application updates or environment changes.
- D
Use Elastic Beanstalk's platform updates while keeping the database attached to the environment.
Why wrong: Platform updates affect the entire environment, including the database if it is part of the environment. The database remains at risk during updates.
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. A key principle to apply: decoupled RDS instances have an independent lifecycle from Elastic Beanstalk environments.. 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 developer is using AWS Elastic Beanstalk to deploy a web application. The application uses an Amazon RDS database instance that is included in the Elastic Beanstalk environment. The developer wants to update the application code without affecting the database. What is the recommended approach?
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
Decouple the database from the Elastic Beanstalk environment by creating a separate RDS instance and connecting the application to it externally.
Option C is correct because when an RDS instance is included in an Elastic Beanstalk environment, it is tied to the environment's lifecycle. If the environment is terminated or rebuilt, the database is also deleted. Decoupling the database by creating a standalone RDS instance and connecting the application to it externally ensures the database persists independently of application deployments, allowing code updates without risking data loss.
Key principle: Decoupled RDS instances have an independent lifecycle from Elastic Beanstalk environments.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Update the application code directly on the EC2 instances without redeploying the environment.
Why it's wrong here
Manual updates on EC2 instances are not managed, break environment consistency, and are not a recommended deployment practice.
- ✗
Create a new environment configuration, update the code, and swap the CNAME of the environments.
Why it's wrong here
CNAME swap allows zero-downtime deployment, but the database is still part of the environment. Any changes to the database configuration in the new environment could affect the database.
- ✓
Decouple the database from the Elastic Beanstalk environment by creating a separate RDS instance and connecting the application to it externally.
Why this is correct
By creating an independent RDS instance and configuring the Elastic Beanstalk environment to connect to it via environment properties, the database is unaffected by application updates or environment changes.
Related concept
Decoupled RDS instances have an independent lifecycle from Elastic Beanstalk environments.
- ✗
Use Elastic Beanstalk's platform updates while keeping the database attached to the environment.
Why it's wrong here
Platform updates affect the entire environment, including the database if it is part of the environment. The database remains at risk during updates.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates assume swapping CNAMEs between environments (blue/green deployment) is sufficient to protect the database, but they overlook that the database is still lifecycle-managed within each environment and will be lost if the original environment is terminated.
Detailed technical explanation
How to think about this question
When an RDS instance is created within an Elastic Beanstalk environment, it uses a CloudFormation stack that ties the DB instance's deletion policy to the environment's termination. Decoupling involves creating a separate RDS instance, updating the application's environment properties (e.g., RDS_HOSTNAME, RDS_PORT) to point to the new instance, and removing the database from the Elastic Beanstalk configuration. This allows zero-downtime deployments and independent scaling of the database and application tiers.
KKey Concepts to Remember
- Decoupled RDS instances have an independent lifecycle from Elastic Beanstalk environments.
- Elastic Beanstalk applications connect to external RDS via environment variables.
- Prevents data loss and downtime during environment termination or recreation.
- Allows multiple Elastic Beanstalk environments to share the same database instance.
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
Decoupled RDS instances have an independent lifecycle from Elastic Beanstalk environments.
Real-world example
How this comes up in practice
A cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. Decoupled RDS instances have an independent lifecycle from Elastic Beanstalk environments. Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.
What to study next
Got this wrong? Here's your next step.
Review decoupled RDS instances have an independent lifecycle from Elastic Beanstalk environments., then practise related DVA-C02 questions on the same topic to reinforce the concept.
- →
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 — Decoupled RDS instances have an independent lifecycle from Elastic Beanstalk environments..
What is the correct answer to this question?
The correct answer is: Decouple the database from the Elastic Beanstalk environment by creating a separate RDS instance and connecting the application to it externally. — Option C is correct because when an RDS instance is included in an Elastic Beanstalk environment, it is tied to the environment's lifecycle. If the environment is terminated or rebuilt, the database is also deleted. Decoupling the database by creating a standalone RDS instance and connecting the application to it externally ensures the database persists independently of application deployments, allowing code updates without risking data loss.
What should I do if I get this DVA-C02 question wrong?
Review decoupled RDS instances have an independent lifecycle from Elastic Beanstalk environments., then practise related DVA-C02 questions on the same topic to reinforce the concept.
What is the key concept behind this question?
Decoupled RDS instances have an independent lifecycle from Elastic Beanstalk environments.
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 DVA-C02 practice questions
- A developer is troubleshooting an AWS Lambda function that is triggered by an S3 event. The function occasionally fails…
- A developer needs to call AWS APIs from application code running on EC2. Which credential source should the AWS SDK use…
- A developer needs to allow an IAM user in a different AWS account to assume a role in the developer's account. The role…
- A developer needs to grant an IAM role in Account B read-only access to objects in an S3 bucket in Account A. The bucket…
- An API Gateway HTTP API should allow access only to users authenticated by an external OIDC provider. Which authorizer t…
- A developer monitors an AWS Lambda function that processes messages from an Amazon SQS queue. CloudWatch logs show that…
Last reviewed: Jun 11, 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.