AWS Certified Solutions Architect – Professional — Question 532
Which of following IAM policy elements lets you specify an exception to a list of actions?
Answer options
- A. NotException
- B. ExceptionAction
- C. Exception
- D. NotAction
Correct answer: D
Explanation
The NotAction element in an IAM policy allows you to specify an exception to a list of actions, effectively matching all actions except those listed. The other options, such as NotException, ExceptionAction, and Exception, are not valid IAM policy elements.