
Answer-first summary for fast verification
Answer: By creating and attaching an IAM role with necessary permissions to the EC2 instance.
The most operationally efficient solution for an EC2 instance to access AWS resources such as Amazon S3 and Amazon DynamoDB is to create an IAM role with the necessary permissions and then attach this role to the EC2 instance. This method is preferred because it provides temporary credentials to the instance without the need to manage long-term access keys and secret access keys, enhancing security and reducing the overhead of key rotation. Option A is the correct answer as it aligns with AWS best practices for secure and scalable access to AWS resources from EC2 instances.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
How can an EC2 instance access AWS resources like Amazon S3 and DynamoDB in the most operationally efficient way?
A
By creating and attaching an IAM role with necessary permissions to the EC2 instance.
B
By using an IAM user's access key and secret access key within the application.
C
By using an IAM user's access key and secret access key to set up a CLI profile on the EC2 instance.
D
By attaching an IAM role with required permissions to an administrative IAM user.