SkillSprout
Chapter 4 · Lesson 4
Beginner
5 min read

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

ToolWhat it provides
CloudWatch MetricsNumeric time series (CPU, network, custom metrics)
CloudWatch LogsCentralised log storage and search
CloudWatch AlarmsNotify or act when a metric crosses a threshold
CloudWatch DashboardsVisual overview of metrics
EventBridgeRules that react to events or schedules
AWS X-RayTrace requests through distributed applications
CloudTrailAPI 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.

bash
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.

yaml
AWSTemplateFormatVersion: "2010-09-09"
Resources:
  LogsBucket:
    Type: AWS::S3::Bucket
    Properties:
      VersioningConfiguration:
        Status: Enabled
ToolStyleNotes
CloudFormationDeclarative JSON/YAMLStacks, change sets, rollback, drift detection
CDKCode (TypeScript, Python, Java...)Generates CloudFormation
Elastic BeanstalkApplication platformUpload 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

ToolAnswers
CloudWatchHow is it performing? (metrics, logs, alarms, dashboards)
CloudTrailWho did what? (API audit)
ConfigWhat changed and is it compliant?
Health DashboardIs AWS having a problem that affects me?
Trusted AdvisorWhat best-practice gaps exist?

Staying informed

ServiceTells you
AWS Health Dashboard - Service healthGeneral AWS service status
AWS Health Dashboard - Your accountEvents impacting your specific resources
Trusted AdvisorBest-practice checks
AWS Personal Health DashboardFormer 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

Define, deploy and observe
Architecture
AWS Cloud
TemplateYAML in Git
CloudFormation
Resources
CloudWatch
SNS notification
  1. 1Describe infrastructure in a template stored in version control.
  2. 2CloudFormation creates and updates the resources as a stack.
  3. 3Resources publish metrics and logs to CloudWatch.
  4. 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