AWS – Now DynamoDB can return the throughput capacity consumed by PartiQL API calls to help you optimize your queries and throughput costs
Amazon DynamoDB supports PartiQL – a SQL-compatible query language that lets you query, insert, update, and delete table data in DynamoDB. Now DynamoDB PartiQL APIs support ReturnConsumedCapacity, an optional parameter that returns the total read and write capacity consumed, along with statistics for the table and any indexes involved in an operation, to help you optimize your queries and throughput costs.
Read More for the details.