In this section, we will update the existing functions to read and write from/to the DynamoDB table. The following diagram describes the target architecture:
![](https://static.packt-cdn.com/products/9781789134612/graphics/assets/ca81f50b-4e81-4c21-9871-6cd97eeabfc6.png)
API Gateway will forward incoming requests to the target Lambda function, which will call the corresponding DynamoDB operation on the movies table.