Courseiva
Continuous Improvement for Existing SolutionseasyMultiple ChoiceObjective-mapped

SAP-C02 Continuous Improvement for Existing Solutions Practice Question

A company is using Amazon RDS for MySQL and needs to capture slow query logs for performance tuning. The logs must be stored for 30 days for analysis. What is the MOST cost-effective 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

Enable slow query logging and stream logs to Amazon CloudWatch Logs with a retention policy of 30 days.

The most cost-effective because Amazon RDS for MySQL can natively publish slow query logs to Amazon CloudWatch Logs with minimal setup. By setting a retention policy of 30 days in CloudWatch Logs, you avoid additional storage costs and complex configurations. Option B is not directly supported; exporting logs to S3 requires extra steps (e.g., via CloudWatch Logs export) and incurs added cost. Option A adds unnecessary complexity and cost with SQS. Option C is not feasible as RDS does not write slow query logs to EBS by default and snapshotting is not a log management solution.

Answer analysis

Option-by-option breakdown

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

  • Enable slow query logging and use an RDS event subscription to send logs to an SQS queue for processing.

    Why it's wrong here

    Event subscriptions are for events, not for streaming logs.

  • Enable slow query logging and store logs in an S3 bucket with lifecycle policy to delete after 30 days.

    Why it's wrong here

    RDS does not natively write logs to S3; additional setup is needed.

  • Enable slow query logging and store logs on the RDS instance's EBS volume, then take daily snapshots.

    Why it's wrong here

    Logs on EBS volume are not easily accessible and snapshots are costly.

  • Enable slow query logging and stream logs to Amazon CloudWatch Logs with a retention policy of 30 days.

    Why this is correct

    RDS can publish logs to CloudWatch Logs, where retention is configurable.

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

This SAP-C02 question is part of Courseiva's 1,660-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam 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.