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
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.
More Deployment, Provisioning, and Automation questions
- A SysOps administrator manages 200 Amazon EC2 instances running Amazon Linux 2023 and Windows Server 2022. Corporate…
- A SysOps administrator deploys an AWS CloudFormation stack containing an EC2 instance with a CreationPolicy…
- A SysOps administrator wants to ensure that every EC2 instance tagged Role = WebServer has the httpd service…
- A production VPC Security Group and an Amazon S3 bucket were originally provisioned by an AWS CloudFormation stack…
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.