AWS Certified Security – Specialty — Question 309

A company does not allow the permanent installation of SSH keys onto an Amazon Linux 2 EC2 instance. However, three employees who have IAM user accounts require access to the EC2 instance. The employees must use an SSH session to perform critical duties.

How can a security engineer provide the appropriate access to the EC2 instance to meet these requirements?

Answer options

Correct answer: C

Explanation

AWS Systems Manager Session Manager provides secure, interactive shell access to EC2 instances without the need to open inbound ports, maintain bastion hosts, or manage SSH keys. AWS Systems Manager Inventory is used for gathering software metadata, and Run Command is intended for executing non-interactive administrative scripts rather than establishing an interactive shell. The standard EC2 console SSH client method still relies on managing and using SSH keys, which violates the company's security policy.