AWS Certified Security – Specialty — Question 408

A company accidentally deleted the private key for an Amazon Elastic Block Store (Amazon EBS)-backed Amazon EC2 instance. A security engineer needs to regain access to the instance.

Which combination of steps will meet this requirement? (Choose two.)

Answer options

Correct answer: A, C

Explanation

To recover access to an EBS-backed instance after losing the private key, the instance must first be stopped so its root volume can be safely detached. The detached volume is then mounted as a secondary data volume on a temporary instance, where the authorized_keys file is updated with the new public key. Finally, the volume is reattached to the original instance as the root volume, and the instance is started.