Infrastructure Security

Administrators need interactive access to managed EC2 instances without inbound ports, and compliance requires recording shell input and output. Which configuration meets these requirements while preventing administrators from choosing an unrecorded Session Manager transport?

Show the answer

Correct answerB. Enable session logging and restrict session initiation to an approved standard shell session document.

AWhy not this: Session Manager cannot record port-forwarding contents, even when session logging is configured.

BWhy this is right: A logged standard shell session records input and output; document restrictions prevent switching to an unlogged transport.

CWhy not this: CloudTrail records API activity, and Session Manager does not record the contents of SSH sessions.

DWhy not this: VPC Flow Logs capture network metadata, not shell input and output; SSH session contents are not recorded by Session Manager.

Standard Session Manager shell sessions support input and output logging; restricting the permitted session document prevents use of SSH or port forwarding instead. CloudTrail records session API activity, not shell contents, and Session Manager cannot log SSH or port-forwarding session contents.