Featured resource
2026 Tech Forecast
2026 Tech Forecast

1,500+ tech insiders, business leaders, and Pluralsight Authors share their predictions on what’s shifting fastest and how to stay ahead.

Download the forecast
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Core Tech
Google Cloud Platform icon
Labs

Amazon Linux Scripting, Automation & Performance Monitoring

Automate service health checks with Bash, cron, and systemd timers on Amazon Linux 2023; manage an EC2 fleet with AWS Systems Manager Run Command; and diagnose performance bottlenecks using native OS tools paired with a CloudWatch Agent publishing custom memory and disk metrics.

Google Cloud Platform icon
Lab platform
Lab Info
Level
Advanced
Last updated
May 14, 2026
Duration
1h 30m

Contact sales

By clicking submit, you agree to our Privacy Policy and Terms of Use, and consent to receive marketing emails from Pluralsight.
Table of Contents
  1. Challenge

    Create and schedule automated service health-check scripts using Bash, cron, and systemd timers
    • Write a Bash script that monitors httpd, mariadb, and a custom service, logs structured status lines, and publishes an SNS alert when any service is inactive.
    • Schedule the script with a cron job in /etc/cron.d/ and verify execution through the system journal.
    • Refactor the schedule as a systemd timer with randomized delay and unified journal logging, then compare the two scheduling mechanisms.
  2. Challenge

    Register and manage a fleet of EC2 instances using AWS Systems Manager Run Command
    • Confirm that all three fleet instances are registered with Systems Manager and reporting as Online.
    • Send a parallel Run Command to apply security patches and restart httpd across the fleet, then review per-target status and output.
    • Diagnose the failure on fleet-node-2, identify the broken httpd systemd drop-in override as the root cause, apply a targeted fix with a follow-up Run Command, and rerun the patch to bring the fleet to a consistent state.
  3. Challenge

    Diagnose performance bottlenecks and configure CloudWatch Agent for custom OS-level metric monitoring
    • Reproduce a CPU spike with lab-stress.sh and trace it to the responsible processes using top, vmstat, and ps.
    • Reproduce an I/O spike and identify the runaway disk activity with iostat.
    • Apply persistent sysctl network buffer tuning and validate it against an iperf3 server on fleet-node-1 before and after.
    • Configure the CloudWatch Agent to publish mem_used_percent and disk_used_percent under a custom namespace, then create an alarm that transitions from INSUFFICIENT_DATA to OK once metrics flow.
About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight