Bird
0
0

You want to automate EC2 instance creation with SSH access using a key pair. Which approach ensures the private key remains secure?

hard📝 Best Practice Q8 of 15
AWS - EC2 Fundamentals
You want to automate EC2 instance creation with SSH access using a key pair. Which approach ensures the private key remains secure?
AShare the private key via email to all users
BStore the private key in the EC2 user data script
CEmbed the private key in the AMI image
DGenerate the key pair outside AWS and import the public key only
Step-by-Step Solution
Solution:
  1. Step 1: Identify secure key management best practice

    Generating keys outside AWS and importing only the public key keeps private key secure.
  2. Step 2: Exclude insecure methods

    Storing private key in user data, AMI, or emailing it exposes the key to risk.
  3. Final Answer:

    Generate the key pair outside AWS and import the public key only -> Option D
  4. Quick Check:

    Keep private key private, import only public key [OK]
Quick Trick: Import public key, keep private key safe outside AWS [OK]
Common Mistakes:
  • Embedding private key in scripts or images
  • Sharing private key insecurely

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes