exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 392 discussion

A developer received the following error message during an AWS CloudFormation deployment:

DELETE_FAILED (The following resource(s) failed to delete: [ASGInstanceRole12345678].)

Which action should the developer take to resolve this error?

  • A. Contact AWS Support to report an issue with the Auto Scaling Groups (ASG) service.
  • B. Add a DependsOn attribute to the ASGInstanceRole12345678 resource in the CloudFormation template. Then delete the stack.
  • C. Modify the CloudFormation template to retain the ASGInstanceRole12345678 resource. Then manually delete the resource after deployment.
  • D. Add a force parameter when calling CloudFormation with the role-arn of ASGInstanceRole12345678.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
preachr
6 months, 3 weeks ago
Selected Answer: C
If you are unable to automatically resolve the issue through CloudFormation, you may need to manually delete the IAM role. Go to the IAM console, locate the role (ASGInstanceRole12345678), and manually delete any attached policies or instance profiles. Then, delete the role manually. After manually deleting the role, you can retry the stack deletion process in CloudFormation.
upvoted 1 times
...
albert_kuo
6 months, 3 weeks ago
Selected Answer: C
Resources: ASGInstanceRole12345678: Type: AWS::IAM::Role DeletionPolicy: Retain
upvoted 1 times
...
cachac
10 months ago
Selected Answer: C
Manually delete the ASGInstanceRole12345678 resource if it is no longer needed.
upvoted 2 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