A user has launched an EC2 instance. The instance got terminated as soon as it was launched. Which of the below mentioned options is not a possible reason for this?
A.
The user account has reached the maximum EC2 instance limit
B.
The snapshot is corrupt
C.
The AMI is missing. It is the required part
D.
The user account has reached the maximum volume limit
Suggested Answer:A🗳️
When the user account has reached the maximum number of EC2 instances, it will not be allowed to launch an instance. AWS will throw an 'InstanceLimitExceeded' error. For all other reasons, such as ג€AMI is missing partג€, ג€Corrupt Snapshotג€ or ג€Volume limit has reachedג€ it will launch an EC2 instance and then terminate it.
The EC2 immediately terminate by following reason:
- You've exceeded your EBS volume limits. For more information, see Instance volume limits.
- An EBS snapshot is corrupted.
- The root EBS volume is encrypted and you do not have permissions to access the KMS key for decryption.
- A snapshot specified in the block device mapping for the AMI is encrypted and you do not have permissions to access the KMS key for decryption or you do not have access to the - -KMS key to encrypt the restored volumes.
- The instance store-backed AMI that you used to launch the instance is missing a required part (an image.part.xx file).
ref: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/troubleshooting-launch.html#troubleshooting-launch-internal
Correct Answer: A
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/troubleshooting-launch.html#troubleshooting-launch-internal
The question states that the instance got terminated as soon as it is launched.
Options B, C, and D can be a reason for this. But we need to know which one of these is not a reason for this behavior. Option A is the answer because if we have reached the maximum number of EC2 instance it won't even launch the instance.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
aidenpearce01
8Â months agoTroyMcLure
1Â year agoawscertified
1Â year, 1Â month ago