Latest / Ctrl+Classroom / AWS Cloud Practitioners Exam: Compute Module
Transcript
- 0:00OK, let's dive straight in. Today, we're doing
- 0:02a deep dive focused squarely on the engine room
- 0:05of AWS Compute, Amazon EC2. We're talking virtual
- 0:09servers here. And honestly, if you want to get
- 0:12smart about cloud costs, really nailing the EC2
- 0:14pricing models is, well, it's fundamental. Absolutely.
- 0:19Think of it like this. EC2 pricing isn't just
- 0:21one thing. It's a whole spectrum of options.
- 0:24And our goal today is pretty focused. Help you
- 0:26master the four main models. Because for you
- 0:29listening, understanding these is the fastest
- 0:31route to optimizing those cloud bills. It often
- 0:33boils down to a basic choice, really. Are you
- 0:35willing to commit upfront for savings? Or do
- 0:38you need flexibility, even if it costs a bit
- 0:39more? Or maybe, can you handle potential interruptions
- 0:43for massive discounts? That's a great way to
- 0:45frame it. So the plan is we'll define the concept,
- 0:48how it works for each model, and then right after
- 0:50we'll jump into the best use case, where does
- 0:51it fit strategically. The idea is to help you
- 0:54map your actual workloads to the right pricing.
- 0:56Perfect. Let's start with the foundation then.
- 0:58On -demand instances. The concept here is super
- 1:02simple. It's all about flexibility. You pay for
- 1:04compute capacity by the hour, or actually it's
- 1:07often per second now, and the key, absolutely
- 1:10zero upfront commitment. You start an instance,
- 1:14you use it, you stop it. You only pay for what
- 1:16you consumed. Right, pay as you go. And that
- 1:19flexibility is precisely why it's great for certain
- 1:22things. It stops you paying for server sitting
- 1:24idle. So, best use. Think short -term needs,
- 1:28irregular workloads, things that absolutely cannot
- 1:30be interrupted while they are running. Development
- 1:32and testing environments are the classic example,
- 1:34aren't they? Spin them up, run your tests, tear
- 1:36them down, no long -term ties. Exactly. On -demand
- 1:40is for when things are unpredictable or short
- 1:42-lived. But what if you do have predictable needs?
- 1:44What if you know you'll need compute power consistently
- 1:47for, say, a year or even three years? Ah, that's
- 1:50where the next model comes in, right? Reserved
- 1:51instances or RIs and the newer, more flexible
- 1:54savings plans. Precisely. With these, you make
- 1:58that time commitment one or three years, and
- 2:00in return, AWS gives you a really significant
- 2:03discount. We're talking potentially up to 72
- 2:06% off those on -demand rates. 72%. That's a massive
- 2:09reduction. And you mentioned savings plans being
- 2:12more flexible. How so? Yeah, savings plans are
- 2:15sort of the evolution here. Instead of reserving
- 2:17a specific instance type in a specific zone,
- 2:20you commit to a certain amount of compute usage
- 2:23per hour measured in dollars. And the really
- 2:25useful part is that this commitment automatically
- 2:27applies across different instance families, different
- 2:30AWS regions, even different operating systems
- 2:32like Windows or Linux. Much more adaptable. OK,
- 2:36so that simplifies things. You don't have to
- 2:37predict exactly which instance type you'll need
- 2:39three years from now. Right. So the best use
- 2:41case is clear. workloads with predictable steady
- 2:44state usage, things that need to run continuously,
- 2:47production applications, databases that are always
- 2:49on. That's where you really maximize your savings
- 2:52with RIs or savings plans. Got it. Predictability
- 2:55equals savings through commitment. Okay, now
- 2:58let's shift gears completely. Spot instances.
- 3:02This one always sounds intriguing. High risk,
- 3:04high reward. That's a good way to put it. The
- 3:07concept behind Spot is pretty clever. You're
- 3:09essentially bidding on AWS's spare unused EC2
- 3:13capacity. Think of all the servers sitting idle
- 3:16at any given moment. AWS wants to monetize that
- 3:19idle capacity, so they let you bid for it. And
- 3:21because it's spare capacity, the price can drop.
- 3:23I mean, really drop. Sometimes up to 90 % off
- 3:26the on -demand price. Whoa, 90%. OK, hold on.
- 3:29If you can save 90%, why doesn't everyone just
- 3:32use Spot for everything? There has to be a catch.
- 3:34Oh, there's a big one. It's absolutely critical
- 3:36to understand this. Because you're using spare
- 3:38capacity, AWS can take it back whenever they
- 3:40need it for customers paying on -demand or reserve
- 3:42prices. And they only have to give you a two
- 3:45-minute warning before they terminate your instance.
- 3:47Two minutes. OK, that's abrupt. It is. So the
- 3:49best use case is very specific. Spot is fantastic
- 3:53for workloads that are genuinely fault tolerant.
- 3:56They need to be flexible, preferably stateless.
- 3:59large scale batch processing jobs, big data analytics,
- 4:03maybe some background processing tasks, containerized
- 4:06applications designed for failure, things that
- 4:08can be interrupted and then pick up again later,
- 4:11maybe on a different spot instance, without causing
- 4:13a disaster. So definitely not for your main production
- 4:17database or anything customer facing that needs
- 4:19to be always available. Absolutely not. Unless
- 4:21you've architected it very carefully to handle
- 4:23sudden instance loss. All right. That makes sense.
- 4:26Risk versus reward. Now that leaves one more
- 4:29model, dedicated hosts. This sounds different
- 4:31from the others. It is quite different. The concept
- 4:33is simple. You're renting an entire physical
- 4:35server dedicated solely to your AWS account.
- 4:38Nobody else shares that hardware. An entire physical
- 4:40machine. Just for me, that sounds expensive.
- 4:43Why would you need that compared to just spinning
- 4:45up virtual instances? You're right. It generally
- 4:47is more expensive. The best use here isn't primarily
- 4:51about cost savings. It's usually driven by compliance
- 4:54or licensing requirements. Specifically, some
- 4:57older software licenses, particularly in the
- 5:00bring your own license or be oil scenario, are
- 5:02tied to physical hardware, like specific sockets
- 5:05or cores. Ah, so if your software vendor says
- 5:08this license key only works if it's on this physical
- 5:11box, you need a dedicated host to prove that
- 5:14to them for compliance. Exactly that. or sometimes
- 5:17for specific regulatory standards that mandate
- 5:20physical isolation. It's a niche requirement,
- 5:22but when you need it, you need it. It fulfills
- 5:24that compliance need, not really a budget optimization
- 5:27strategy in itself. OK, that paints a clear picture
- 5:29across all four. So wrapping this up, if we look
- 5:32back at the whole landscape, the main takeaway
- 5:34for cost optimization seems to be really understanding
- 5:37your workload first, right? How much interruption
- 5:39can it tolerate? Is its usage steady and predictable
- 5:42or bursty and irregular? That's precisely it.
- 5:45Those two factors, interruption tolerance and
- 5:48usage pattern, will almost always point you to
- 5:51the most cost effective EC2 pricing model. And
- 5:54maybe one final thought to leave you with, something
- 5:57to consider for your own applications. I imagine
- 5:59a company has an existing application, maybe
- 6:01a legacy one. And to run it in the cloud, they
- 6:04absolutely must use a physical server that's
- 6:07dedicated only to their account. This isn't for
- 6:09performance. It's strictly to comply with a third
- 6:12-party software vendor's licensing terms. Based
- 6:15on what we've discussed, which pricing model
- 6:17is the only one that fits that specific rigid
- 6:19requirement? Based on that strict physical server
- 6:22and licensing need, it sounds like dedicated
- 6:24hosts would be the only answer there. Exactly.
- 6:27That highlights how sometimes compliance, not
- 6:29cost, dictates the choice. And knowing that is
- 6:32key.