DOP-C02 Practice Question 79: CloudWatch Anomaly Detection Seasonal Metric

AWS Certified DevOps Engineer – Professional (DOP-C02) · Test 8 · question 9 of 10

Monitoring and Loggingmedium

An e-commerce order processing service has request latency that is naturally much higher every weekday between 9 AM and 11 AM and every night during a nightly batch job, both entirely expected. A single static-threshold CloudWatch alarm on the p90 latency metric either misses real degradations during quiet periods (threshold set too high) or pages constantly during the known daily peaks (threshold set too low). The team wants one alarm on this one metric that adapts its threshold to the metric's normal daily and weekly pattern and only pages for genuine deviations.

What should they configure?

Select one answer
Show answer and explanation

Answer:

  • D. A CloudWatch anomaly detection alarm on the p90 latency metric, which models the expected value as a band that accounts for hourly, daily, and weekly patterns and alarms only when the metric falls outside that band

CloudWatch anomaly detection builds a model of a metric's expected behavior from its historical data, explicitly accounting for typical hourly, daily, and weekly cycles, and renders that model as a band. An anomaly detection alarm compares the live metric against the band's upper and lower limits (configurable independently) rather than against one fixed number, so the known morning peak and nightly batch window are already inside the expected band and only a genuine deviation from that learned pattern triggers the alarm.

Option A approximates the same idea by hand with two brittle static thresholds and a scheduler that must be kept in sync with any change to business hours or the batch job's timing; it also still misses degradations that occur close to, but not exactly on, the schedule boundaries.

Option B's composite alarm changes how many notifications fire for correlated conditions, not how the underlying threshold adapts to time-of-day; a static latency alarm inside it still needs its own correct threshold, which is the problem being solved.

Option C narrows the observation window rather than adapting to expected value, and it would miss degradations entirely outside the two hardcoded windows while still using a static, hand-picked threshold inside them.

Reference: Using CloudWatch anomaly detection

Practice Test 8 ›

Study guides for DOP-C02

AWS Service Control Policies Explained: SCPs and DenialsAWS service control policies explained: how SCPs cap permissions, why admins still get access denied, inheritance, deny vs allow lists and the exam traps.
How AI Is Changing Software Jobs: Where to PrepareHow AI is changing software jobs: what history shows, the evidence on junior developers, what Klarna learned, new AI roles and five domains to prepare for.
How AWS Certification Exams Work: Scoring and RenewalHow AWS certification exams work: levels, booking, question types, unscored questions, scaled scores, pass marks, validity and how recertification works.
What Is Amazon RDS? Multi-AZ, Read Replicas and BackupsWhat is Amazon RDS? Engines, Multi-AZ, read replicas, backups, RDS Proxy, Aurora and pricing explained, with the traps that AWS exams set around each one.
Best DevOps certification: AWS, Azure, Google or CKAThe best DevOps certification for your stack: AWS DOP-C02, Azure AZ-400, Google Cloud DevOps Engineer and CKA compared on cost, level and prerequisites.
What Is AWS Lambda? Triggers, Concurrency and Cold StartsWhat is AWS Lambda? How functions run, cold starts, triggers vs event source mappings, concurrency, layers, aliases, pricing and the exam traps.
AWS CloudOps Engineer Associate (SOA-C03) exam guideAWS Certified CloudOps Engineer – Associate (SOA-C03) replaced SysOps Administrator. Format, cost, the five domains, what changed and how to prepare.
Which AWS certification should you get? 2026 roadmapWhich AWS certification to get first, by role and experience, with each exam's status in October 2026, what is changing, and prices in USD and INR.
What Is Amazon EC2? Instances, AMIs, EBS and Auto ScalingAmazon EC2 explained: instances, AMIs, instance types, security groups, EBS, Auto Scaling groups and pricing options, with the traps AWS exams set.
SQS vs SNS vs EventBridge on AWSWhen to use an SQS queue, an SNS topic or an EventBridge bus, plus fan-out, FIFO ordering, visibility timeouts and dead-letter queues for AWS exams.