Question 74:
You have an EC2 instance (i-01234567890123456) in production that has a software issue. To troubleshoot the issue, you need to take an AMI from the instance using AWS CLI. When the image is being created, the instance must not be rebooted. Otherwise, some running scripts will be interrupted. Which of the following AWS CLI commands would you use?
Answer options:
A.aws ec2 create-image \ --instance-id i-01234567890123456 \ --name "My_Image" \ --reboot B.aws ec2 create-image \ --instance-id i-01234567890123456 \ --name "My_Image" \ --no-reboot C.aws ec2 create-image \ --instance-id i-01234567890123456 \ --name "My_Image" \ --no-dry-run D.aws ec2 create-image \ --instance-id i-01234567890123456 \ --name "My_Image"