Amazon

SOA-C03 practice question 14

AWS Certified CloudOps Engineer - Associate (SOA-C03) · free question 14 of 20

Question

A company hosts an FTP server on Amazon EC2 instances. In the company’s AWS environment, AWS Security Hub sends findings for the EC2 instances to Amazon EventBridge because the FTP port has become publicly exposed in the security groups that are attached to the instances. A CloudOps engineer wants an automated solution to remediate the Security Hub finding and any similar exposed port findings. The CloudOps engineer wants to use an event-driven approach. Which solution will meet these requirements?
  • A. Configure the existing EventBridge event to stop the EC2 instances that have the exposed port.
  • B. Create a cron job for the FTP server to invoke an AWS Lambda function. Configure the Lambda function to modify the security group of the identified EC2 instances and to remove the instances that allow public access.
  • C. Create a cron job for the FTP server that invokes an AWS Lambda function. Configure the Lambda function to modify the server to use SFTP instead of FTP.
  • D. Configure the existing EventBridge event to invoke an AWS Lambda function. Configure the function to remove the security group rule that allows public access. Correct

Explanation

Option D is correct because it uses an event-driven approach by configuring the existing EventBridge event to automatically invoke an AWS Lambda function upon detection of a publicly exposed port via Security Hub findings. The Lambda function can then programmatically remove the security group rule that allows public access, thereby remediating the issue without manual intervention.

Need the theory? Learn it free in the SOA-C03 course on Godlike Academy

Practice the whole free set

Answer all 20 free SOA-C03 questions with instant feedback, or unlock all 129 questions with Learn and Exam modes.