nerdexam
AmazonAmazon

DVA-C02 · Question #87

DVA-C02 Question #87: Real Exam Question with Answer & Explanation

The correct answer is B: Redeploy the Lambda function in the same subnet as the RDS instance. Ensure that the RDS. To solve this problem, the developer should redeploy the Lambda function in the same subnet as the RDS instance and ensure that the RDS security group allows traffic from the Lambda function. This will allow the Lambda function to access the RDS database within the private subnet

Submitted by mateo_ar· Mar 5, 2026Development with AWS Services

Question

A developer creates a VPC named VPC-A that has public and private subnets. The developer also creates an Amazon RDS database inside the private subnet of VPC-A. To perform some queries, the developer creates an AWS Lambda function in the default VPC. The Lambda function has code to access the RDS database. When the Lambda function runs, an error message indicates that the function cannot connect to the RDS database. How can the developer solve this problem?

Options

  • AModify the RDS security group. Add a rule to allow traffic from all the ports from the VPC CIDR
  • BRedeploy the Lambda function in the same subnet as the RDS instance. Ensure that the RDS
  • CCreate a security group for the Lambda function. Add a new rule in the RDS security group to
  • DCreate an IAM role. Attach a policy that allows access to the RDS database. Attach the role to the

Explanation

To solve this problem, the developer should redeploy the Lambda function in the same subnet as the RDS instance and ensure that the RDS security group allows traffic from the Lambda function. This will allow the Lambda function to access the RDS database within the private subnet of VPC-A. The developer should also make sure that the Lambda function is configured with the appropriate network settings and permissions to access resources within the VPC.

Community Discussion

No community discussion yet for this question.

Full DVA-C02 PracticeBrowse All DVA-C02 Questions