exam questions

Exam AWS Certified Database - Specialty All Questions

View all questions & answers for the AWS Certified Database - Specialty exam

Exam AWS Certified Database - Specialty topic 1 question 159 discussion

Exam question from Amazon's AWS Certified Database - Specialty
Question #: 159
Topic #: 1
[All AWS Certified Database - Specialty Questions]

A database specialist is creating an AWS CloudFormation stack. The database specialist wants to prevent accidental deletion of an Amazon RDS
ProductionDatabase resource in the stack.
Which solution will meet this requirement?

  • A. Create a stack policy to prevent updates. Include ג€Effectג€ : ג€ProductionDatabaseג€ and ג€Resourceג€ : ג€Denyג€ in the policy.
  • B. Create an AWS CloudFormation stack in XML format. Set xAttribute as false.
  • C. Create an RDS DB instance without the DeletionPolicy attribute. Disable termination protection.
  • D. Create a stack policy to prevent updates. Include ג€Effectג€ : ג€Denyג€ and ג€Resourceג€ : ג€ProductionDatabaseג€ in the policy.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
james90
Highly Voted 3 years, 4 months ago
The answer is D. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/protect-stack-resources.html "When you set a stack policy, all resources are protected by default. To allow updates on all resources, we add an Allow statement that allows all actions on all resources. Although the Allow statement specifies all resources, the explicit Deny statement overrides it for the resource with the ProductionDatabase logical ID. This Deny statement prevents all update actions, such as replacement or deletion, on the ProductionDatabase resource."
upvoted 7 times
...
Pranava_GCP
Most Recent 1 year, 7 months ago
Selected Answer: D
D. Create a stack policy to prevent updates. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/protect-stack-resources.html#:~:text=The%20following%20example%20stack%20policy%20prevents%20updates%20to%20the%20ProductionDatabase%20resource%3A
upvoted 1 times
...
Kirrr
2 years, 3 months ago
Can someone please explain what's the difference option A and D? I see DENY in both the options.
upvoted 1 times
thetachi
2 years, 1 month ago
effect only takes two values: allow or deny.
upvoted 1 times
...
...
novice_expert
3 years ago
Selected Answer: D
stack policy Effect: DENY Resource: <ARN of the Production Database>
upvoted 2 times
...
RotterDam
3 years, 2 months ago
Got this question in my exam. (i cleared it). D is correct
upvoted 2 times
...
RotterDam
3 years, 2 months ago
Selected Answer: D
Can barely read the answers but the correct answer is (D) Effect: DENY Resource: <ARN of the Production Database>
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago