Knowee
Questions
Features
Study Tools

A company hosts an application on an Amazon EC2 instance. The EC2 instance needs to access several AWS resources, including Amazon S3 and Amazon DynamoDB.What is the MOST operationally efficient solution to delegate permissions?Create an IAM role with the required permissions. Attach the role to the EC2 instance.Create an IAM role with the required permissions. Attach the role to the administrative IAM user.Create an IAM user and use its access key and secret access key in the application.Create an IAM user and use its access key and secret access key to create a CLI profile in the EC2 instance.

Question

A company hosts an application on an Amazon EC2 instance. The EC2 instance needs to access several AWS resources, including Amazon S3 and Amazon DynamoDB.What is the MOST operationally efficient solution to delegate permissions?Create an IAM role with the required permissions. Attach the role to the EC2 instance.Create an IAM role with the required permissions. Attach the role to the administrative IAM user.Create an IAM user and use its access key and secret access key in the application.Create an IAM user and use its access key and secret access key to create a CLI profile in the EC2 instance.

...expand
🧐 Not the exact question you are looking for?Go ask a question

Solution

The most operationally efficient solution to delegate permissions is to create an IAM role with the required permissions and attach the role to the EC2 instance.

Here are the steps:

  1. Open the AWS Management Console, navigate to the IAM dashboard, and click on "Roles" in the left navigation pane.

  2. Click on "Create role".

  3. In the "Select type of trusted entity" section, choose "AWS service".

  4. In the "Choose the service that will use this role" section, choose "EC2". Then, click "Next: Permissions".

  5. In the "Attach permissions policies" section, search for and select the policies that grant the necessary permissions for accessing the required AWS resources (like Amazon S3 and Amazon DynamoDB). After selecting the policies, click "Next: Tags".

  6. (Optional) In the "Add tags" section, you can add tags to the role. Tags are not required, so you can choose to skip this step by clicking "Next: Review".

  7. In the "Review" section, give the role a name and (optionally) a description. Make sure that all the details are correct, then click "Create role".

  8. Now, navigate to the EC2 dashboard and select the instance that needs to access the AWS resources.

  9. In the instance details pane, click on "Actions", then "Security", and then "Modify IAM role".

  10. In the "Modify IAM role" window, select the role you just created and click "Save".

By following these steps, you have delegated permissions to the EC2 instance in an operationally efficient way. This method is more secure and manageable than using an IAM user's access keys, and it doesn't require you to embed those keys within the application or the EC2 instance.

This problem has been solved

Similar Questions

How can the principle of least privileged access be implemented in AWS?a)By granting all users full access to all resourcesb)By granting users permissions based on their job titlesc)By granting users permissions based on their seniority in the organizationd)By granting users the minimum permissions necessary to perform their tasks

Which of the following are recommended best practices for AWS Identity and Access Management (AWS IAM) service? (Select two)Question 65AnswerA. Rotate credentials regularlyB. Grant maximum privileges to avoid assigning privileges againC. Create a minimum number of accounts and share these account credentials among employeesD.Enable multi-factor authentication (MFA) for all usersE.Share AWS account root user access keys with other administrators

Which of the following entities should be used for an Amazon Elastic Compute Cloud (Amazon EC2) Instance to access a DynamoDB table?Question 30Answera.AWS Key Management Service (KMS)b.IAM rolec.Amazon Cognitod.AWS IAM user access keys

A corporation would like to simplify access management to multiple AWS accounts as well as facilitate AWS Single Sign-On (AWS SSO) access to its AWS accounts. As a Cloud Practitioner, which AWS service would you use for this task?Question 15Answera.AWS Cognitob.AWS Identity and Access Management (AWS IAM)c.AWS Command Line Interface (CLI)d.AWS IAM Identity Center

4.A company needs to securely store important credentials that an application uses to connect users to a database. Which AWS service can meet this requirement with the MINIMAL amount of operational overhead?AWS Key Management Service (AWS KMS)AWS ConfigAWS Secrets ManagerAmazon GuardDutyNEXT

1/2

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.