(Choose 1 answer)
You have migrated an on-premise SQL Server database to an Amazon Relational Database Service (RDS)database attached to a VPC inside a private subnet. Also, the related Java application, hosted on-premise, has been moved to an Amazon Lambda function.
Which of the following should you implement to connect AWS Lambda function to its RDS instance?
A. Configure lambda to connect to the public subnet that will give internet access and use Security Group to access RDS inside the private subnet
B. Configure Lambda to connect to VPC with private subnet and Security Group needed to access RDS
C. Use Environment variables to pass in the RDS connection string
D. Use Lambda layers to connect to the internet and RDS separately
El 21