DVA-C02 Development with AWS Services Practice Question
A developer is deploying an application using AWS Elastic Beanstalk. The application requires a relational database. Which THREE components are created by Elastic Beanstalk when you add a database to your environment?
⚠ Common exam trap
The trap is that candidates often think only the RDS instance and security group are created, but Elastic Beanstalk also creates a DB subnet group. Many also incorrectly believe a CloudFormation stack is created at that point, but it already exists.
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
✓
A DB subnet group
When you add a database to an Elastic Beanstalk environment, Elastic Beanstalk automatically creates a DB subnet group, an Amazon RDS DB instance, and a security group for the database. The CloudFormation stack is already created as part of the environment's infrastructure, not specifically when adding the database. DynamoDB is not used for relational databases.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
A DB subnet group
Why this is correct
Correct. Elastic Beanstalk creates a DB subnet group to define which subnets the RDS instance can be placed in.
- ✓
An Amazon RDS DB instance
Why this is correct
Elastic Beanstalk provisions an RDS instance.
- ✗
An AWS CloudFormation stack
Why it's wrong here
Incorrect. The CloudFormation stack already exists for the environment; it is not created when adding a database.
- ✗
An Amazon DynamoDB table
Why it's wrong here
DynamoDB is not a relational database; Elastic Beanstalk uses RDS for relational databases.
- ✓
A security group for the database
Why this is correct
A security group is created to control access to the DB.
Visual reference
Go deeper
Related to this question
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 →
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.