AWS Certified Security – Specialty — Question 325

A company wants to prevent SSH access through the use of SSH key pairs for any Amazon Linux 2 Amazon EC2 instances in its AWS account. However, a system administrator occasionally will need to access these EC2 instances through SSH in an emergency. For auditing purposes, the company needs to record any commands that a user runs in an EC2 instance.

What should a security engineer do to configure access to these EC2 instances to meet these requirements?

Answer options

Correct answer: D

Explanation

AWS Systems Manager Session Manager allows secure instance management without the need to manage SSH keys or open inbound SSH ports. It natively supports logging session activity, including all executed commands, to an Amazon S3 bucket or Amazon CloudWatch Logs for auditing purposes. Other methods either still require SSH key pairs, do not natively support command logging, or are meant for console troubleshooting rather than standard administrative access.