Complete the code to perform a strongly consistent read in DynamoDB.
response = table.get_item(Key={'id': '123'}, ConsistentRead=[1])Setting ConsistentRead=True ensures a strongly consistent read in DynamoDB.
Complete the code to perform an eventually consistent read in DynamoDB.
response = table.get_item(Key={'id': '456'}, ConsistentRead=[1])Setting ConsistentRead=False or omitting it performs an eventually consistent read.
Fix the error in the code to correctly request a consistent read.
response = table.get_item(Key={'id': '789'}, ConsistentRead=[1])The ConsistentRead parameter must be a boolean True, not a string or lowercase.
Fill both blanks to perform a query with a consistent read.
response = table.query(KeyConditionExpression=Key('userId').eq('user123'), [1]=[2])
Use ConsistentRead=True to get a strongly consistent query result.
Fill all three blanks to create a strongly consistent scan with a filter expression.
response = table.scan([1]=[2], [3]=Attr('status').eq('active'))
Use ConsistentRead=True and FilterExpression to scan with strong consistency and filter results.
