Question 545 of 1,616
DeploymentmediumMultiple ChoiceObjective-mapped

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?

Question 1mediummultiple choice
Full question →

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.

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.

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 →

How Courseiva writes practice questions · Editorial policy

Keep practising

More DVA-C02 practice questions

Last reviewed: Jun 11, 2026

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.

Loading comments…

Sign in to join the discussion.

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.