🚧 Under construction — VoTechWorks is being built. A free tech program — complimentary, as our commitment to get America working.
voTechWorksGrade 13 · a vocational technology learning center, by urbanicity
newSchoolWorks.com › VoTechWorks › Technology & Design › IT Support / Networking › Cloud Basics for IT Support and Networking › Lesson 10
TEC-ITS43-05 · Lesson 10 · 11.5 clock hours · practice

Cloud Monitoring, Logging, and Cost Management

Objective. Students will configure cloud monitoring dashboards and alerts, enable and query access logs, and use cost-management tools to estimate and track cloud spending.

⚠ Pending professional review

This lesson, its worked examples and its practice questions has not yet been verified by an industry-certified professional or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.

VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.

Why Monitoring, Logging, and Cost Management Matter

When you support cloud infrastructure, you are responsible for three things beyond just keeping services running: knowing when something goes wrong, knowing who did what, and knowing what you are spending. Cloud providers give you built-in tools for all three. Learning to use them is a core operational skill for any IT support or networking role that touches cloud environments.

Cloud Monitoring and Alarms

Cloud monitoring collects performance metrics from your resources in near real time. On AWS, the primary monitoring service is Amazon CloudWatch. CloudWatch automatically gathers basic metrics for most services—for example, CPU utilization, network in/out, and disk read/write for EC2 instances—at no extra charge for standard metrics.

A metric is a time-series measurement: a number recorded at regular intervals (commonly every one to five minutes). You view metrics on a dashboard, which is a customizable page of graphs you build yourself. Dashboards let you see the health of multiple resources at a glance.

An alarm watches a single metric and takes action when the metric crosses a threshold you define. For example, you can create an alarm that fires when average CPU utilization on an EC2 instance exceeds 80% for two consecutive five-minute periods. When the alarm fires, it can send a notification through Amazon SNS (Simple Notification Service), which delivers an email or SMS to whoever you designate. This is the pattern you will use in today's lab.

Alarms have three states: OK (metric is within the threshold), ALARM (threshold is breached), and INSUFFICIENT_DATA (not enough data has been collected yet). Always confirm an alarm is in the OK state before you consider a test successful.

Access Logging

Logging records events—every API call, every file access, every login attempt. Logs are your audit trail. When something goes wrong or someone asks "who deleted that file?", logs are how you answer.

S3 server access logging records requests made to an S3 bucket. When you enable it, AWS writes log files to a destination bucket you choose. Each log record is one line of text containing fields separated by spaces. Important fields include:

Log files may take a few minutes to appear after activity occurs. Always allow time before concluding that logging is not working.

From a safety and compliance standpoint, never store logs in the same bucket you are logging. A misconfiguration can cause runaway log generation (log files logging themselves). Use a separate destination bucket and apply appropriate access controls so only authorized personnel can read log data. Treat log files as sensitive—they may contain IP addresses and user identities.

Cloud Cost Management

Cloud billing is consumption-based: you pay for what you use. Without active monitoring, costs can grow silently. Two tools help control this.

A cloud pricing calculator (AWS provides one at their public website) lets you estimate costs before you deploy resources. You enter the resource type, region, quantity, and expected usage, and the calculator shows an estimated monthly cost. Good estimates include at least: compute (EC2), storage (EBS volume), and object storage (S3).

The billing dashboard (called AWS Cost Explorer or the Billing and Cost Management console on AWS) shows actual charges broken down by service and time period. During the AWS Free Tier period, many common resources—including a small EC2 instance, limited EBS storage, and limited S3 storage—are available at no charge up to defined monthly limits. The dashboard shows how close you are to those limits.

Best practices for cost control:

Safety and Operational Cautions

Cloud lab sandboxes are real computing environments. Even in a sandbox, keep these points in mind:

Connecting to Your Credentials

CompTIA A+ Core 2 covers operational procedures including documentation, change management, and basic cloud concepts. Understanding monitoring and logging directly supports the operational procedures domain. CompTIA Network+ addresses network monitoring tools and log analysis. Cisco CCST and CCNA include network management concepts where monitoring dashboards and syslog are tested. The skills you practice today transfer across all four credentials.

Key terms10

CloudWatchAn AWS service that collects metrics, logs, and events from cloud resources and allows you to create dashboards and alarms based on those data points.
MetricA time-series measurement of a cloud resource's performance or usage, such as CPU utilization recorded every five minutes.
AlarmA CloudWatch rule that monitors a metric against a defined threshold and transitions between OK, ALARM, and INSUFFICIENT_DATA states, triggering actions when the threshold is breached.
SNS (Simple Notification Service)An AWS messaging service that delivers notifications—such as emails or SMS messages—when an event or alarm is triggered.
S3 Server Access LoggingAn S3 feature that records every request made to a bucket, writing structured log records to a separate destination bucket for audit and troubleshooting purposes.
RequesterA field in an S3 access log record that identifies the AWS account or IAM principal that made the request to the bucket.
Cloud Pricing CalculatorA publicly available web tool provided by a cloud vendor that estimates the monthly cost of a set of cloud resources based on type, region, and expected usage.
Free TierA set of AWS services and usage amounts available at no charge for a defined period or up to monthly limits, intended to let learners and developers experiment without incurring costs.
Billing DashboardThe AWS console area that shows actual charges, usage by service, and free-tier consumption, allowing users to track and control cloud spending.
Least PrivilegeA security principle stating that a user, role, or service should be granted only the minimum permissions required to perform its intended function.

Worked examples4

1. You are estimating the monthly cost of one t3.micro EC2 instance running 24 hours a day, 7 days a week for a full 30-day month. The on-demand price for t3.micro in a common US region is $0.0104 per hour. How many hours will it run, and what is the estimated monthly cost before any free-tier credit?
  1. Step 1: Calculate total hours in the month. 24 hours/day × 30 days = 720 hours.
  2. Step 2: Multiply total hours by the hourly price. 720 hours × $0.0104/hour = $7.488.
  3. Step 3: Round to a reasonable precision for an estimate. $7.49 per month.
Answer: The instance would run 720 hours and cost approximately $7.49 for the month before any free-tier credit is applied.
2. Your S3 bucket stores 5 GB of data. The S3 Standard storage price is $0.023 per GB per month. The AWS Free Tier includes 5 GB of S3 Standard storage per month. What is the billable storage amount, and what is the estimated monthly storage charge?
  1. Step 1: Subtract the free-tier allowance from total storage. 5 GB used − 5 GB free = 0 GB billable.
  2. Step 2: Multiply billable GB by the per-GB price. 0 GB × $0.023 = $0.00.
  3. Step 3: State the result clearly.
Answer: The billable storage amount is 0 GB because usage equals the free-tier limit exactly, so the estimated monthly storage charge is $0.00.
3. You have a 30 GB EBS gp2 volume attached to your EC2 instance. The price for gp2 storage is $0.10 per GB per month. The AWS Free Tier includes 30 GB of EBS storage per month. You used 30 GB all month. What is your EBS charge?
  1. Step 1: Determine billable GB. 30 GB used − 30 GB free tier = 0 GB billable.
  2. Step 2: Calculate the charge. 0 GB × $0.10/GB = $0.00.
  3. Step 3: Note that if you exceeded 30 GB, any overage would be billed. For example, 35 GB used − 30 GB free = 5 GB × $0.10 = $0.50.
Answer: With exactly 30 GB used, the EBS charge is $0.00 due to the free-tier allowance. Any gigabytes above 30 would be charged at $0.10 per GB.
4. Your total estimated monthly cost has three line items: EC2 compute = $7.49, EBS storage = $0.00 (free tier covers it), and S3 storage = $0.00 (free tier covers it). Your free-tier EC2 credit covers 750 hours of t3.micro per month. You ran the instance 720 hours. What is your actual estimated bill after the free-tier EC2 credit?
  1. Step 1: Determine EC2 hours consumed vs. free-tier allowance. 720 hours used vs. 750 hours free — usage is within the free tier.
  2. Step 2: Subtract free-tier hours from billed hours. 720 − 750 = −30, meaning 0 billable hours (you cannot go negative).
  3. Step 3: Calculate EC2 charge. 0 billable hours × $0.0104 = $0.00.
  4. Step 4: Sum all line items. $0.00 (EC2) + $0.00 (EBS) + $0.00 (S3) = $0.00 total estimated bill.
Answer: After applying the free-tier EC2 allowance (750 hours), all 720 hours are covered and the total estimated monthly bill is $0.00 for this infrastructure.

The math in this lesson1

Learners compute 720 hours x $0.0104/hour = about $7.49 monthly cloud instance cost.
6.RP.3
In class: Guided practice: students enable CloudWatch (or equivalent) monitoring on their EC2 instance, create a CPU utilization alarm set to trigger at 80%, and configure an email notification; they simulate high CPU load using a stress tool and verify the alarm fires. · Students enable S3 server access logging, perform several object uploads and downloads, retrieve the log files, and identify at least three fields (requester, operation, timestamp) in the log records; findings are recorded in the lab log. · Using the cloud pricing calculator, students estimate the monthly cost of the infrastructure they built throughout this course (one EC2 instance, one EBS volume, one S3 bucket with sample data) and compare the estimate to their actual free-tier usage on the billing dashboard.
Materials: Cloud lab sandbox, email account for alarm notifications, cloud pricing calculator (online), lab log template, CompTIA A+ Core 2 study guide (operational procedures section)
Check: Instructor verifies that the CPU alarm is active, that log files exist and are readable, and that the cost estimate is present in the lab log with at least three line items; student must explain one log field verbally to the instructor.

Practice check8

Answer each question, then check it. Nothing is recorded; this is your own practice.

CompTIA A+ Core 2 – Cloud Computing / Operational Procedures
1. A technician creates a CloudWatch alarm set to trigger when CPU utilization exceeds 80% for two consecutive periods. Immediately after creation, the alarm shows INSUFFICIENT_DATA. What does this state indicate?
CompTIA A+ Core 2 – Operational Procedures / Documentation
2. Which field in an S3 server access log record identifies the AWS account or IAM user that made a request to the bucket?
CompTIA Network+ – Network Management / Monitoring
3. A student wants to receive an email whenever a CloudWatch alarm enters the ALARM state. Which AWS service must be configured to deliver that email notification?
CompTIA A+ Core 2 – Security / Operational Procedures
4. To follow the principle of least privilege when enabling S3 server access logging, where should the log files be written?
CompTIA A+ Core 2 – Operational Procedures / Safety
5. A student runs a stress test to simulate high CPU load on an EC2 instance and forgets to stop the stress process. Which of the following is the most likely consequence?
CompTIA A+ Core 2 – Cloud Computing / Operational Procedures
6. Using a cloud pricing calculator, a student estimates costs for one EC2 instance, one EBS volume, and one S3 bucket. The billing dashboard later shows lower actual charges than estimated. What is the most likely explanation?
CompTIA A+ Core 2 – Security / Operational Procedures
7. Which action best supports the security of AWS access keys used during a cloud lab?
CompTIA Network+ – Network Security / Troubleshooting
8. A network administrator reviews S3 access logs and notices repeated entries with an HTTP status of 403 for a specific object. What does this most likely indicate?
Record this lesson on my transcript. Sign in with your key and enrollment email to record lessons (enroll free if you have no key). This page stays open to read and practise.