Question 1,257 of 1,616
DeploymentmediumMultiple ChoiceObjective-mapped

DVA-C02 Elastic Beanstalk-managed RDS Practice Question

This DVA-C02 practice question tests your understanding of deployment. 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. A key principle to apply: elastic Beanstalk-managed RDS. 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 requires a relational database. The developer wants to ensure that the database is not accidentally deleted when the Elastic Beanstalk environment is terminated. Which approach should the developer take?

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

Create the RDS instance outside of Elastic Beanstalk and configure the application to connect to it using environment variables.

Option B is correct because creating the RDS instance outside of Elastic Beanstalk decouples the database lifecycle from the environment lifecycle. When the Elastic Beanstalk environment is terminated, the external RDS instance remains intact and is not deleted. The application can connect to it using environment variables configured in the Elastic Beanstalk environment, ensuring persistence of data.

Key principle: Elastic Beanstalk-managed RDS

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Create the database as part of the Elastic Beanstalk environment by adding an RDS database configuration in the .ebextensions.

    Why it's wrong here

    This ties the database to the environment, and it will be deleted when the environment is terminated.

  • Create the RDS instance outside of Elastic Beanstalk and configure the application to connect to it using environment variables.

    Why this is correct

    The database is independent of the environment lifecycle, so it will not be deleted when the environment is terminated.

    Related concept

    Elastic Beanstalk-managed RDS

  • Use an Amazon DynamoDB table instead of a relational database.

    Why it's wrong here

    DynamoDB is NoSQL; the application requires a relational database.

  • Configure a retention policy on the RDS instance within the Elastic Beanstalk environment.

    Why it's wrong here

    Elastic Beanstalk does not support retention policies for in-environment RDS instances; they are always deleted on termination.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates may assume that adding a retention policy (Option D) is possible within Elastic Beanstalk, but Elastic Beanstalk does not expose a retention policy for RDS instances created as part of the environment; the database is always deleted with the environment unless it is created externally.

Detailed technical explanation

How to think about this question

When an RDS instance is provisioned within an Elastic Beanstalk environment (via the AWS Management Console or .ebextensions), it is created as a resource of the CloudFormation stack that manages the environment. Terminating the environment triggers a stack deletion, which removes all associated resources, including the RDS instance. By creating the RDS instance externally, the developer can use environment properties (e.g., RDS_HOSTNAME, RDS_PORT, RDS_DB_NAME, RDS_USERNAME, RDS_PASSWORD) that Elastic Beanstalk automatically populates when the database is part of the environment, but these must be manually set for external databases. This decoupling is critical for production workloads where database data must survive environment updates or termination.

KKey Concepts to Remember

  • Elastic Beanstalk-managed RDS
  • External RDS instance
  • Environment variables
  • Decoupling resources

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

Elastic Beanstalk-managed RDS

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. Elastic Beanstalk-managed RDS 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 elastic Beanstalk-managed RDS, 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 — Elastic Beanstalk-managed RDS.

What is the correct answer to this question?

The correct answer is: Create the RDS instance outside of Elastic Beanstalk and configure the application to connect to it using environment variables. — Option B is correct because creating the RDS instance outside of Elastic Beanstalk decouples the database lifecycle from the environment lifecycle. When the Elastic Beanstalk environment is terminated, the external RDS instance remains intact and is not deleted. The application can connect to it using environment variables configured in the Elastic Beanstalk environment, ensuring persistence of data.

What should I do if I get this DVA-C02 question wrong?

Review elastic Beanstalk-managed RDS, then practise related DVA-C02 questions on the same topic to reinforce the concept.

What is the key concept behind this question?

Elastic Beanstalk-managed RDS

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.