AWS - Serverless Architecture
Given this Lambda event handler code snippet triggered by DynamoDB Streams:
What will this code print when a new item with id '123' is added to the DynamoDB table?
def lambda_handler(event, context):
for record in event['Records']:
if record['eventName'] == 'INSERT':
print(record['dynamodb']['NewImage']['id']['S'])
What will this code print when a new item with id '123' is added to the DynamoDB table?
