A company has a policy that requires all Amazon EC2 instances to have a specific set of tags. If an EC2 instance does not have the required tags, the noncompliant instance should be terminated. What is the MOST operationally efficient solution that meets these requirement? A. Create an Amazon EventBridge (Amazon CloudWatch Events) rule to send all EC2 instance state changes to an flaws Lambda function to determine if each instance is compliant. Terminate any noncompliant instances. B. Create an IAM policy that enforces all EC2 instance tag requirements. If the required tags are not in place for an instance, the policy will terminate noncompliant instance. C. Create an flaws Lambda function to determine if each EC2 instance is compliant and terminate an instance if it is noncompliant. Schedule the Lambda function to invoke every 5 minutes. D. Create an flaws Config rule to check if the required tags are present. If an EC2 instance is noncompliant, invoke an flaws Systems Manager Automation document to terminate the instance. Â Correct Answer: D This question is in SOA-C02 exam For getting AWS Certified SysOps Administrator - Associate
Please login or Register to submit your answer