AWS Certified SysOps Administrator – Associate (legacy) — Question 271

A user has created a VPC with CIDR 20.0.0.0/16 with only a private subnet and VPN connection using the VPC wizard. The user wants to connect to the instance in a private subnet over SSH. How should the user define the security rule for SSH?

Answer options

Correct answer: A

Explanation

Since the VPC is securely connected to the user's on-premises network via a VPN connection, traffic can route directly between them without traversing the public internet. Therefore, the security group of the private instance simply needs an inbound rule allowing port 22 (SSH) from the user's local network range. Other options, such as using EC2 Classic, routing SSH through a NAT instance, or exposing port 80/22 to the public internet, are either insecure or architecturally invalid.