AWS - Lambda
You want your AWS Lambda handler to process an event and return a JSON response with status code 200 and a message from the event. Which handler structure is correct?
event first, then context. def lambda_handler(event, context):
return {'statusCode': 200, 'body': event['message']} follows this order.statusCode and body keys, which is the expected JSON response format.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions