Bird
0
0

You receive the error "InvalidKeyPair.NotFound" when launching an EC2 instance. What is the most probable reason?

medium📝 Debug Q6 of 15
AWS - EC2 Fundamentals
You receive the error "InvalidKeyPair.NotFound" when launching an EC2 instance. What is the most probable reason?
AThe specified key pair does not exist in the selected AWS region
BThe AMI ID used is invalid or deprecated
CThe instance type is not supported in the region
DThe security group is not attached to the instance
Step-by-Step Solution
Solution:
  1. Step 1: Understand the error

    "InvalidKeyPair.NotFound" means the key pair name provided is not found.
  2. Step 2: Check region scope

    Key pairs are region-specific; using a key pair from another region causes this error.
  3. Final Answer:

    The specified key pair does not exist in the selected AWS region -> Option A
  4. Quick Check:

    Key pairs must exist in the region where instance launches [OK]
Quick Trick: Key pairs are region-specific; verify region matches [OK]
Common Mistakes:
  • Assuming AMI or instance type causes this error
  • Ignoring region differences for key pairs
  • Confusing security group issues with key pair errors

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes