Working with data in dynamodb is different from SQL databases. We are use to use select queries to search data.
In dynamodb it is different. I am using dynamodb scan function to search for particular values in my database. Here I am displaying values of ColumnA by filtering particular value from ColumnB.
You can find the code here.