DBS-C01 Management and Operations Practice Question
Exhibit
Refer to the exhibit.
-- CloudFormation template snippet:
Resources:
MyDBInstance:
Type: AWS::RDS::DBInstance
Properties:
DBInstanceClass: db.r5.large
Engine: MySQL
MultiAZ: true
DBName: mydb
MasterUsername: admin
MasterUserPassword: mypassword
DBSubnetGroupName: !Ref MyDBSubnetGroup
VPCSecurityGroups:
- !Ref MySecurityGroup
StorageType: gp2
AllocatedStorage: 100Refer to the exhibit. A DBA deploys this CloudFormation stack. After creation, the DBA needs to enable deletion protection for the DB instance. Which modification to the template would accomplish this?
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
✓
Add 'DeletionProtection': true to the Properties.
Adding 'DeletionProtection': true to the Properties of the AWS::RDS::DBInstance resource enables deletion protection for that DB instance. Option B is incorrect because 'DeletionPolicy: Retain' is a CloudFormation resource-level attribute that retains the resource when the stack is deleted, but it does not prevent deletion of the resource outside of CloudFormation. Option C is incorrect because 'PreventRDSDeletion' is not a valid property for RDS. Option D is incorrect because the correct syntax is 'DeletionProtection': true, not 'Enabled'.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Add 'DeletionProtection': true to the Properties.
Why this is correct
Correct property to enable deletion protection.
- ✗
Add 'DeletionPolicy: Retain' to the resource.
Why it's wrong here
DeletionPolicy is for CloudFormation stack deletion, not RDS deletion protection.
- ✗
Add 'PreventRDSDeletion: true' to the Properties.
Why it's wrong here
Invalid property name.
- ✗
Add 'DeletionProtection': 'Enabled' to the Properties.
Why it's wrong here
The value should be boolean true, not string.
Go deeper
Related to this question
About these practice questions
This DBS-C01 question is part of Courseiva's 1,663-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This DBS-C01 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 DBS-C01 exam.