AWS Certified Developer Associate DVA-C02 Practice Question
You have been given the task to test an AWS Lambda function locally, which is designed to process JSON data from an Amazon API Gateway proxy integration. The function expects to receive a payload with a nested JSON object in the body that contains project details. Which of the following test events correctly emulates the expected format of the incoming event from API Gateway?
The correct answer is the one that adheres to the standard event structure that an AWS Lambda function expects from an API Gateway with proxy integration. This includes the correct use of 'httpMethod', 'body' with properly escaped JSON string, 'path', and 'requestContext'. The body must also be a string that is a serialized JSON object since the Lambda function will parse it as JSON. The correct option presents a nested JSON in a string format, properly serialized and escaped. Other options either present the body as an object instead of a string, improperly escape double quotes, or miss important property fields.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is an API Gateway and how does it relate to AWS Lambda?
Open an interactive chat with Bash
What is the structure of a typical Lambda function event from API Gateway?
Open an interactive chat with Bash
Why is it important for the 'body' in the event to be a serialized JSON string?
Open an interactive chat with Bash
AWS Certified Developer Associate DVA-C02
Deployment
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Oh snap!
Loading...
Loading...
Loading...
Information Technology Package Join Premium for Full Access