
AWS Certified Security - Specialty
Get started today
Ultimate access to all questions.
A company has lost the private key for an Amazon Elastic Block Store (Amazon EBS)-backed Amazon EC2 instance, and a security engineer needs to regain access to the instance. Which two of the following steps, when combined, will effectively allow the engineer to regain access to the instance?
A company has lost the private key for an Amazon Elastic Block Store (Amazon EBS)-backed Amazon EC2 instance, and a security engineer needs to regain access to the instance. Which two of the following steps, when combined, will effectively allow the engineer to regain access to the instance?
Explanation:
In order to regain access to the Amazon EC2 instance after losing the private key, you need to stop the instance and detach the root volume. Attaching this volume to another instance as a data volume allows you to modify the authorized_keys file with a new public key. Once this modification is done, move the volume back to the original instance and start the instance. These steps ensure that you regain SSH access to the instance using the new key pair. Correct options are A (Stop the instance. Detach the root volume. Generate a new key pair.) and C (Modify the authorized_keys file with a new public key while the volume is attached to another instance).