Recall & Review
beginner
What is an IAM policy in AWS?
An IAM policy is a JSON document that defines permissions for AWS resources. It tells who can do what on which resource.
Click to reveal answer
beginner
What are the main parts of an IAM policy JSON?
The main parts are: <br>1. Version - policy language version<br>2. Statement - list of permission rules<br>3. Effect - Allow or Deny<br>4. Action - what actions are allowed or denied<br>5. Resource - which AWS resources the policy applies to
Click to reveal answer
beginner
What does the 'Effect' field in an IAM policy specify?
The 'Effect' field specifies whether the policy allows or denies the actions. It can be either 'Allow' or 'Deny'.
Click to reveal answer
beginner
How do you specify multiple actions in an IAM policy?
You list multiple actions as an array of strings under the 'Action' field, for example: ["s3:GetObject", "s3:PutObject"].
Click to reveal answer
beginner
What is the purpose of the 'Resource' field in an IAM policy?
The 'Resource' field specifies which AWS resources the policy applies to, using ARNs (Amazon Resource Names).
Click to reveal answer
Which field in an IAM policy JSON defines whether to allow or deny permissions?
✗ Incorrect
The 'Effect' field specifies if the policy allows or denies the actions.
What type of document format is used for IAM policies?
✗ Incorrect
IAM policies are written in JSON format.
In an IAM policy, where do you list the AWS actions you want to allow or deny?
✗ Incorrect
The 'Action' field lists the AWS actions the policy controls.
What does the 'Version' field in an IAM policy specify?
✗ Incorrect
The 'Version' field specifies the version of the policy language.
Which of the following is a valid 'Effect' value in an IAM policy?
✗ Incorrect
'Allow' is the correct value to permit actions in IAM policies.
Describe the structure of an AWS IAM policy JSON document.
Think about the main parts that define permissions.
You got /5 concepts.
Explain how you would allow a user to read objects from a specific S3 bucket using an IAM policy.
Focus on the Effect, Action, and Resource fields.
You got /3 concepts.