Question 490 of 1,616
DeploymenteasyMultiple ChoiceObjective-mapped

Quick Answer

The answer is to create an Amazon RDS database instance separately and configure the application to connect to it, as this is the best practice for managing a relational database in Elastic Beanstalk. Decoupling the database from the Elastic Beanstalk environment ensures the database persists independently of the application lifecycle, meaning it won’t be deleted when the environment is terminated, and it gives you full control over backups, scaling, and maintenance. On the AWS Certified Developer Associate DVA-C02 exam, this concept tests your understanding of production-grade architecture versus quick-start convenience—a common trap is assuming you should add a database directly inside the Elastic Beanstalk environment, which ties its fate to the app. Remember the memory tip: “Separate the data from the deploy” to avoid accidental data loss.

DVA-C02 Deployment 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. 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 wants to deploy an application using AWS Elastic Beanstalk. The application requires a relational database. What is the BEST practice for managing the database?

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.

Question 1easymultiple 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

Create an Amazon RDS database instance separately and configure the application to connect to it.

The best practice for managing a relational database in Elastic Beanstalk is to decouple the database from the application lifecycle by creating an Amazon RDS instance separately. This ensures the database is not deleted when the Elastic Beanstalk environment is terminated, provides better control over backups, scaling, and maintenance, and allows the application to connect via environment variables or configuration files. Using a separate RDS instance aligns with production best practices for durability and operational flexibility.

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.

  • Create an Amazon RDS database instance separately and configure the application to connect to it.

    Why this is correct

    Decouples database from environment.

    Clue confirmation

    The clue word "best" in the question point toward this answer.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Use the Elastic Beanstalk console to add an RDS database to the environment.

    Why it's wrong here

    Ties database to environment lifecycle.

  • Use an S3 bucket to store data.

    Why it's wrong here

    Not a database.

  • Use Amazon DynamoDB as the database.

    Why it's wrong here

    Not relational.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates assume the integrated RDS option in Elastic Beanstalk is the simplest and therefore best approach, but the exam tests the understanding that decoupling the database from the environment lifecycle is the production best practice to avoid accidental data loss.

Detailed technical explanation

How to think about this question

When you decouple RDS from Elastic Beanstalk, you typically configure the application to read the database endpoint, port, and credentials from environment properties (e.g., RDS_HOSTNAME, RDS_PORT) set in the Elastic Beanstalk environment or from AWS Secrets Manager. Under the hood, the application uses standard JDBC or ODBC connections over TCP port 3306 (MySQL/MariaDB) or 5432 (PostgreSQL), and the security group of the RDS instance must allow inbound traffic from the Elastic Beanstalk environment's security group. A real-world scenario where this matters is when performing blue/green deployments: the separate RDS instance persists data across environment swaps, avoiding data loss or downtime.

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.

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 — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Create an Amazon RDS database instance separately and configure the application to connect to it. — The best practice for managing a relational database in Elastic Beanstalk is to decouple the database from the application lifecycle by creating an Amazon RDS instance separately. This ensures the database is not deleted when the Elastic Beanstalk environment is terminated, provides better control over backups, scaling, and maintenance, and allows the application to connect via environment variables or configuration files. Using a separate RDS instance aligns with production best practices for durability and operational flexibility.

What should I do if I get this DVA-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 →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 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 web application on AWS Elastic Beanstalk. The application requires a relational database. The company wants to decouple the database lifecycle from the environment lifecycle. Which TWO steps should the company take to achieve this? (Choose TWO.)

medium
  • A.Use Amazon DynamoDB instead of Amazon RDS
  • B.Create an Amazon RDS DB instance outside of Elastic Beanstalk
  • C.Add an Amazon RDS DB instance to the Elastic Beanstalk environment using the Elastic Beanstalk console
  • D.Configure the Elastic Beanstalk environment to use environment properties to pass the DB connection string
  • E.Create a separate Elastic Beanstalk environment for the database

Why B: Option B is correct because creating an Amazon RDS DB instance outside of Elastic Beanstalk decouples the database lifecycle from the environment lifecycle. This means the database can be retained, modified, or terminated independently of the Elastic Beanstalk environment, preventing data loss when the environment is terminated or recreated. The application can then connect to the external RDS instance via environment properties passed to the EC2 instances.

Keep practising

More DVA-C02 practice questions

Last reviewed: Jun 24, 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.