
Ultimate access to all questions.
Deep dive into the quiz with AI chat providers.
We prepare a focused prompt with your quiz and certificate details so each AI can offer a more tailored, in-depth explanation.
A company wants to deploy a new public web application on AWS. The application includes a web server tier that uses Amazon EC2 instances. The application also includes a database tier that uses an Amazon RDS for MySQL DB instance.
The application must be secure and accessible for global customers that have dynamic IP addresses.
How should a solutions architect configure the security groups to meet these requirements?
A
Configure the security group for the web servers to allow inbound traffic on port 443 from 0.0.0.0/0. Configure the security group for the DB instance to allow inbound traffic on port 3306 from the security group of the web servers.
B
Configure the security group for the web servers to allow inbound traffic on port 443 from the IP addresses of the customers. Configure the security group for the DB instance to allow inbound traffic on port 3306 from the security group of the web servers.
C
Configure the security group for the web servers to allow inbound traffic on port 443 from the IP addresses of the customers. Configure the security group for the DB instance to allow inbound traffic on port 3306 from the IP addresses of the customers.
D
Configure the security group for the web servers to allow inbound traffic on port 443 from 0.0.0.0/0. Configure the security group for the DB instance to allow inbound traffic on port 3306 from 0.0.0.0/0.
Explanation:
Correct Answer: A
Why Option A is correct:
0.0.0.0/0) because customers have dynamic IP addresses and are globally distributed. Restricting to specific IP addresses would not work with dynamic IPs.Why other options are incorrect:
Option B: Incorrect because customers have dynamic IP addresses, so specifying specific IP addresses would not work. The web servers need to be accessible from anywhere.
Option C: Incorrect for two reasons:
Option D: Incorrect because exposing the database (port 3306) to 0.0.0.0/0 would create a major security vulnerability by making the database publicly accessible.
Key Security Principles Applied:
0.0.0.0/0 for web tier accommodates customers with changing IP addressesBest Practice: Always keep databases in private subnets with security groups that only allow traffic from application servers, never from the public internet.