Bird
0
0

You tried to create an AMI with this command:

medium📝 Debug Q14 of 15
AWS - EC2 Fundamentals
You tried to create an AMI with this command:
aws ec2 create-image --instance i-0abc123def456 --name MyImage
But it failed. What is the error?
AInstance ID format is incorrect
BMissing required parameter <code>--instance-id</code>
CAMI name is invalid
DYou cannot create AMI from a running instance
Step-by-Step Solution
Solution:
  1. Step 1: Check the command parameters

    The command uses --instance instead of the required --instance-id parameter.
  2. Step 2: Identify the cause of failure

    The AWS CLI expects --instance-id to specify the instance; missing this causes failure.
  3. Final Answer:

    Missing required parameter --instance-id -> Option B
  4. Quick Check:

    Use --instance-id to specify instance [OK]
Quick Trick: Use --instance-id, not --instance [OK]
Common Mistakes:
MISTAKES
  • Using wrong parameter name
  • Assuming instance ID format error
  • Thinking AMI can't be made from running instance

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes