Security

A developer generates an RSA SSH key pair locally for a Linux EC2 development instance. Which material should the developer import into Amazon EC2 before selecting the key pair at launch?

Show the answer

Correct answerD. The public SSH key

AWhy not this: The private key remains with the developer and is not the material imported through EC2 key pair import.

BWhy not this: An X.509 certificate is not the public SSH key expected by EC2 key pair import.

CWhy not this: A KMS key ARN identifies a KMS resource, not an SSH public key usable for instance login.

DWhy this is right: EC2 imports the public key so the instance can authenticate a client holding the matching private key.

Amazon EC2 imports the public SSH key, which is made available to the instance for login authentication. The developer retains the private key locally to prove possession; importing it would expose the secret rather than configure the required public key.