SkillSprout
Chapter 5 · Lesson 6
Intermediate
5 min read

Operational Visibility: AWS Health, Trusted Advisor, Compute Optimizer and Synthetics

Overview

Not every operational problem comes from your code. AWS service events, quota limits, wasteful sizing and expiring licences all affect production. DOP-C02 expects you to automate responses to these signals as part of monitoring and event management.

Think of a building manager who reads the city's maintenance notices (Health), runs periodic inspections (Trusted Advisor), right-sizes the heating plant (Compute Optimizer) and keeps a test visitor walking the entrance every minute (Synthetics canaries).

The common thread is events into automation: route each signal through EventBridge to a notification, a ticket or a runbook.

Key Concepts

  • AWS Health provides account-specific events (service issues, scheduled changes, account notifications); organizational view aggregates events across accounts.
  • Health events arrive on EventBridge (aws.health) for automation such as opening OpsItems or notifying owners.
  • Trusted Advisor checks cost, performance, security, fault tolerance, service limits and operational excellence; full checks need Business or higher support, and checks can be reviewed across the organisation.
  • Compute Optimizer recommends right-sizing for EC2, Auto Scaling groups, EBS, Lambda and ECS on Fargate from CloudWatch utilisation (memory needs the agent).
  • Service Quotas shows and raises limits and can alarm at a usage percentage.
  • License Manager tracks and enforces licence usage with rules and can stop launches that exceed limits.
  • CloudWatch Synthetics canaries run scripted checks (heartbeat, API, broken link) from outside the application on a schedule.
  • EC2 auto recovery alarms on StatusCheckFailed_System and moves the instance to healthy hardware keeping IDs and addresses.

Detailed Notes

Signal sources and responses

SignalSourceTypical automation
Scheduled maintenance or retirementAWS HealthEventBridge to SSM Automation to replace or stop and start instances
Service impairmentAWS HealthNotify on-call, shift traffic with Route 53
Idle or oversized resourcesTrusted Advisor, Compute OptimizerTicket, scheduled right-sizing change
Quota near limitService Quotas, Trusted AdvisorAlarm and automated increase request
Licence overuseLicense ManagerBlock launches, notify
User-facing outageSynthetics canaryAlarm and Incident Manager response plan

Health events to automation

json
{
  "source": ["aws.health"],
  "detail-type": ["AWS Health Event"],
  "detail": { "service": ["EC2"], "eventTypeCategory": ["scheduledChange"] }
}

