AWS Certified SysOps Administrator – Associate — Question 211

An Amazon EC2 instance is running an application that uses Amazon Simple Queue Service (Amazon SQS) queues. A SysOps administrator must ensure that the application can read, write, and delete messages from the SQS queues.

Which solution will meet these requirements in the MOST secure manner?

Answer options

Correct answer: D

Explanation

The correct answer is D because using an IAM role is the most secure approach, allowing the EC2 instance to obtain temporary credentials without hardcoding sensitive information. Options A and B involve creating an IAM user and embedding credentials or environment variables, which can expose sensitive information. Option C grants broad permissions with sqs:*, which is less secure than specifying only the needed permissions in D.