Courseiva
Continuous Improvement for Existing SolutionshardMultiple ChoiceObjective-mapped

SAP-C02 Continuous Improvement for Existing Solutions Practice Question

A company has a legacy application that runs on an EC2 instance with a large attached EBS volume. The application writes log files to the volume, and the volume is frequently full, causing application errors. The Solutions Architect needs to implement a solution to automatically manage disk space without application changes. Which solution meets these requirements?

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

Install the CloudWatch Logs agent and stream logs to CloudWatch Logs, then delete local logs.

The CloudWatch Logs agent can be installed to stream existing log files to CloudWatch Logs without modifying the application. After streaming, the agent can be configured to delete local log files to free disk space. This directly addresses the requirement to automatically manage disk space without application changes. Option C is incorrect because Amazon Data Lifecycle Manager (DLM) automates the creation and deletion of EBS snapshots, not the management of disk space within the volume. It does not delete log files or otherwise free in-volume space.

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 Lifecycle policy to transition log files to Amazon S3 Glacier after 30 days.

    Why it's wrong here

    S3 Lifecycle policies apply to objects in S3, not to files on an EBS volume. This does not help manage disk space on the EC2 instance.

  • Increase the EBS volume size and enable auto-scaling.

    Why it's wrong here

    Increasing the EBS volume size only postpones the problem; it does not automatically manage disk space. Enabling auto-scaling does not address the log filling issue.

  • Use a script with Amazon Data Lifecycle Manager to snapshot the volume and delete old snapshots.

    Why it's wrong here

    Amazon Data Lifecycle Manager (DLM) manages EBS snapshots, not disk space within the volume. It cannot delete log files or free in-volume space.

  • Install the CloudWatch Logs agent and stream logs to CloudWatch Logs, then delete local logs.

    Why this is correct

    The CloudWatch Logs agent can stream logs to CloudWatch Logs and then delete local log files, freeing disk space without application changes. This meets the requirement.

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.