A developer is configuring a backend microservice running on AWS Lambda within a custom VPC. The Lambda function must connect to a private Amazon Aurora PostgreSQL database in the same VPC and retrieve secure configurations from AWS Systems Manager Parameter Store. The company's security policy strictly prohibits internet gateways and NAT gateways. The developer sets up an Interface VPC Endpoint for Systems Manager. Which two configurations must the developer implement to secure this traffic and establish connectivity? (Select TWO.)
- Configure the database's security group to allow inbound TCP traffic on port from the security group assigned to the Lambda function.Cevap
- Configure the security group of the Systems Manager Interface VPC Endpoint to allow inbound HTTPS (port ) traffic from the security group assigned to the Lambda function.Cevap
- CAdd a route in the private subnet route table pointing destination to the Systems Manager VPC Endpoint network interface.
- DConfigure the private subnet's Network Access Control List (NACL) to allow inbound traffic from the database, relying on the stateful nature of NACLs to permit return traffic.
- EModify the Lambda execution role's trust policy to allow the Systems Manager service endpoint (ssm.amazonaws.com) to assume the role.
Cevap
Configure the database's security group to allow inbound TCP traffic on port from the security group assigned to the Lambda function, and configure the security group of the Systems Manager Interface VPC Endpoint to allow inbound HTTPS (port ) traffic from the security group assigned to the Lambda function.
The database security group must allow inbound PostgreSQL traffic (port ) from the Lambda function's security group. Interface VPC endpoints use security groups to control incoming traffic; therefore, the Systems Manager endpoint's security group must permit inbound HTTPS (port ) traffic from the Lambda function's security group. Since security groups are stateful, configuring these inbound rules automatically allows the corresponding outbound/return traffic.
Adım Adım Çözüm
Anahtar Kavram
VPC security controls (Security Groups, NACLs, and Interface VPC Endpoints) for private AWS service integrations.
Tahmini Süre:2m 30s