
Answer-first summary for fast verification
Answer: Utilize a post-authentication Lambda trigger in Amazon Cognito to send email notifications via Amazon SES.
The most operationally efficient solution to send email notifications for login activities using Amazon Cognito user pools with MFA is to use a post-authentication Lambda trigger. This trigger is invoked automatically each time a user logs in, eliminating the need for additional client-side API calls or log subscription filters. Option B leverages Amazon Cognito's built-in feature to execute a Lambda function that uses Amazon SES to send the email notification, making it the most suitable and efficient approach.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
How can a company efficiently send login notifications via email for an application using Amazon Cognito user pools with MFA, ensuring secure user record access?
A
Implement an AWS Lambda-triggered function with Amazon SES for email notifications, invoked by an API Gateway after client-side login confirmation.
B
Utilize a post-authentication Lambda trigger in Amazon Cognito to send email notifications via Amazon SES.
C
Deploy a Lambda function with Amazon SES for email notifications, activated by a CloudWatch Logs subscription filter based on login status.
D
Stream Cognito logs to Kinesis Data Firehose and use a Lambda function to process these logs, sending email notifications via Amazon SES based on user login status.
No comments yet.