AWS Certified Solutions Architect – Professional — Question 810

A research company is running daily simulations in the AWS Cloud to meet high demand. The simulations run on several hundred Amazon EC2 instances that are based on Amazon Linux 2. Occasionally, a simulation gets stuck and requires a cloud operations engineer to solve the problem by connecting to an EC2 instance through SSH.
Company policy states that no EC2 instance can use the same SSH key and that all connections must be logged in AWS CloudTrail.
How can a solutions architect meet these requirements?

Answer options

Correct answer: C

Explanation

EC2 Instance Connect allows secure connection to EC2 instances without needing to manage, share, or rotate static SSH keys, as it pushes a temporary public key to the instance for one-time use. Because the SendSSHPublicKey API call is used to push this key, all connection attempts are automatically logged in AWS CloudTrail. Other options are incorrect because they require complex, manual, or custom key management systems that do not native integrate with CloudTrail for connection logging as seamlessly as EC2 Instance Connect.