Question 132:
A photo-sharing application uses Amazon Aurora MySQL to store user data. A development team would like to enhance the application by sending a welcome email every time a new user is created. They’ve implemented an AWS Lambda function that will generate email text and send it using AWS SES. What is the optimal solution for triggering the Lambda function when a new user is created?
Answer options:
A.Update the application code to invoke the AWS Lambda function when it inserts a new user in the Amazon Aurora database. B.Create a trigger and stored procedure in the Amazon Aurora database. In the stored procedure, call mysql.lambda_async function to trigger the AWS Lambda function. C.Configure Audit Log export on the Amazon Aurora database. Configure CloudWatch subscription filter to trigger the AWS Lambda function. D.Configure Audit Log export on the Amazon Aurora database. Configure CloudTrail SNS notification. Create an AWS Lambda subscription to the SNS topic.