exam questions

Exam AWS Certified Developer Associate All Questions

View all questions & answers for the AWS Certified Developer Associate exam

Exam AWS Certified Developer Associate topic 1 question 9 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 9
Topic #: 1
[All AWS Certified Developer Associate Questions]

A company has an application that uses Amazon Cognito user pools as an identity provider. The company must secure access to user records. The company has set up multi-factor authentication (MFA). The company also wants to send a login activity notification by email every time a user logs in.
What is the MOST operationally efficient solution that meets this requirement?

  • A. Create an AWS Lambda function that uses Amazon Simple Email Service (Amazon SES) to send the email notification. Add an Amazon API Gateway API to invoke the function. Call the API from the client side when login confirmation is received.
  • B. Create an AWS Lambda function that uses Amazon Simple Email Service (Amazon SES) to send the email notification. Add an Amazon Cognito post authentication Lambda trigger for the function.
  • C. Create an AWS Lambda function that uses Amazon Simple Email Service (Amazon SES) to send the email notification. Create an Amazon CloudWatch Logs log subscription filter to invoke the function based on the login status.
  • D. Configure Amazon Cognito to stream all logs to Amazon Kinesis Data Firehose. Create an AWS Lambda function to process the streamed logs and to send the email notification based on the login status of each user.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
sindra
Highly Voted 2 years, 7 months ago
Selected Answer: B
agreed with B https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-post-authentication.html
upvoted 16 times
...
sumanshu
Most Recent 4 months, 1 week ago
Selected Answer: B
D) Eliminated: This approach is designed for real-time log analysis or batch processing, not for immediate notifications like sending an email after a login
upvoted 1 times
sumanshu
4 months, 1 week ago
A) Eliminated: The client-side application must handle invoking the API after login confirmation, which complicates the architecture and introduces potential security risks (e.g., exposure of the API endpoint or credentials)
upvoted 1 times
sumanshu
4 months, 1 week ago
B) Correct: The function will automatically be invoked whenever a user logs in, making the solution operationally efficient because it is natively integrated with Cognito and requires no additional APIs or log processing pipelines
upvoted 1 times
sumanshu
4 months, 1 week ago
C) Eliminated: Cognito logs can be streamed to CloudWatch, but filtering login events from logs is indirect and inefficient.
upvoted 1 times
...
...
...
...
Melisa202401
1 year ago
Selected Answer: A
Amazon Cognito user pools integrate with API Gateway or ALB Process is: user athenticate with CUP, receive JWT (token), then pass to API Gateway API Gateway will evaluate JWT wwith CUP, if it is valid, allow access to Lambda (have a duty to send email)
upvoted 1 times
Melisa202401
1 year ago
sorry I change to B Because the question have the presence of MFA
upvoted 1 times
...
...
AsmaZoheb
1 year, 3 months ago
I think so for me is B ,for authentication Cognito is perfect answer
upvoted 1 times
...
rcaliandro
1 year, 10 months ago
Selected Answer: B
In order to send an email every time a user is authenticated with amazon congito, we need to use the post authentication event and assign to it the lambda that contains the logic. Inside this lambda we can log user and device information and of course call SES to send an email notification of successful Authentication
upvoted 3 times
...
LeoUrlian
2 years ago
Selected Answer: B
it is B
upvoted 1 times
...
Krt5894
2 years, 2 months ago
Selected Answer: B
B it is. https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-post-authentication.html
upvoted 1 times
...
Amdrea
2 years, 7 months ago
Selected Answer: B
it should be B
upvoted 2 times
...
m_t_kd
2 years, 7 months ago
Answer is B https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-post-confirmation.html
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago