Getting lambda response when calling lambda through SQS

You can't / don't. If you want a response from the lambda invoke the lambda directly and synchronously. Putting a queue between you and the lambda explicitly decouples your script from the lambda.

You could include some path / identifier in the message which tells the lambda where to put the response, e.g. under what dynamodb entry or into which S3 key. And then your script would need to poll that target location for an update from the lambda. But that to me sounds overly complicated and I am not sure what you gain over just calling the lambda directly.