MLA-C02

Introduction to Cost and Capacity Optimization

Selecting inference instance families, purchasing options, cost management tools and quotas, optimising capacity, FM inference costs, AI-specific cost patterns and agent resource consumption.

  • 7 lessons
  • Module quiz

Machine learning and generative AI can be expensive: GPU instances cost far more than general-purpose compute, idle endpoints are billed continuously, and foundation model costs grow with every token. Cost optimisation balances these costs against the performance and reliability the workload needs.

This module covers the main levers: choosing instance families, including AWS Inferentia and AWS Trainium; combining purchasing options such as Savings Plans, Spot capacity and reserved capacity; cost management tools and quotas; capacity planning for reliability; and the costs that are specific to generative AI, tokens, embeddings, vector storage and agents.

What the exam expects

Questions test matching each workload pattern to a purchasing option, choosing Inferentia2 for low-cost deep learning inference, tracking Bedrock costs per application with application inference profiles, restricting instance types with IAM conditions, and optimising usage before buying provisioned foundation model capacity.

How this module is organised

Right-Sizing Inference Instance Families and Choosing Purchasing Options for ML Workloads explain compute and pricing choices. Controlling ML Spend with Cost Management Tools and Quotas and Balancing Capacity, Performance and Reliability explain how costs and capacity are controlled. Estimating and Reducing Foundation Model Inference Costs, Monitoring Token, Embedding and Vector Storage Costs and Monitoring and Controlling Agent Resource Consumption explain the costs of generative AI.

  1. Right-Sizing Inference Instance Families Lesson 1
  2. Choosing Purchasing Options for ML Workloads Lesson 2
  3. Controlling ML Spend with Cost Management Tools and Quotas Lesson 3
  4. Balancing Capacity, Performance and Reliability Lesson 4
  5. Estimating and Reducing Foundation Model Inference Costs Lesson 5
  6. Monitoring Token, Embedding and Vector Storage Costs Lesson 6
  7. Monitoring and Controlling Agent Resource Consumption Lesson 7
  8. Practise and review
  9. Checkpoint Practice activities across the module
  10. Test your knowledge 4 questions