
Answer-first summary for fast verification
Answer: Create an IAM Role for EC2
Create an IAM Role for EC2 IAM roles have been incorporated so that your applications can securely make API requests from your instances, without requiring you to manage the security credentials that the applications use. Instead of creating and distributing your AWS credentials, you can delegate permission to make API requests using IAM roles. Amazon EC2 uses an instance profile as a container for an IAM role. When you create an IAM role using the IAM console, the console creates an instance profile automatically and gives it the same name as the role to which it corresponds. Incorrect options: EC2 User Data - You can specify user data when you launch an instance and you would not want to hard code the AWS credentials in the user data. Run aws configure on the EC2 instance - When you first configure the CLI you have to run this command, afterward you should not need to if you want to obtain credentials to authenticate to other AWS services. An IAM role will receive temporary credentials for you so you can focus on using the CLI to get access to other AWS services if you have the permissions. CloudFormation - AWS CloudFormation gives developers and businesses an easy way to create a collection of related AWS and third-party resources and provision them in an orderly and predictable fashion.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A company has developed an app-based service enabling citizens to book transportation rides within their local community. This platform operates on AWS EC2 instances and employs Amazon Relational Database Service (RDS) for storing transportation-related data. Recently, a new feature has been requested: the ability to email receipts to customers, with PDF attachments retrieved from Amazon Simple Storage Service (S3).
Which of the following options will allow the EC2 instances to possess the appropriate permissions to upload files to Amazon S3 and generate S3 Signed URLs?
A
CloudFormation
B
EC2 User Data
C
Run aws configure on the EC2 instance
D
Create an IAM Role for EC2