So far, we covered object storage, but how about that metadata storage we were interested in? We could use the Lambda function to extract the metadata from the photo file and then upload that as a separate file to the same bucket, but that would make searching across the objects a challenge. Instead, what would be more useful is a database to persist the information. Because we're not dealing with relational data, a NoSQL document and key-value store is a perfect fit. Our natural choice from here is to use the serverless NoSQL database, Amazon DynamoDB.
In this section, we will learn about the concepts of DynamoDB, find out how to trigger a Lambda function with DynamoDB, and dive into how to use the SDK to make queries.