For DynamoDB webservice we have:
dynamodb = boto3.resource('dynamodb')
and
client = boto3.client('dynamodb')
Both have Query and Scan methods. Are there any pros and cons using Query on a client object vs Resource object?
You can actually use both to interact with AWS API. But there are some differences. Client is a low level service access. Resource is higher level object oriented API. Most of the times, even on aws docs you'll see client is being used. Unless my requirements need something else, I stick to the official docs.