You have an application running on an EC2 Instance which will allow users to download flies from a private S3 bucket using a pre-signed URL. Before generating the URL the application should verify the existence of the file in S3. How should the application use AWS credentials to access the S3 bucket securely?
A) Use the AWS account access Keys the application retrieves the credentials from the source code of the application.
B) Create an IAM user for the application with permissions that allow list access to the S3 bucket launch the instance as the IAM user and retrieve the IAM user's credentials from the EC2 instance user data.
C) Create an IAM role for EC2 that allows list access to objects in the S3 bucket. Launch the instance with the role, and retrieve the role's credentials from the EC2 Instance metadata
D) Create an IAM user for the application with permissions that allow list access to the S3 bucket. The application retrieves the IAM user credentials from a temporary directory with permissions that allow read access only to the application user.
Correct Answer:
Verified
Q40: Company B is launching a new game
Q41: What is the maximum write throughput I
Q42: In the context of AWS IAM, identify
Q43: You deployed your company website using Elastic
Q44: Which AWS instance address has the following
Q46: Which of the following are characteristics of
Q47: Your application provides data transformation services. Files
Q48: A 3-Ber e-commerce web application is currently
Q49: Amazon EC2 provides a repository of public
Q50: A web-startup runs its very successful social
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents