Question: can aws lambda return value?
Answer: Optionally, the handler can return a value. ... For example, AWS Lambda console uses the RequestResponse invocation type, so when you invoke the function using the console, the console will display the returned value. If the handler returns objects that can't be serialized by json. dumps , the runtime returns an error.