AWS Certified SysOps Administrator – Associate — Question 341

A company is transitioning away from applications that are hosted on Amazon EC2 instances. The company wants to implement a serverless architecture that uses Amazon S3, Amazon API Gateway, AWS Lambda, and Amazon CloudFront. As part of this transition, the company has Elastic IP addresses that are unassociated with any EC2 instances after the EC2 instances are terminated.

A SysOps administrator needs to automate the process of releasing all unassociated Elastic IP addresses that remain after the EC2 instances are terminated.

Which solution will meet this requirement in the MOST operationally efficient way?

Answer options

Correct answer: A

Explanation

Option A is the most operationally efficient choice because it utilizes the native AWS Config managed rule 'eip-attached' combined with an out-of-the-box AWS Systems Manager Automation runbook (AWS-ReleaseElasticIP) to automatically remediate unassociated IPs without writing any custom code. Options B, C, and D all require writing, testing, and maintaining custom AWS Lambda functions, which increases development and operational overhead. Additionally, using CloudFormation (Option C) or Trusted Advisor (Option B) for this type of event-driven cleanup is overly complex and architecturally incorrect.