Create the rule on the default bus (and use the organisation's delegated administrator for the organizational view, enabled with aws health enable-health-service-access-for-organization). Targets include SNS, Lambda, SSM Automation and Incident Manager.

Trusted Advisor and Compute Optimizer

  • Trusted Advisor findings also publish to EventBridge and can be refreshed with the API (Business and Enterprise support). Use Trusted Advisor Priority and organisation view for multi-account reports.
  • Compute Optimizer needs about 30 hours of metrics and can look back 14 days (up to 93 days with enhanced infrastructure metrics). Enable at the organisation level to see all accounts.
  • Findings are categorised as under-provisioned, over-provisioned or optimised; apply changes through IaC or Instance refresh rather than manual console edits.

Synthetics canary

javascript
const synthetics = require('Synthetics');
exports.handler = async () => {
  const page = await synthetics.getPage();
  const res = await page.goto('https://shop.example.com/health', { waitUntil: 'domcontentloaded' });
  if (res.status() !== 200) throw new Error('Health check failed: ' + res.status());
};

Canaries produce SuccessPercent and Duration metrics, screenshots and HAR files. Alarm on SuccessPercent below 100 for two periods and route to Incident Manager.

EC2 and self-healing

  • Auto recovery keeps the instance ID, private IP and EBS volumes and works for EBS-backed instances without instance store.
  • Use an alarm action arn:aws:automate:us-east-1:ec2:recover on StatusCheckFailed_System, and reboot on StatusCheckFailed_Instance.
  • Auto Scaling health checks replace unhealthy members; ECS and EKS restart tasks and pods that fail health checks.

OpsCenter and Incident Manager

OpsCenter creates OpsItems from alarms and EventBridge, links related resources and suggests runbooks. Incident Manager adds response plans, escalation, contacts, on-call schedules and post-incident analysis. Together they give a managed incident workflow with minimal glue.

Licence and quota governance

  • License Manager rules (vCPU, instance, core, socket counts) with hard or soft limits, and cross-account sharing through Organizations.
  • Quota alarms: CloudWatch metrics in AWS/Usage and Service Quotas alarms avoid failures such as hitting EC2 vCPU limits during scale-out.
  • Request quota increases through quota request templates applied to new organisation accounts.

Real World Example

Scenario: an enterprise wants to stop surprise instance retirements and quota failures. An organisation-level Health rule triggers an SSM Automation runbook that replaces tagged instances during maintenance windows and posts a summary to a chat channel.

Service Quotas alarms warn at 80 percent of vCPU limits, and a Synthetics canary tests the customer checkout every minute. When the canary fails twice, Incident Manager pages the on-call engineer and opens an OpsItem.

Architecture Diagram

Signals to automation
Architecture
AWS Cloud
AWS Health / Trusted AdvisorSignals
EventBridgeRules
SSM AutomationRunbooks
Notify / Incident Manager
Synthetics canary

Health, quota, cost and canary signals route through EventBridge to runbooks and people.

  1. 1AWS Health, quotas, Trusted Advisor or a canary detect an issue.
  2. 2EventBridge or CloudWatch alarms match the signal.
  3. 3A runbook remediates or replaces the affected resource.
  4. 4People are notified and an OpsItem or incident is opened.
  5. 5Review findings and adjust capacity, quotas and architecture.

Best Practices

  • ✓Enable the Health organizational view and route events to a central automation account.
  • ✓Alarm on quota usage before limits block scale-out.
  • ✓Run canaries against critical user journeys from outside your VPC.
  • ✓Apply Compute Optimizer recommendations through IaC, validating with performance tests.
  • ✓Use auto recovery and Auto Scaling health checks for self-healing, not manual replacement.

Common Interview Questions

Exam Tips

DOP-C02 focus

  • "Respond to AWS-initiated events automatically" = AWS Health + EventBridge.
  • "Right-size instances based on utilisation" = Compute Optimizer.
  • "Monitor user journey continuously" = CloudWatch Synthetics.
  • "Instance hardware failure, keep same IP" = auto recovery alarm.

Chapter quiz

Monitoring and Logging · 10 questions

  1. 1.A company ingests 3 TB of logs a day from many accounts and needs near real-time delivery of CloudWatch metrics to a third-party observability platform. Which solution has the least operational overhead?

  2. 2.Customers report intermittent checkout failures although the ALB target health checks are green. The team wants proactive detection of broken multi-step user journeys. What should they implement?

  3. 3.AWS notifies that several EC2 instances in 40 accounts have scheduled retirement. The operations team wants the instances to be replaced automatically during a maintenance window. Which design fits?

  4. 4.A Kubernetes team needs to query container metrics using PromQL and view them in dashboards without managing storage or HA for the metrics backend. Which combination fits?

  5. 5.A bill shows high CloudWatch custom metric charges after a developer added the user ID as a dimension to a metric published by a Lambda function. What should be done?

  6. 6.A team needs a CloudWatch alarm that only pages on-call when both the API 5XX error rate and the p99 latency are in ALARM, to reduce alert fatigue. What should they use?

  7. 7.Lambda functions must record a custom business metric for every invocation at very high volume without calling PutMetricData and while keeping order IDs searchable for debugging. Which approach is BEST?

  8. 8.Security wants application logs from 80 accounts delivered in near real time to a central account and stored in S3 as partitioned Parquet with minimal operational effort. Which design meets this?

  9. 9.Users report intermittent slowness in a microservices application running on Lambda and DynamoDB behind API Gateway. The team needs to see which downstream call adds the latency and filter traces by customer tier. What should they implement?

  10. 10.A company wants a rule that notifies an SNS topic whenever any IAM policy is changed in any account of its organisation, using central handling in a security account. Which solution is MOST appropriate?

0 of 10 answered

Finished this lesson?

0 of 44 lessons done · 0% of the course