Quizzes · Glossary term

IAM policy

Level 0 questions on IAM policy. Read about it first if it's new to you.

  • 14 questions
  • 1 correct answer of 4 each
  • Pass line 80%

Questions and answers come in a new order every time, and every choice is explained. Your answers feed your weak spots on the exam page; they don't change your exam score.

Question 1In Todo.io's Prod account, a developer's role has an IAM policy that allows dynamodb:DeleteTable. An SCP attached to the Prod OU denies dynamodb:DeleteTable. The developer tries to delete a table. What happens?

Choose one answer

Learn it: IAM policy · SCP (service control policy) · Set up AWS: Wrong Region

Question 2Todo.io creates a new IAM role and attaches no policies to it. What can something using the role do?

Choose one answer

Learn it: IAM (Identity and Access Management) · IAM policy

Question 3Which statement describes a resource-based policy?

Choose one answer

Learn it: IAM policy

Question 4Todo.io's report job only reads items from the Todos table. Which policy follows the principle of least privilege?

Choose one answer

Learn it: IAM policy

Question 5Todo.io's API Gateway invokes its Lambda function. In Todo.io's setup, which policy says that API Gateway may invoke the function?

Choose one answer

Learn it: API Gateway · IAM policy · Lambda

Question 6Todo.io's Lambda function tries to push a message to a browser by POSTing to the WebSocket API's @connections URL, and gets AccessDenied. What fixes it?

Choose one answer

Learn it: WebSocket (API Gateway WebSocket API) · IAM policy

Question 7Todo.io attaches its Lambda function to the VPC so it can reach the MySQL database in a private subnet. Since then, the function's calls to SQS time out. IAM allows sqs:SendMessage. What fixes it?

Choose one answer

Learn it: NAT gateway · Lambda · IAM policy · ENI

Question 8Todo.io's Fargate tasks run in private subnets. Their IAM permissions are correct, but every call they make to SQS times out. What fixes it?

Choose one answer

Learn it: NAT gateway · IAM policy

Question 9Todo.io's app gets AccessDeniedException when it calls PutItem on the Todos table. What should be fixed?

Choose one answer

Learn it: DynamoDB · IAM policy

Question 10A teammate asks what controls who can read objects in an S3 bucket. Which answer is right?

Choose one answer

Learn it: S3 (Simple Storage Service) · IAM policy

Question 11Todo.io's app gets AccessDenied when it calls SendMessage on its queue. What should be fixed?

Choose one answer

Learn it: SQS (Simple Queue Service) · IAM policy

Question 12What does "IAM policy" mean?

Choose one answer

Learn it: IAM policy

Question 13Which term is this? "A JSON document listing allowed (or denied) actions on resources."

Choose one answer

Learn it: IAM policy

Question 14Which AWS term is described by this analogy? "The list of rooms printed on the back of a badge."

Choose one answer

Learn it: IAM policy