Quizzes · Service

IAM

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

Works with: Lambda (8), DynamoDB (6), Organizations (4), IAM Identity Center (4), RDS (3), EC2 (3), ECS + Fargate (3), CloudWatch Logs (3), API Gateway (2), SQS (2), VPC (1), S3 (1), CloudTrail (1)

  • 15 questions, from a pool of 56
  • 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 1An SCP on Todo.io's Prod OU allows s3:*. A role in Prod has no IAM policies that mention S3, and the bucket has no bucket policy. Can the role read objects from a bucket in Prod?

Choose one answer

Learn it: SCP (service control policy) · IAM (Identity and Access Management) · Set up AWS: Day 0

Question 2An SCP on the Prod OU denies a set of RDS actions. Which of these does the SCP NOT restrict?

Choose one answer

Learn it: SCP (service control policy) · Service-linked role

Question 3Todo.io creates a new member account from its management account with AWS Organizations. Nobody knows a password for the new account. How does an administrator get in the first time?

Choose one answer

Learn it: AWS Organizations · Set up AWS: Day 0 · IAM role

Question 4An engineer signs in to the IAM Identity Center access portal and opens the Prod account. What credentials do they get in Prod?

Choose one answer

Learn it: IAM Identity Center · Temporary credentials

Question 5Todo.io assigns the ReadOnlyAccess permission set to an engineer in its Audit account. What does Identity Center create in the Audit account?

Choose one answer

Learn it: Permission set

Question 6Roles named AWSReservedSSO_AdministratorAccess_… appear in Todo.io's Prod account. Where did they come from?

Choose one answer

Learn it: IAM Identity Center

Question 7In 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 8Todo.io's founder signs in as the root user every day to manage everything. Which change best follows AWS security best practice?

Choose one answer

Learn it: Root user · Set up AWS: Day 0

Question 9Todo.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 10Todo.io created an IAM role while the console was set to us-east-1. Can an app running in eu-west-1 use the role?

Choose one answer

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

Question 11A Todo.io Lambda function must write to a DynamoDB table. How should it get that permission?

Choose one answer

Learn it: IAM role · Lambda

Question 12Which statement describes a resource-based policy?

Choose one answer

Learn it: IAM policy

Question 13A developer may create Lambda functions, but gets AccessDenied when choosing an existing execution role for a new function. What is missing?

Choose one answer

Learn it: iam:PassRole

Question 14Which part of an IAM role decides who is allowed to assume it?

Choose one answer

Learn it: IAM role

Question 15Todo.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 16In the ARN arn:aws:dynamodb:us-east-1:111122223333:table/Todos, what is 111122223333?

Choose one answer

Learn it: ARN (Amazon Resource Name)

Question 17Todo.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 18Todo.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 19The Todo.io app runs on an EC2 instance and must write to a DynamoDB table. What is the most secure way to give it AWS credentials?

Choose one answer

Learn it: EC2 (Elastic Compute Cloud) · Temporary credentials · IAM role · Design Todo.io on EC2

Question 20Todo.io's app on EC2 has a role attached through an instance profile. Where does the AWS SDK get the role's credentials from?

Choose one answer

Learn it: Temporary credentials · IAM role

Question 21Code inside Todo.io's ECS task must send messages to SQS. Which role should be allowed sqs:SendMessage?

Choose one answer

Learn it: ECS and Fargate · IAM role

Question 22A Fargate task fails to start because ECS can't pull the container image or create its log stream. Which role is missing permissions?

Choose one answer

Learn it: ECS and Fargate

Question 23How does output from Todo.io's containers on Fargate reach CloudWatch Logs?

Choose one answer

Learn it: ECS and Fargate · CloudWatch Logs

Question 24How many execution roles does a Lambda function have?

Choose one answer

Learn it: Lambda · IAM role

Question 25Todo.io's Lambda function prints log lines, but nothing appears in CloudWatch Logs. What is the most likely cause?

Choose one answer

Learn it: Lambda · CloudWatch Logs

Question 26Todo.io moves its API to Lambda. Which of these is still Todo.io's job?

Choose one answer

Learn it: Lambda

Question 27After Todo.io created its first RDS database, a role named AWSServiceRoleForRDS appeared. What is it?

Choose one answer

Learn it: Service-linked role

Question 28A developer can create RDS databases, but creating one with an Enhanced Monitoring role fails with AccessDenied. What is missing?

Choose one answer

Learn it: iam:PassRole

Question 29How does Todo.io's app read and write DynamoDB?

Choose one answer

Learn it: DynamoDB

Question 30Todo.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 31A Lambda function that isn't attached to a VPC writes to DynamoDB. Which security group is involved?

Choose one answer

Learn it: DynamoDB · Security group

Question 32A 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 33Todo.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 34Someone tried to delete Todo.io's audit bucket, and IAM denied it. Does CloudTrail record the attempt?

Choose one answer

Learn it: CloudTrail

Question 35Todo.io's app on EC2 writes log files, but nothing shows up in CloudWatch Logs. What is needed?

Choose one answer

Learn it: EC2 (Elastic Compute Cloud) · CloudWatch Logs

Question 36What does "MFA (multi-factor authentication)" mean?

Choose one answer

Learn it: MFA (multi-factor authentication)

Question 37Which term is this? "A second proof of identity, like a code from an app or a security key, on top of a password."

Choose one answer

Learn it: MFA (multi-factor authentication)

Question 38Which AWS term is described by this analogy? "A PIN on top of the key card."

Choose one answer

Learn it: MFA (multi-factor authentication)

Question 39What does "IAM (Identity and Access Management)" mean?

Choose one answer

Learn it: IAM (Identity and Access Management)

Question 40Which term is this? "Decides who can do what to which AWS resource."

Choose one answer

Learn it: IAM (Identity and Access Management)

Question 41Which AWS term is described by this analogy? "The building's security office that issues every badge."

Choose one answer

Learn it: IAM (Identity and Access Management)

Question 42What does "IAM role" mean?

Choose one answer

Learn it: IAM role

Question 43Which term is this? "An identity with permissions that something can "wear" temporarily. No password."

Choose one answer

Learn it: IAM role

Question 44Which AWS term is described by this analogy? "A visitor badge that's handed out at the door and expires."

Choose one answer

Learn it: IAM role

Question 45What does "IAM policy" mean?

Choose one answer

Learn it: IAM policy

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

Choose one answer

Learn it: IAM policy

Question 47Which 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

Question 48What does "Temporary credentials" mean?

Choose one answer

Learn it: Temporary credentials

Question 49Which term is this? "Short-lived AWS keys handed out for a role, which expire automatically."

Choose one answer

Learn it: Temporary credentials

Question 50Which AWS term is described by this analogy? "A wristband that's only valid for today."

Choose one answer

Learn it: Temporary credentials

Question 51What does "Service-linked role" mean?

Choose one answer

Learn it: Service-linked role

Question 52Which term is this? "A role an AWS service creates and owns so it can act in your account on its own behalf."

Choose one answer

Learn it: Service-linked role

Question 53Which AWS term is described by this analogy? "A contractor's own access badge, issued and controlled by the contractor's company."

Choose one answer

Learn it: Service-linked role

Question 54What does "iam:PassRole" mean?

Choose one answer

Learn it: iam:PassRole

Question 55Which term is this? "The permission to hand an existing role to an AWS service."

Choose one answer

Learn it: iam:PassRole

Question 56Which AWS term is described by this analogy? "Being allowed to lend your colleague's key card to a contractor."

Choose one answer

Learn it: iam:PassRole