Question 287 of 1,740
Monitoring and LogginghardMultiple ChoiceObjective-mapped

Quick Answer

The answer is to increase the batch size in the CloudWatch agent configuration. This reduces CPU usage by batching more log events into each HTTP API call, which lowers the frequency of network I/O and serialization overhead that drives high CPU consumption. On the AWS Certified DevOps Engineer Professional DOP-C02 exam, this scenario tests your understanding of the agent’s trade-off between latency and resource efficiency—a common trap is to mistakenly adjust the retention policy or throttle the agent, but those either risk data loss or don’t address the root cause. The key insight is that larger batches mean fewer requests, directly cutting CPU load while preserving every log entry. Remember the mnemonic: “Bigger batches, better CPU—no data lost, just fewer trips to the host.”

DOP-C02 Monitoring and Logging Practice Question

This DOP-C02 practice question tests your understanding of monitoring and logging. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A DevOps team is using Amazon CloudWatch Logs to collect application logs from multiple EC2 instances. They notice that some log entries are missing and that the CloudWatch agent is consuming high CPU. The log group has a retention policy of 30 days. Which action should the team take to reduce CPU usage without losing log data?

Question 1hardmultiple choice
Full question →

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

Increase the batch size in the CloudWatch agent configuration.

Increasing the batch size in the CloudWatch agent configuration reduces the number of HTTP API calls made to CloudWatch Logs, which lowers CPU overhead from frequent network I/O and serialization. The agent buffers log events and sends them in larger, less frequent batches, directly addressing high CPU consumption without discarding any log data.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

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

  • Increase the batch size in the CloudWatch agent configuration.

    Why this is correct

    Correct: Larger batch size reduces API calls and CPU usage.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Use JSON format for logs instead of plain text.

    Why it's wrong here

    Incorrect: Format does not significantly affect CPU.

  • Set the agent's timezone to UTC.

    Why it's wrong here

    Incorrect: Timezone setting does not affect CPU.

  • Change the log group retention policy to 7 days.

    Why it's wrong here

    Incorrect: Retention does not affect agent CPU usage.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates may confuse log retention policies with operational performance tuning, incorrectly assuming that reducing retention frees resources, when in fact it only deletes historical data and has no impact on agent CPU usage.

Detailed technical explanation

How to think about this question

The CloudWatch agent uses a PutLogEvents API call with a configurable batch size (default 10,000 events or 1 MB). Increasing the batch size reduces the frequency of these calls, which lowers CPU cycles spent on TLS handshakes, request serialization, and response processing. In high-throughput environments, this optimization can significantly reduce agent CPU usage while ensuring all log events are eventually delivered.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A healthcare organisation deploys an application with a public-facing web tier and a private database tier. The database subnet has no public IP and only accepts connections from the web tier's security group. Questions like this test whether you can design cloud network isolation using VNets/VPCs, subnets, and security group rules.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related DOP-C02 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free DOP-C02 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this DOP-C02 question test?

Monitoring and Logging — This question tests Monitoring and Logging — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Increase the batch size in the CloudWatch agent configuration. — Increasing the batch size in the CloudWatch agent configuration reduces the number of HTTP API calls made to CloudWatch Logs, which lowers CPU overhead from frequent network I/O and serialization. The agent buffers log events and sends them in larger, less frequent batches, directly addressing high CPU consumption without discarding any log data.

What should I do if I get this DOP-C02 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more ways this is tested on DOP-C02

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. A company is using Amazon CloudWatch Logs to monitor application logs from EC2 instances. The DevOps engineer notices that some log entries are missing. The CloudWatch agent is installed and configured. What is the most likely cause of the missing log entries?

medium
  • A.The CloudWatch agent's rate limit is set too low, causing log entries to be dropped.
  • B.The CloudWatch agent is compressing logs before sending, causing some entries to be lost.
  • C.The log group retention policy is set to 1 day, and logs older than that are automatically deleted.
  • D.The log group's maximum size limit has been exceeded.

Why A: If the CloudWatch agent cannot keep up with the log generation rate, it may drop entries. Option A is correct because the agent has a configurable rate limit. Option B is incorrect as CloudWatch Logs has no size limit on log events. Option C is incorrect because the default log group retention never expires. Option D is incorrect because the agent does not compress logs by default.

Keep practising

More DOP-C02 practice questions

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This DOP-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 DOP-C02 exam.