Bird
0
0

You have a Lambda function that needs to access a private database inside a VPC. What must you configure to allow this access?

hard📝 Application Q9 of 15
AWS - Lambda
You have a Lambda function that needs to access a private database inside a VPC. What must you configure to allow this access?
AAttach the Lambda function to the VPC with proper subnet and security group
BEnable public internet access for the Lambda function
CCreate an IAM role with S3 access
DUse AWS CloudFront to route traffic
Step-by-Step Solution
Solution:
  1. Step 1: Understand Lambda access to VPC resources

    Lambda must be configured to run inside the VPC with correct subnet and security group.
  2. Step 2: Evaluate other options

    Public internet access is insecure; IAM role with S3 access is unrelated; CloudFront is for content delivery.
  3. Final Answer:

    Attach the Lambda function to the VPC with proper subnet and security group -> Option A
  4. Quick Check:

    Lambda in VPC with subnet/security group = DB access [OK]
Quick Trick: Configure Lambda inside VPC with subnet and security group [OK]
Common Mistakes:
MISTAKES
  • Assuming public internet access solves private DB access
  • Confusing IAM roles with network access
  • Using CloudFront incorrectly for database access

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes