AWS Certified Developer – Associate (DVA-C02) — Question 205
A developer is creating an AWS CloudFormation stack. The stack contains IAM resources with custom names. When the developer tries to deploy the stack, they receive an InsufficientCapabilities error.
What should the developer do to resolve this issue?
Answer options
- A. Specify the CAPABILITY_AUTO_EXPAND capability in the CloudFormation stack.
- B. Use an administrators role to deploy IAM resources with CloudFormation.
- C. Specify the CAPABILITY_IAM capability in the CloudFormation stack.
- D. Specify the CAPABILITY_NAMED_IAM capability in the CloudFormation stack.
Correct answer: D
Explanation
The correct answer is D because specifying the CAPABILITY_NAMED_IAM capability allows the CloudFormation stack to create IAM resources with custom names. Options A and C do not address the issue related to named IAM resources, while option B is not necessary as the required capability can resolve the error without needing a specific role.