You can in Azure, easily. New Azure free accounts (which most learners start with) have spending limits enabled by default. https://learn.microsoft.com/azure/cost-management-billing/ma...
While you can footgun yourself with hard limits I tend to think that learners/hobbyists should, in general, be able to access at least many services with an ironclad guarantee that they can't be billed for over a certain monthly amount or a total number.
I'm much more inclined to shrug if a startup screws themselves over with a hard spending limit than if a student screws themselves over because of a lack of one.