Courseiva
DeploymenteasyMultiple ChoiceObjective-mapped

DVA-C02 Deployment Practice Question

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?

⚠ Common exam trap

Watch out — candidates often 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.

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.

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

    Creating an Amazon RDS database instance separately and configuring the application to connect to it is a best practice for decoupling the database from the application's environment. This approach ensures that the database's lifecycle, including scaling, backups, and patching, is independent of the Elastic Beanstalk environment. This prevents accidental data loss if the Beanstalk environment is terminated or rebuilt, providing greater data persistence and operational flexibility.

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

    Why it's wrong here

    Using the Elastic Beanstalk console to add an RDS database directly to the environment tightly couples the database's lifecycle to that specific Beanstalk environment. If the Elastic Beanstalk environment is terminated, rebuilt, or updated in certain ways, the associated RDS instance may also be terminated, leading to potential data loss. This method is generally discouraged for production applications requiring persistent data.

  • Use an S3 bucket to store data.

    Why it's wrong here

    Amazon S3 is an object storage service, designed for storing static files, backups, and large unstructured data, not for transactional data or complex querying typically required by applications. It lacks the indexing, querying capabilities, and transactional integrity features inherent in relational or NoSQL databases. Therefore, S3 is an inappropriate choice for an application's primary data store that needs database functionalities.

  • Use Amazon DynamoDB as the database.

    Why it's wrong here

    Amazon DynamoDB is a NoSQL, key-value, and document database service, fundamentally different from a relational database. If the application's data model requires structured tables, complex joins, or ACID transaction properties, DynamoDB would be an unsuitable choice. Most traditional web applications deployed on Elastic Beanstalk are designed to interact with relational databases for their primary data storage needs.

About these practice questions

One of 724 original DVA-C02 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

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.