AWS Certified Solutions Architect – Professional — Question 873
You want to define permissions for a role in an IAM policy. Which of the following configuration formats should you use?
Answer options
- A. An XML document written in the IAM Policy Language
- B. An XML document written in a language of your choice
- C. A JSON document written in the IAM Policy Language
- D. JSON document written in a language of your choice
Correct answer: C
Explanation
AWS IAM policies must be created as JSON documents that strictly adhere to the rules and syntax of the IAM Policy Language. XML is not a supported format for IAM policies, and you cannot use custom, non-standard languages or schemas. Thus, option C is the only correct configuration format.