Monitoring, Management and Developer Tools
Overview
Running workloads is more than launching servers. You need to watch them, change them safely and repeat deployments reliably. AWS offers monitoring and management services for exactly this.
Imagine a car dashboard. Amazon CloudWatch is the dashboard with gauges and warning lights. AWS CloudFormation is the blueprint that lets a factory build identical cars every time. AWS Systems Manager is the mechanic's toolkit that updates many cars at once. AWS Health Dashboard is the notice board that tells you when roads (AWS services) are closed.
Beginners are tested on matching each tool to a one-line description, so this lesson focuses on the purpose of each.
Key Concepts
- Amazon CloudWatch collects metrics, logs and alarms and can trigger actions such as Auto Scaling or notifications.
- AWS CloudFormation provisions infrastructure from templates (JSON or YAML) - infrastructure as code that is repeatable and version-controlled.
- AWS CDK lets you define infrastructure with familiar programming languages and synthesises CloudFormation templates.
- AWS Systems Manager gives operational control over fleets: patching, running commands, Parameter Store, Session Manager.
- AWS Health Dashboard shows service health and events that affect your account and resources.
- AWS Management Console, CLI, CloudShell and SDKs are the ways to interact with AWS; CloudShell is a browser-based shell with CLI pre-installed.
- CI/CD services: CodeBuild, CodeDeploy and CodePipeline automate building, deploying and releasing software.
- Amazon EventBridge routes events between services and applications to build event-driven automation.
Detailed Notes
Monitoring and observability
| Tool | What it provides |
|---|---|
| CloudWatch Metrics | Numeric time series (CPU, network, custom metrics) |
| CloudWatch Logs | Centralised log storage and search |
| CloudWatch Alarms | Notify or act when a metric crosses a threshold |
| CloudWatch Dashboards | Visual overview of metrics |
| EventBridge | Rules that react to events or schedules |
| AWS X-Ray | Trace requests through distributed applications |
| CloudTrail | API activity (audit) |
EC2 sends basic metrics every 5 minutes by default (1 minute with detailed monitoring). Memory and disk usage need the CloudWatch agent installed.
aws cloudwatch put-metric-alarm --alarm-name HighCPU \
--metric-name CPUUtilization --namespace AWS/EC2 --statistic Average \
--period 300 --threshold 80 --comparison-operator GreaterThanThreshold \
--evaluation-periods 2 --dimensions Name=InstanceId,Value=i-0123456789abcdef0 \
--alarm-actions arn:aws:sns:ap-south-1:111122223333:ops-alerts
Infrastructure as code
Infrastructure as code (IaC) means describing resources in files rather than clicking in the console, so environments are consistent, reviewable and easy to recreate.
AWSTemplateFormatVersion: "2010-09-09"
Resources:
LogsBucket:
Type: AWS::S3::Bucket
Properties:
VersioningConfiguration:
Status: Enabled
| Tool | Style | Notes |
|---|---|---|
| CloudFormation | Declarative JSON/YAML | Stacks, change sets, rollback, drift detection |
| CDK | Code (TypeScript, Python, Java...) | Generates CloudFormation |
| Elastic Beanstalk | Application platform | Upload code, AWS provisions |
Systems Manager capabilities
- Patch Manager: apply OS patches across fleets on a schedule.
- Run Command: run scripts on many instances without SSH.
- Session Manager: secure shell access without opening port 22.
- Parameter Store: configuration and secret values.
CloudWatch, CloudTrail, Config and Health compared
| Tool | Answers |
|---|---|
| CloudWatch | How is it performing? (metrics, logs, alarms, dashboards) |
| CloudTrail | Who did what? (API audit) |
| Config | What changed and is it compliant? |
| Health Dashboard | Is AWS having a problem that affects me? |
| Trusted Advisor | What best-practice gaps exist? |
Staying informed
| Service | Tells you |
|---|---|
| AWS Health Dashboard - Service health | General AWS service status |
| AWS Health Dashboard - Your account | Events impacting your specific resources |
| Trusted Advisor | Best-practice checks |
| AWS Personal Health Dashboard | Former name of the account view |
Developer and CI/CD tools
CodeBuild compiles and tests, CodeDeploy rolls out to EC2, Lambda or on-premises, and CodePipeline orchestrates the stages. AWS has closed CodeCommit to new customers, so many teams use GitHub or GitLab as the source stage.
Ways to access AWS - summary
The Console is visual, the CLI is for scripts, SDKs are for application code, and CloudShell gives an authenticated shell in your browser with no setup.
Real World Example
A SaaS company defines its whole environment - VPC, load balancer, Auto Scaling group and database - in CloudFormation templates. A new customer environment is created in minutes by deploying the same template in another account or Region.
CloudWatch alarms on CPU and error rates notify the on-call team through SNS and drive Auto Scaling. Systems Manager Patch Manager applies security patches every Sunday, and the team subscribes to Health Dashboard events to learn about planned maintenance in advance.
Architecture Diagram
- 1Describe infrastructure in a template stored in version control.
- 2CloudFormation creates and updates the resources as a stack.
- 3Resources publish metrics and logs to CloudWatch.
- 4Alarms notify people through SNS or trigger automated scaling.
Best Practices
- ✓Manage infrastructure with CloudFormation or CDK, not manual console changes.
- ✓Create CloudWatch alarms for key metrics and route them to SNS.
- ✓Use Session Manager instead of opening SSH ports.
- ✓Install the CloudWatch agent to collect memory and disk metrics and application logs.
- ✓Subscribe to Health Dashboard events and review Trusted Advisor regularly.
Common Interview Questions
Exam Tips
CLF-C02 focus
- "Monitor metrics, logs, alarms" = CloudWatch.
- "Templates to provision infrastructure" = CloudFormation; "define in a programming language" = CDK.
- "Patch many instances / run commands without SSH" = Systems Manager.
- "Events impacting my account" = AWS Health Dashboard.
Finished this lesson?
0 of 43 lessons done · 0% of the course

