AWS SysOps Admin SOA-C02 · Deployment, Provisioning, and Automation · medium

A security audit requires removing all inbound SSH (TCP 22) and RDP (TCP 3389) rules from every Amazon EC2 Security Group, deleting all EC2 key pairs, and terminating all public bastion hosts across the account. Administrators still need interactive browser/CLI shell access to private EC2 instances, with every shell command logged to Amazon CloudWatch Logs and an encrypted Amazon S3 bucket. Which AWS service meets these requirements?

Published · Last updated · checked before publication — how we verify questions

Options

  • AAWS Direct Connect public VIF with BGP tags for port 22
  • BAWS Systems Manager Session Manager using the SSM Agent and IAM instance profileCorrect answer
  • CAWS CloudFormation Drift Detection scheduled via an EventBridge cron expression rule
  • DAmazon Inspector Network Reachability assessment templates over port 22 (SSH)

Answer: B. AWS Systems Manager Session Manager using the SSM Agent and IAM instance profile

AWS Systems Manager Session Manager provides interactive browser and AWS CLI shell access (and port forwarding) to EC2 instances via the outbound HTTPS (TCP 443) SSM Agent channel (ssmmessages / ssm endpoints) — requiring zero inbound Security Group ports, zero SSH keys, and zero bastion hosts — while natively streaming full session audit logs to CloudWatch Logs and Amazon S3.

Why the other options are wrong

  • A. AWS Direct Connect public VIF with BGP tags for port 22 — Direct Connect still relies on network-layer SSH/RDP ports if Session Manager is not used.
  • C. AWS CloudFormation Drift Detection scheduled via an EventBridge cron expression rule — Drift Detection compares stack templates against live resource properties and does not provide interactive OS shells.
  • D. Amazon Inspector Network Reachability assessment templates over port 22 (SSH) — Amazon Inspector scans for vulnerabilities and unintended open ports; it does not provide interactive shell sessions.

All Deployment, Provisioning, and Automation questions and the topic overview →

AWS and Amazon Web Services are trademarks of Amazon.com, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Amazon Web Services.