AWS Certified Data Analytics – Specialty — Question 46

An Amazon Redshift database contains sensitive user data. Logging is necessary to meet compliance requirements. The logs must contain database authentication attempts, connections, and disconnections. The logs must also contain each query run against the database and record which database user ran each query.
Which steps will create the required logs?

Answer options

Correct answer: C

Explanation

The correct answer is C because enabling audit logging for Amazon Redshift directly captures all necessary authentication attempts, connections, disconnections, and queries along with the associated users. Option A focuses on network traffic monitoring, which does not provide the specific log details required. Option B involves using AWS IAM and CloudTrail, but does not specifically address the need for detailed query logging. Option D pertains to obtaining reports from AWS Artifact, which is not relevant for real-time logging requirements.