Quiz
IAM Quiz
This quiz has a time limit, so it opens in the usual player.
Questions in this quiz (17)
1You are deploying an application on Amazon EC2, which must call AWS APIs. What method should you use to securely pass credentials to the application?
- AA. PassAPI credentials to the instance using Instance userdata.
- BB. StoreAPI credentials as an object in Amazon S3.
- CC. Embedthe API credentials into your application.
- DD. AssignIAM roles to the EC2 Instances.
2A 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?
- AA. IAMroles for tasks
- BB. IAMroles for EC2 Instances
- CC. IAMInstance profile for EC2 Instances
- DD. SecurityGroup rules
3Which of the following is not a feature of AWS Security Token Service?
- AA. STS enables you to request temporary, limited-privilege credentials.
- BB. STS enables users to assume role.
- CC. STS generates Git Credentials for IAM users.
- DD. STS generates Federated Credentials for IAM users.
4Your 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?
- AA. AWS STS service must be given access in S3 bucket ACL.
- BB. IAM User used to generate Federated User credentials does not have access on S3 bucket.
- CC. IAM Role used to generate Federated User credentials does not have access on S3 bucket.
- DD. Your application must be whitelisted in AWS STS service to perform FederatedUser action.
5Your 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?
- AA. AssumeRoleWithSAML
- BB. GetFederationToken
- CC. AssumeRoleWithWebIdentity
- DD. GetCallerIdentity
6An 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?
- AA. UseIAM Roles with permissions to interact with DynamoDB and assign it to the EC2Instance.
- BB. UseKMS Keys with the right permissions to interact with DynamoDB and assign it tothe EC2 Instance.
- CC. UseIAM Access Keys with the right permissions to interact with DynamoDB and assignit to the EC2 Instance.
- DD. UseIAM Access Groups with the right permissions to interact with DynamoDB andassign it to the EC2 Instance.
7You have created an AWS Lambda function that will write data to a DynamoDB table. Which of the following must be in place to ensure that the Lambda function can interact with the DynamoDB table?
- AA.
Ensure an IAM Role is attached to the Lambda function which has the required DynamoDBprivileges. - BB.
Ensure an IAM User is attached to the Lambda function which has the required DynamoDB privileges. - CC.
Ensure the Access keys are embedded in the AWS Lambda function. - DD.
Ensure the IAM user password is embedded in the AWS Lambda function.
- AA.
8You have both production and development based instances running on your VPC. It is required to ensure that people responsible for the development instances do not have access to work on production instances for better security. Which of the following would be the best way to accomplish this using policies? Choose the correct answer from the options given below.
- AA.
Launch the test and production instances in separate VPCs and use VPC Peering. - BB.
Create an IAM Policy with a condition that allows access to only those instances which are used for production or development. - CC.
Launch the test and production instances in different Availability Zones and use Multi-Factor Authentication. - DD.
Define the tags on the test and production servers and add a condition to the IAMPolicy which allows access to specific tags.
- AA.
9One plans on using SQS queues and AWS Lambda to leverage the Serverless aspects of the AWS Cloud. Each invocation to AWS Lambda will send a message to an SQS queue. In order for messages to be sent, which of the following must be in place?
- AA.
The queue must be a FIFO queue. - BB.
An IAM Role with the required permissions. - CC.
The code for Lambda must be written in C#. - DD.
An IAM Group with the required permissions.
- AA.
10You 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?
- AA.
Save the API credentials to your PHP files. - BB.
Don’t save your API credentials. Instead create a role in IAM and assign this role toan EC2 instance when you first create it. - CC.
Save your API credentials in a public Github repository. - DD.
Pass API credentials to the instance using instance user data.
- AA.
11Your 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?
- AA.
Add tags to the instances marking each environment and then segregate access using IAM Policies. - BB.
Add Userdata to the underlying instances to mark each environment. - CC.
Add Metadata to the underlying instances to mark each environment. - DD.
Add each environment to a separate Auto Scaling Group.
- AA.
12An 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?
- AA.
Pass API credentials to the instance using instance user data. - BB.
Store API credentials as an object in a separate Amazon S3 bucket. - CC.
Embed the API credentials into your application. - DD.
Create and Assign an IAM role to the EC2 Instance.
- AA.
13You 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?
- AA.
AWS STS - BB.
AWS Config - CC.
AWS Trusted Advisor - DD.
AWS Inspector
- AA.
14Your 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?
- AA.
Use IAM permissions to control the access. - BB.
Use AWS Access keys to manage the access. - CC.
Use AWS KMS service to manage the access. - DD.
Use AWS Config Service to control the access.
- AA.
15Your 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.- AA.
Create an IAM user and ensure the EC2 Instances use the IAM user credentials toaccess the data in the bucket. - BB.
Create an IAM Role and ensure the EC2 Instances use the IAM Role to access the datain the bucket. - CC.
Use S3 Cross-Region Replication to replicate the objects so that the integrity ofdata is maintained. - DD.
Use an S3 bucket policy that ensures that MFA Delete is set on the objects in thebucket.
- AA.
16Your application consists of a set of EC2 Instances which are spun up as part of an Autoscaling Group. These Instances need to access objects in an S3 bucket. Which of the following is the ideal approach to ensure this access is set in place?
- AA.
Ensure that the Access Keys are picked up from another S3 bucket. The Access Keys can be embedded in the User data during Instance Launch. - BB.
Ensure that the Autoscaling Group attaches an IAM Role attached to the underlying EC2 Instances. - CC.
Ensure that an IAM policy is attached to the S3 bucket which allows access to the S3 buckets. - DD.
Ensure that the Autoscaling Group attaches an IAM User attached to the underlying EC2 Instances.
- AA.
17You have currently contacted an AWS partner to carry out an audit for your AWS account. You need to ensure that the partner can carry out an audit on your resources. Which one of the following steps would you ideally carry out?
- AA.
Create an IAM user for the partner account for login purposes - BB.
Create a cross account IAM Role - CC.
Create an IAM group for the partner account for login purposes - DD.
Create an IAM profile for the partner account for login purposes
- AA.
Information
- Description
- Quiz on IAM Quiz , created by Romulo Maciel on 21/06/2020.
- Author
- Romulo Maciel
- Language
- Português
- Views
- 8
- Tags
- Rating
- No ratings yet Rate this quiz