Question 256:
For security purposes, a bastion host (EC2) is created in the production environment. Users must first connect to the bastion host in order to SSH to other EC2 instances in production. Your manager is worried that someone may accidentally modify the SSH key of the bastion host. In that case, no one can SSH to the bastion host or EC2 instances in production. Which method would you use to restore the bastion host if the issue happens quickly?
Answer options:
A.Adjust the security group of the bastion host to allow limited IP addresses so that only relevant people can access the instance. B.Configure a CloudFormation stack to manage the bastion host. Use an EBS lifecycle policy in Data Lifecycle Manager to automatically create EBS snapshots for the bastion instance. C.Save the SSH private key in an S3 bucket and rotate the key every month to ensure that the key is not leaked. D.Enable AWS Config rule to monitor if the SSH key has been changed for the bastion host. Enable CloudTrail to monitor activities on the instance.