AWS Certified Solutions Architect – Associate (SAA-C02) — Question 287

A company is designing an internet-facing web application. The application runs on Amazon EC2 for Linux-based instances that store sensitive user data in
Amazon RDS MySQL Multi-AZ DB instances. The EC2 instances are in public subnets, and the RDS DB instances are in private subnets. The security team has mandated that the DB instances be secured against web-based attacks.
What should a solutions architect recommend?

Answer options

Correct answer: C

Explanation

Option C is correct because AWS WAF integrates directly with the Application Load Balancer to filter out malicious web exploits before they reach the backend, and configuring the RDS security group to reference the web server security group ensures secure, scalable, and restricted database access. Options A and B are incorrect because using individual EC2 instance IPs in security groups is not scalable under Auto Scaling, and moving databases to public subnets violates security best practices. Option D is incorrect because Auto Scaling groups manage EC2 instances, not RDS instances, and allowing open inbound access on port 3306 introduces a severe security vulnerability.