You asked Claude Code to add pagination to your order history endpoint. It generated a clean function — listOrdersByUser() — using a DynamoDB Scan with a Limit parameter. It compiled. Tests passed. You shipped it.
Three days later your AWS bill had a line item you didn't recognize: 47 million read capacity units consumed in 72 hours. The Orders table has 50M rows. Scan reads every one of them regardless of Limit — Limit only controls how many results come back, not how many items DynamoDB reads.
Claude Code didn't know your table had 50M rows. It didn't know you had a GSI on userId. It guessed, and the guess was expensive.
infrawise · npm
What AI Assistants Don't Know About Your Infrastructure






