AWS Certified SysOps Administrator – Associate (legacy) — Question 589
If an IAM policy has multiple conditions, or if a condition has multiple keys, its boolean outcome will be calculated using a logical ______ operation.
Answer options
- A. NAND
- B. OR
- C. AND
- D. None of these
Correct answer: C
Explanation
AWS IAM evaluates multiple conditions or multiple keys within a single condition block using a logical AND operation, meaning all specified conditions must be satisfied for the policy block to resolve to true. Conversely, multiple values assigned to a single key are evaluated using a logical OR. Therefore, AND is the correct logical operator for combining multiple keys or conditions.