AWS Certified Solutions Architect – Professional (SAP-C02) — Question 261

A company has Linux-based Amazon EC2 instances. Users must access the instances by using SSH with EC2 SSH key pairs. Each machine requires a unique EC2 key pair.

The company wants to implement a key rotation policy that will, upon request, automatically rotate all the EC2 key pairs and keep the keys in a securely encrypted place. The company will accept less than 1 minute of downtime during key rotation.

Which solution will meet these requirements?

Answer options

Correct answer: A

Explanation

Option A is correct because it utilizes AWS Secrets Manager to securely store and manage the EC2 key pairs, allowing for automated key rotation via AWS Lambda while ensuring minimal downtime. The other options do not meet the requirement for secure key storage or automated rotation effectively, with options B and D relying on Parameter Store and Fleet Manager, which may not provide the same level of security and automation for key management.