Recall & Review
beginner
What is a key pair in AWS used for?
A key pair in AWS is used to securely connect to virtual machines (EC2 instances) via SSH. It consists of a public key stored by AWS and a private key kept by the user.
Click to reveal answer
beginner
What are the two parts of an SSH key pair?
The two parts are the public key, which AWS stores and uses to verify connections, and the private key, which you keep safe and use to prove your identity when connecting.
Click to reveal answer
beginner
How do you use a key pair to connect to an EC2 instance?
You use an SSH client with the private key file to connect. The client proves your identity using the private key, and AWS verifies it with the stored public key.
Click to reveal answer
beginner
Why should you never share your private key?
Sharing your private key risks unauthorized access to your servers. It is like a password that grants full access, so it must be kept secret and secure.
Click to reveal answer
intermediate
What happens if you lose your private key for an EC2 instance?
If you lose your private key, you cannot connect to the instance via SSH. You must create a new key pair and update the instance or use other recovery methods.
Click to reveal answer
What does AWS store when you create a key pair?
✗ Incorrect
AWS stores only the public key. The private key is kept by the user.
Which file do you use to connect to an EC2 instance via SSH?
✗ Incorrect
You use the private key file with your SSH client to connect securely.
What should you do if you suspect your private key is compromised?
✗ Incorrect
Creating a new key pair and updating the instance helps secure access.
Can you download the private key again from AWS after creating a key pair?
✗ Incorrect
AWS allows downloading the private key only once when you create the key pair.
What is the main purpose of using SSH key pairs instead of passwords?
✗ Incorrect
SSH key pairs provide stronger security than passwords by using cryptographic keys.
Explain how SSH key pairs work to secure access to AWS EC2 instances.
Think about the two keys and their roles in connection.
You got /4 concepts.
Describe the steps you would take if you lose your private key for an EC2 instance.
Focus on recovery and maintaining secure access.
You got /4 concepts.