An application runs on Amazon EC2 instances within a private subnet (). The application must query an Amazon RDS PostgreSQL database located in a dedicated database subnet (). Additionally, the application must securely retrieve database credentials from AWS Secrets Manager without accessing the public internet. The solutions architect needs to configure network security controls to allow only the necessary traffic flows.
Which TWO configurations should the solutions architect implement to meet these requirements securely? (Select TWO.)
- Create an interface VPC endpoint for AWS Secrets Manager in the private subnet, and configure the RDS database security group to allow inbound traffic on port from the security group of the EC2 instances.Cevap
- Associate a security group with the Secrets Manager interface VPC endpoint that allows inbound TCP traffic on port from the security group of the EC2 instances.Cevap
- CConfigure the database subnet's network ACL to allow inbound traffic on port from the security group of the EC2 instances.
- DConfigure the private subnet's network ACL to allow outbound HTTPS traffic on port to the AWS Secrets Manager VPC endpoint, but do not configure any inbound rules on the network ACL since it automatically permits return traffic.
- EDeploy AWS WAF on the private subnet to inspect and filter all SQL query traffic from the EC2 instances to the Amazon RDS PostgreSQL database.
Cevap
To securely allow this communication, the solutions architect must configure the RDS database security group to allow inbound traffic from the EC2 instances' security group on port , and configure a security group for the AWS Secrets Manager interface VPC endpoint that allows inbound HTTPS traffic on port from the EC2 instances' security group.
To establish secure, private connectivity, the solutions architect must configure the RDS database security group to allow inbound PostgreSQL traffic (port ) directly from the EC2 instances' security group. For AWS Secrets Manager, an interface VPC endpoint must be created, and its associated security group must allow inbound HTTPS traffic (port ) from the EC2 instances' security group. These two settings ensure secure, least-privilege access.
Adım Adım Çözüm
Anahtar Kavram
VPC network security involves configuring stateful security groups and stateless network ACLs. Security groups operate at the instance level and support rules referencing other security groups. Network ACLs operate at the subnet level, are stateless, and only support IP CIDR ranges.
Tahmini Süre:2m 0s