wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

IAM Roles

Total questions: 20

Worksheet time: 8mins

Name
Class
Date
1.

A Solutions Architect is designing a shared service for hosting containers from several customers on Amazon ECS. These containers will use several AWS services. A container from one customer should not be able access data from another customer. Which of the below solutions should the architect use to meet these requirements?

a)

IAM Roles for tasks

b)

IAM Roles for EC2 Instances

c)

IAM Instance profile for EC2 instances

d)

Security Group Rules

2.

Your organization AWS Setup has an AWS S3 bucket which stores confidential documents which can be only downloaded by users authenticated and authorized via your application. You do not want to create IAM users for each of these users and as a best practice you have decided to generate AWS STS Federated User temporary credentials each time when a download request is made and then use the credentials to generate presigned URL and redirect user for download. However, when user is trying to access the presigned URL, they are getting Access Denied Error. What could be the reason?

a)

AWS STS service must be given access in S3 bucket ACL

b)

IAM User used to generate Federated User credentials does not have access on S3 bucket.

c)

IAM Role used to generate Federated User credentials does not have access on S3 bucket.

d)

Your application must be whitelisted in AWS STS service to perform Federated User action.

3.

Your organization has an AWS setup and planning to build Single Sign On for users to authenticate with on-premise Microsoft Active Directory Federation Services (ADFS) and let users login to AWS console using AWS STS Enterprise Identity Federation. Which of the following service you need to call from AWS STS service after you authenticate with your on-premise?

a)

AssumeRoleWithSML

b)

GetFederationToken

c)

AssumeRoleWithWebIdentity

d)

GetCallerIdentity

4.

An EC2 Instance hosts a Java based application that accesses a DynamoDB table. This EC2 Instance is currently serving production users. Which of the following is a secure way for the EC2 Instance to access the DynamoDB table?

a)

UseIAM Roles with permissions to interact with DynamoDB and assign it to the EC2Instance

b)

UseKMS Keys with the right permissions to interact with DynamoDB and assign it to the EC2 Instance.

c)

UseIAM Access Keys with the right permissions to interact with DynamoDB and assign it to the EC2 Instance.

d)

UseIAM Access Groups with the right permissions to interact with DynamoDB and assign it to the EC2 Instance.

5.

You work in the media industry and have created a web application where users will be able to upload photos they create to your website. This web application must be able to call the S3 API in order to be able to function. Where should you store your API credentials whilst maintaining the maximum level of security?

a)

Save the API credentials to your PHP files.

b)

Don’t save your API credentials. Instead create a role in IAM and assign this role to an EC2 instance when you first create it.

c)

Save your API credentials in a public Github repository.

d)

Pass API credentials to the instance using instance user data.

6.

Your company is planning on hosting their development, test and production applications on EC2 Instances in AWS. They are worried about how access control would be given to relevant IT Admins for each of the above environments. As an architect, what would you suggest for managing the relevant accesses?

a)

Add tags to the instances marking each environment and then segregate access using IAM Policies.

b)

Add Userdata to the underlying instances to mark each environment.

c)

Add Metadata to the underlying instances to mark each environment.

d)

Add each environment to a separate Auto Scaling Group.

7.

An EC2 Instance setup in AWS will host an application which will make API calls to the Simple Storage Service. What is an ideal way for the application to access the Simple Storage Service?

a)

Pass API credentials to the instance using instance user data.

b)

Store API credentials as an object in a separate Amazon S3 bucket.

c)

Embed the API credentials into your application.

d)

Create and Assign an IAM role to the EC2 Instance.

8.

You are developing a mobile application that needs to issue temporary security credentials to users. This is essential due to security concerns. Which of the below services can help achieve this?

a)

AWS STS

b)

AWS Config

c)

AWS Trusted Advisor

d)

AWS Inspector

9.

Your company is planning on using the API Gateway service to manage APIs for developers and users. There is a need to segregate the access rights for both developers and users. How can this be accomplished?

a)

Use IAM permissions to control the access.

b)

Use AWS Access keys to manage the access.

c)

Use AWS KMS service to manage the access.

d)

Use AWS Config Service to control the access.

10.

Your company has a set of EC2 Instances that access data objects stored in an S3 bucket. Your IT Security department is concerned about the security of this architecture and wants you to implement the following:

1) Ensure that the EC2 Instance securely accesses the data objects stored in the S3 bucket

2) Prevent accidental deletion of objects

Which of the following would help fulfill the requirements of the IT Security department? Choose 2 answers from the options given below.

a)

Create an IAM user and ensure the EC2 Instances use the IAM user credentials to access the data in the bucket.

b)

Create an IAM Role and ensure the EC2 Instances use the IAM Role to access the data in the bucket.

c)

Use S3 Cross-Region Replication to replicate the objects so that the integrity of data is maintained.

d)

Use an S3 bucket policy that ensures that MFA Delete is set on the objects in the bucket.

11.

Which of the following is the most secure way of giving access to AWS services to applications running on Ec2 instances?

a)

Creating Service users

b)

Creating service groups

c)

Roles

d)

Attaching policies to applications

12.

True or False : An explicit Deny in IAM precedes over an explicit allow

a)

TRUE

b)

FALSE

13.

Which of the following sections in a policy specifies the entities to whom access to a resource is granted or denied?

a)

Statement ID

b)

Resources

c)

Principal

d)

Conditions

14.

TRUE or FALSE : By default a new user in IAM has permisiions to log in to the AWS Console.

a)

TRUE

b)

FLASE

15.

Which of the following is not an IAM best practice?

a)

Delete user accounts not in use

b)

Attach policies to individual users

c)

Manage permissions by adding users to groups

d)

Enable MFA on user accounts

16.

Wch of the following set of credentials are used to log in to AWS programmatically? (Choose two)

a)

Username

b)

Access Key

c)

Password

d)

Secret Key

17.

Wch of the following set of credentials are used to log in to AWS programmatically? (Choose two)

a)

Username

b)

Access Key

c)

Password

d)

Secret Key

18.

It is add two-factor authentication to your account and to individual users for extra security

a)

MFA

b)

username

c)

password

d)

Identity Federation

19.

It represents the person or service who uses the IAM user to interreact with AWS.

a)

users

b)

groups

c)

root account

d)

roles

20.

It is very similar to a user, in that it is an identity with permission policies that determine what the identity can and cannot do in AWS.

a)

users

b)

groups

c)

root account

d)

roles