Infrastructure Security
A private EC2 instance has a current SSM Agent, the required IAM permissions, and no internet route; Session Manager connections fail. Private DNS is enabled on its Systems Manager interface endpoints, but the ssmmessages endpoint security group allows no inbound traffic; what should the administrator change?
Show the answer
Correct answerA. Allow inbound TCP 443 to the endpoint from the instance security group.
AWhy this is right: The endpoint must accept the agent's outbound HTTPS connection on TCP 443.
BWhy not this: Session Manager does not use inbound SSH connections to the managed instance.
CWhy not this: The agent initiates the connection, so inbound HTTPS on the instance does not fix blocked endpoint ingress.
DWhy not this: The ssmmessages service uses HTTPS on TCP 443, not SSH on TCP 22.
SSM Agent initiates HTTPS connections to the ssmmessages endpoint, whose security group must accept TCP 443 from the instance. Opening inbound HTTPS on the instance reverses the connection direction and does not resolve the endpoint's blocked ingress.