Ends in

AWS Cloud Practitioner Sale - Get a Chance to Win FREE Access to our new DEA Practice Exams

Find answers, ask questions, and connect with our
community around the world.

Home Forums AWS AWS Certified Solutions Architect Professional Question on Lambda connectivity to VPC hosted DB

  • Question on Lambda connectivity to VPC hosted DB

  • varun-mathur

    April 30, 2020 at 6:14 am

    For the following question, adding a NAT GW is indicated as a correct option. However, the question says the function worked before (ie, NAT was present already), and has stopped working after DB interaction was added. Please clarify.

    A serverless application is using a Lambda function which fetches data from a public REST API as part of its processing. There is a new requirement to configure the function to store the results to a database hosted in a virtual private cloud (VPC) in your account. You have provided the additional VPC-specific configuration information which includes the subnet IDs and security group IDs. However, your function had stopped working and could not complete the processing after your change.

    Which of the following should you do to fix this issue? (Choose 2)

  • Jon-Bonso

    May 1, 2020 at 9:08 am

    Hi Varun,

    Take note that it is a common misconception that the “NAT was present already” simply because the Lambda function is working properly.

    Please refer to the AWS documentation below:

    By default, Lambda runs your functions in a secure VPC with access to AWS services and the internet. The VPC is owned by Lambda and does not connect to your account’s default VPC. When you connect a function to a VPC in your account, it does not have access to the internet unless your VPC provides access.



    Let us know if you need further assistance. The Tutorials Dojo team is dedicated to help you pass your AWS exam on your first try!


    Jon Bonso @ Tutorials Dojo

Viewing 1 - 2 of 2 replies

Log in to reply.

Original Post
0 of 0 posts June 2018