Free 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?

  • {"httpMethod": "POST", "body": "{"project": {"name": "New Project", "description": "An upcoming project."}}", "path": "/projects", "requestContext": {"httpMethod": "POST", "path": "/prod/projects"}, "isBase64Encoded": false}

  • {"httpMethod": "POST", "body": "{'project': {'name': 'New Project', 'description': 'An upcoming project.'}}", "path": "/projects", "requestContext": , "isBase64Encoded": false}

  • {"httpMethod": "POST", "body": "{"project": {"name": "New Project", "description": "An upcoming project"}}", "path": "/projects"}

  • {"method": "POST", "body": {"project": {"name": "New Project", "description": "An upcoming project."}}, "path": "/projects"}

This question's topic:
AWS Certified Developer Associate DVA-C02 / 
Deployment
Your Score:

Check or uncheck an objective to set which questions you will receive.