AWS - IAM - multichoice questions

Question 1

Which of the below actions can be controlled with IAM policies?

Question 2

Which of the following statements best describe how a request to AWS is authorized?

Question 3

Your AWS account has 350 IAM users. Your product manager asks you to allow 50 users full access on S3. How can you implement this effectively?

Question 4

What does the following policy for Amazon EC2 do?

{
  "Version": "2012-10-17",
  "Statement": {
    "Effect": "Deny",
    "Action": "*",
    "Resource": "*",
    "Condition": {
      "NotIpAddress": {
        "aws:SourceIp": [
          "192.0.2.0/24",
          "203.0.113.0/24"
        ]
      },
      "Bool": {"aws:ViaAWSService": "false"}
    }
  }
}

Question 5

What does the below policy do?

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Action": [
        "ec2:DescribeInstances",
        "ec2:DescribeSecurityGroups",
        "ec2:DescribeSecurityGroupReferences",
        "ec2:DescribeStaleSecurityGroups"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "ec2:AuthorizeSecurityGroupEgress",
        "ec2:AuthorizeSecurityGroupIngress",
        "ec2:RevokeSecurityGroupEgress",
        "ec2:RevokeSecurityGroupIngress",
        "ec2:StartInstances",
        "ec2:StopInstances"
      ],
      "Resource": [
        "arn:aws:ec2:*:*:instance/*",
        "arn:aws:ec2:*:*:security-group/*"
      ],
      "Effect": "Allow"
    }
  ]
}

Question 6

Your EC2 instance should read objects from mybucket S3 bucket. Your instance assumes a role with the following policy:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Action": [
        "s3:GetObject",
        "s3:GetObjectVersion"
      ],
      "Effect": "Allow",
      "Resource": "arn:aws:s3:::mybucket"
    }
  ]
}

However, when the app running in the EC2 tries to read object, you receive the error:

Action does not apply to any resource(s) in the statement.

How can you fix the error?

Question 7

An IAM user is trying to perform an action on an object belonging to some other account's S3 bucket.

Which of the below permission(s) would result in a successful action?