nerdexam
Amazon

SCS-C02 · Question #57

A company has a legacy application that runs on a single Amazon EC2 instance. A security audit shows that the application has been using an IAM access key within its code to access an Amazon S3…

The correct answer is A. Configure Amazon Macie to identify any objects in DOC-EXAMPLE-BUCKET1 that contain PII D. Use Amazon Athena to query the CloudTrail logs in DOC-EXAMPLE-BUCKET2 for any API calls. Use macie for sensitive data discovery. Use Athena for API searches. Using Athena with CloudTrail logs is a powerful way to enhance your analysis of AWS service activity. For example, you can use queries to identify trends and further isolate activity by attributes, such as…

Submitted by noor.lb· Mar 6, 2026Threat Detection and Incident Response

Question

A company has a legacy application that runs on a single Amazon EC2 instance. A security audit shows that the application has been using an IAM access key within its code to access an Amazon S3 bucket that is named DOC-EXAMPLE-BUCKET1 in the same AWS account. This access key pair has the s3:GetObject permission to all objects in only this S3 bucket. The company takes the application offline because the application is not compliant with the company's security policies for accessing other AWS resources from Amazon EC2. A security engineer validates that AWS CloudTrail is turned on in all AWS Regions. CloudTrail is sending logs to an S3 bucket that is named DOC-EXAMPLE-BUCKET2. This S3 bucket is in the same AWS account as DOC-EXAMPLE-BUCKET1. However, CloudTrail has not been configured to send logs to Amazon CloudWatch Logs. The company wants to know if any objects in DOC-EXAMPLE-BUCKET1 were accessed with the IAM access key in the past 60 days. If any objects were accessed, the company wants to know if any of the objects that are text files (.txt extension) contained personally identifiable information (PII). Which combination of steps should the security engineer take to gather this information? (Choose two.)

Options

  • AConfigure Amazon Macie to identify any objects in DOC-EXAMPLE-BUCKET1 that contain PII
  • BUse Amazon CloudWatch Logs Insights to identify any objects in DOC-EXAMPLE-BUCKET1 that
  • CUse Amazon OpenSearch Service (Amazon Elasticsearch Service) to query the CloudTrail logs in
  • DUse Amazon Athena to query the CloudTrail logs in DOC-EXAMPLE-BUCKET2 for any API calls
  • EUse AWS Identity and Access Management Access Analyzer to identify any API calls that used

How the community answered

(28 responses)
  • A
    82% (23)
  • B
    11% (3)
  • C
    4% (1)
  • E
    4% (1)

Explanation

Use macie for sensitive data discovery. Use Athena for API searches. Using Athena with CloudTrail logs is a powerful way to enhance your analysis of AWS service activity. For example, you can use queries to identify trends and further isolate activity by attributes, such as Access Keys. A common application is to use CloudTrail logs to analyze operational activity for security and

Topics

#CloudTrail forensics#Athena log analysis#access key compromise#Amazon Macie PII

Community Discussion

No community discussion yet for this question.

Full SCS-C02 Practice