A Lambda handler receives API Gateway REST API Lambda proxy events and supports repeated query parameters and binary request bodies. A developer is creating direct Lambda test events for these paths; which event constructions accurately represent the gateway's input? (Choose three.)
Choose 3 answers
Show the answer
Correct answersA. Represent a JSON request body as a JSON-encoded string with isBase64Encoded set to false.B. Represent a binary body as a base64 string with isBase64Encoded set to true.C. Represent repeated query values as arrays in multiValueQueryStringParameters.
AWhy this is right: A textual JSON request arrives as a string that the handler must parse, without base64 encoding.
BWhy this is right: The encoded string and flag let the handler recognize and decode a binary request body.
CWhy this is right: This field preserves multiple values for the same query parameter as an array.
DWhy not this: REST API proxy events carry body as a string, not an already-parsed JSON object.
EWhy not this: The version 2.0 request structure represents an HTTP API payload rather than a REST API proxy event.
REST API proxy events carry repeated query values in multiValueQueryStringParameters and request bodies as strings; binary bodies use base64 with isBase64Encoded set to true. A parsed object in body does not reproduce the gateway's event contract, and the version 2.0 structure belongs to HTTP API payloads.