I recently started teaching a new AWS Cloud Practitioner cohort for NCUS-TEC using resources from AWS Academy. This week we discussed some of the strategies available for cost optimization. During this module, I introduce the DAO Research Whitepaper from 2019 titled Amazon Web Services Cost Surprises Unexpected Costs Experienced by AWS Enterprise Customers. Understanding the pricing model, monitoring usage, and optimizing resources are crucial for effective cost management. There are three lessons that can be learned and gathered from the lesson and whitepaper about the importance of understanding how to navigate the complexities of AWS cost management:

  1. Understanding the pricing model
  2. Monitor your usage
  3. Optimize your resources

1. Understand the Pricing Model

AWS offers various pricing options, including on-demand, reserved instances, and spot instances. It’s essential to learn about these options and how they apply to your specific use case. By understanding the pricing model, you can choose the most cost-effective option for your needs. Accessing your AWS cost and usage information and organizing your AWS implementation for cost management are essential steps in this process

AWS Cost and Usage Report

The AWS Cost and Usage Reports (AWS CUR) provides a fine-grained review of the costs being created within an AWS account. The report is sent to an Amazon S3 bucket and can provide a detailed breakdown based on hour, day, or month. It further segments costs based on the product, product resource, or tags.

wallet with coins banknotes and credit card for payment
Photo by Monstera Production on Pexels.com

2. Monitor Your Usage

Keeping track of your usage is vital for effective cost management. AWS provides tools such as Amazon CloudWatch and AWS Trusted Advisor to help you monitor your usage. By monitoring your usage, you can identify areas where you may be overspending and take steps to reduce your costs. Setting budgets and being alerted when usage is out of bounds using AWS Budgets is also a great way to monitor your costs.

AWS Trusted Advisor

AWS Trusted Advisor takes advantage of best practices that have been collected from serving hundreds of thousands of AWS customers. Trusted Advisor inspects your AWS environment, and then makes recommendations based on observations of the environment and from the machine-generated checks on the AWS Services used. It provides insights on areas of improvement in six different categories.

  1. Cost optimization
  2. Performance
  3. Security
  4. Fault tolerance
  5. Service limits
  6. Operational excellence

While Trusted Advisor is available automatically when you create an AWS account, the level of details and suggestions are based on the support plan chosen. To receive recommendations based on the full set of checks, a Business support plan or higher is required.

Trusted Advisor services for different AWS Support Plans

There are over 20 cost optimization metrics that Trusted Advisor can advise on. A simple example of these metrics is Amazon EBS over-provisioned volumes. Amazon Elastic Block Store (EBS) is AWS’s block storage service that requires capacity to be provisioned based on anticipated demand. Costs are based on capacity provisioned – regardless if utilized or not. Checks made on the EBS volumes alerts you if any EBS volumes were over-provisioned for your workloads. When you have over-provisioned volumes, you’re paying for unused resources.

3. Optimize Your Resources

AWS offers a wide range of services and features, and it’s important to choose the right ones for your needs. By optimizing your resources, you can reduce your costs while still meeting your performance requirements. For example, using auto-scaling to adjust your resources based on demand or utilizing Amazon S3 lifecycle policies to move data to lower-cost storage tiers can help optimize your resources and reduce costs.

One key point, I have my class look at is evaluating EC2 instance performance. The whitepaper referenced a health services company that stated the need to overprovision their AWS environments, relative to their existing on-premises datacenters. This was to achieve the same performance when moving workloads to AWS and not having compared the performance until after the fact. The performance impact was based not only on compute and storage but often on network bottlenecks. Many customers found that their AWS infrastructure costs can actually increase by 2× their expectation to compensate for the lower performance of AWS versus their existing on-premises environment.

When we begin learning about compute services like EC2, we look at the different types of instances available and their use cases. While the whitepaper, does not provide specific details on the environment and use cases it it a good time to discuss how strategy and analyzing different instance types would best suit their needs.

Consider this…an organization needs resources to support AI applications. This requires computing power to handle complex computations quickly. Using an accelerated computing instance type instead of a general-purpose one can save money by providing more efficient performance for specific workloads. Accelerated computing instances use hardware accelerators, such as GPUs which are better suited for AI and machine learning due to their specialized architecture. This allows them to handle complex computations more efficiently than CPUs.

In conclusion, understanding the pricing model, monitoring your usage, and optimizing your resources are essential components of effective AWS cost management. By implementing these strategies, organizations can develop a better understanding of how to navigate the complexities of AWS cost management and make informed decisions to optimize costs while leveraging the benefits of cloud services.


Vocabulary

AWS and technology is full of acronyms and terminologies that you may not be familiar with. Below are some definitions to help.


Tasha Penwell is an AWS and Lens Studio Educator, conference presenter, and author. She lives in Ohio with her husband and enjoys photography, exploring new technologies and hosting computer science workshops at high schools. She founded Bytes and Bits when she realized that the traditional education model was creating barriers for the underserved and rural population.

Comments

Leave a Reply

Discover more from Bytes and Bits

Subscribe now to keep reading and get access to the full archive.

Continue reading