Jump into concepts and practice - no test required
or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Azure Savings Plans Setup
📖 Scenario: You are managing cloud costs for a small company using Microsoft Azure. You want to save money by committing to Azure Savings Plans, which offer discounts on compute usage in exchange for a commitment to spend a fixed amount over a period.
🎯 Goal: Create a simple Azure Savings Plan configuration using JSON that defines the plan details, including the plan name, commitment amount, term, and applicable services.
📋 What You'll Learn
Create a JSON object named savingsPlan with the exact keys and values specified.
Add a configuration variable termInYears to represent the commitment term in years.
Use the termInYears variable to set the term field in the savings plan.
Complete the JSON configuration by adding the applicableServices array with specified services.
💡 Why This Matters
🌍 Real World
Azure Savings Plans help organizations reduce cloud costs by committing to consistent usage over time.
💼 Career
Cloud architects and cost managers use savings plans configurations to optimize budgets and forecast expenses.
Progress0 / 4 steps
1
Create the initial Azure Savings Plan data
Create a JSON object called savingsPlan with these exact key-value pairs: "planName": "StandardComputePlan", "commitmentAmount": 1000, and "term": "" (empty string).
Azure
Hint
Define a JSON object with keys planName, commitmentAmount, and term. Set term to an empty string for now.
2
Add the commitment term variable
Add a variable called termInYears and set it to the number 3 to represent a 3-year commitment term.
Azure
Hint
Define a variable named termInYears and assign it the value 3.
3
Set the term field using the commitment term
Update the term field in the savingsPlan JSON object to the string value of termInYears followed by the word " years". For example, if termInYears is 3, then term should be "3 years".
Azure
Hint
Set the term key in savingsPlan to the string "3 years" using the termInYears variable.
4
Add applicable services to the savings plan
Add a key applicableServices to the savingsPlan JSON object. Set its value to an array containing the exact strings: "Virtual Machines", "App Services", and "Functions".
Azure
Hint
Add the applicableServices key with the specified array of service names.
Practice
(1/5)
1. What is the main benefit of using Azure Savings Plans?
easy
A. Lowering costs by committing to use services over time
B. Increasing the speed of virtual machines
C. Automatically scaling app services
D. Improving security of cloud resources
Solution
Step 1: Understand the purpose of Azure Savings Plans
Azure Savings Plans are designed to reduce costs by committing to use certain Azure services over a period.
Step 2: Compare options to the main benefit
Options A, B, and D describe performance or security improvements, which are not the primary goal of Savings Plans.
Final Answer:
Lowering costs by committing to use services over time -> Option A
Quick Check:
Cost savings = Lowering costs by commitment [OK]
Hint: Savings Plans reduce cost by commitment, not performance [OK]
Common Mistakes:
Confusing cost savings with performance improvements
Savings Plans work best when usage is steady; fluctuating usage means committing to average steady usage is optimal.
Step 2: Evaluate options for cost efficiency
Commit to the highest possible usage to cover all peaks wastes money by committing to peak usage; C misses savings; D complicates management without extra benefit.
Final Answer:
Commit to a savings plan based on their average steady usage to maximize savings -> Option C
Quick Check:
Average steady usage commitment = best savings [OK]
Hint: Commit to average steady usage, not peaks, for best savings [OK]