Connecting Lambda with DynamoDB

I’m trying to connect my lambda function with a database so I could read and speak data from the database. The course currently only focuses on saving session attributes.

Can anyone provide some instructions on how to read data from an existing table in DynamoDB?