AWS Certified Security – Specialty (SCS-C02) — Question 223

A company uses Amazon Cognito as an OAuth 2.0 identity platform for its web and mobile applications. The company needs to capture successful and unsuccessful login attempts. The company also needs to query the data about the login attempts.

Which solution will meet these requirements?

Answer options

Correct answer: B

Explanation

The correct answer is B, as enabling AWS CloudTrail to log authentication events provides a comprehensive audit trail, which can then be queried using Amazon Athena. Other options either do not capture the necessary login attempt data or suggest methods that do not align with the requirements of successful and unsuccessful login attempts.