Bird
0
0

You have an EC2 instance launched with key pair 'DevKey'. What will happen if you try to SSH using a different private key?

medium📝 service behavior Q4 of 15
AWS - EC2 Fundamentals
You have an EC2 instance launched with key pair 'DevKey'. What will happen if you try to SSH using a different private key?
AThe instance will automatically accept the new key
BSSH connection will succeed without any issues
CSSH connection will be denied due to authentication failure
DAWS will send a notification to update the key
Step-by-Step Solution
Solution:
  1. Step 1: Understand SSH key authentication

    SSH requires the private key matching the instance's public key for access.
  2. Step 2: Identify outcome of using wrong private key

    Using a different private key causes authentication failure and denies access.
  3. Final Answer:

    SSH connection will be denied due to authentication failure -> Option C
  4. Quick Check:

    Wrong private key = denied SSH access [OK]
Quick Trick: Only matching private key grants SSH access [OK]
Common Mistakes:
MISTAKES
  • Assuming any key works
  • Thinking AWS auto-updates keys

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes