Courseiva
Continuous Improvement for Existing SolutionseasyMultiple ChoiceObjective-mapped

SAP-C02 Continuous Improvement for Existing Solutions Practice Question

A company is using AWS CloudTrail to log all API activity. The security team wants to be alerted when an IAM user creates a new access key. What is the simplest way to achieve this?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Create an Amazon EventBridge rule that matches the 'CreateAccessKey' API call and sends an SNS notification.

Amazon EventBridge can be configured with a rule that matches the 'CreateAccessKey' API call from CloudTrail and sends an SNS notification to alert the security team. Option A is incorrect because S3 event notifications are triggered by object-level operations (e.g., object created/deleted) in the S3 bucket, not by API calls logged by CloudTrail. Option B is incorrect because enabling log file validation on a CloudTrail trail only ensures the integrity of log files, it does not generate alerts. Option C is incorrect because AWS Config rules evaluate the configuration state of AWS resources (e.g., whether an IAM user has a key older than 90 days), not real-time API calls.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Configure an S3 event notification on the CloudTrail log bucket to trigger a Lambda function.

    Why it's wrong here

    S3 events are not for real-time API monitoring.

  • Set up a CloudTrail trail with log file validation enabled.

    Why it's wrong here

    Log file validation does not provide alerts.

  • Use AWS Config to create a rule that checks for access keys.

    Why it's wrong here

    AWS Config evaluates resource configurations, not API events.

  • Create an Amazon EventBridge rule that matches the 'CreateAccessKey' API call and sends an SNS notification.

    Why this is correct

    EventBridge can filter CloudTrail events and trigger actions.

Quick reference

AWS S3 Storage Class Comparison

Storage ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

About these practice questions

Courseiva writes every SAP-C02 question from scratch — 1,660 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This SAP-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SAP-C02 exam.