title: Limit and sort DynamoDB results with FilterExpression PYTHON
body: <p>Hi can you please guide me how can I <strong>limit</strong> the number of results by using the <strong>filter expression</strong>.
  I cant use a key method and need to user a filter by <strong>attribute</strong>.
  Please review my code below and in the below code it returns me like 500 records in response but I need to get only 10 latest</p>
  <pre><code>   import json
  import boto3
  from boto3.dynamodb.conditions import Key, Attr
  
  dynamodb = boto3.resource('dynamodb')
  table = dynamodb.Table('users')
  
  def lambda_handler(event, context):
      response = table.scan(
          FilterExpression=Attr('age').eq('30') &amp; Attr('created_at').lt('2020-01-01T00:00:00') &amp; Attr('status').eq('enabled')
      )
      items = response['Items']
      #loadjson = json.stringify(event)
      #for data in event['data']:
      #    print(data['key'])
      return items   
  </code></pre>