0
0
Azurecloud~10 mins

Right-sizing resources in Azure - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to specify the VM size for right-sizing.

Azure
vm = compute_client.virtual_machines.create_or_update(resource_group_name, vm_name, {"hardware_profile": {"vm_size": "[1]"}})
Drag options to blanks, or click blank then click option'
AStandard_F16s_v2
BBasic_A0
CStandard_DS1_v2
DPremium_LRS
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing storage types instead of VM sizes.
Picking very large VM sizes unnecessarily.
2fill in blank
medium

Complete the code to set the SKU for an Azure SQL Database to optimize cost.

Azure
sql_db = sql_client.databases.create_or_update(resource_group_name, server_name, database_name, {"sku": {"name": "[1]"}})
Drag options to blanks, or click blank then click option'
ABasic
BPremium
CBusinessCritical
DHyperscale
Attempts:
3 left
💡 Hint
Common Mistakes
Selecting high-performance SKUs for low-demand workloads.
Confusing SKU names with service tiers.
3fill in blank
hard

Fix the error in the code to resize an Azure VM to a smaller size for cost savings.

Azure
vm_update = compute_client.virtual_machines.begin_update(resource_group_name, vm_name, {"hardware_profile": {"vm_size": "[1]"}})
Drag options to blanks, or click blank then click option'
AUltraSSD_LRS
BStandard_F32s_v2
CStandard_D64s_v3
DStandard_B1s
Attempts:
3 left
💡 Hint
Common Mistakes
Using storage types instead of VM sizes.
Selecting larger VM sizes when downsizing.
4fill in blank
hard

Fill both blanks to configure an Azure App Service plan with a cost-effective SKU and region.

Azure
app_service_plan = web_client.app_service_plans.begin_create_or_update(resource_group_name, plan_name, {"location": "[1]", "sku": {"name": "[2]"}})
Drag options to blanks, or click blank then click option'
Aeastus
Bwestus2
CB1
DP1v2
Attempts:
3 left
💡 Hint
Common Mistakes
Selecting premium SKUs for simple apps.
Choosing regions with higher pricing.
5fill in blank
hard

Fill all three blanks to create a storage account with right-sized performance and redundancy.

Azure
storage_account = storage_client.storage_accounts.begin_create(resource_group_name, account_name, {"location": "[1]", "sku": {"name": "[2]"}, "kind": "[3]"})
Drag options to blanks, or click blank then click option'
Aeastus2
BStandard_LRS
CStorageV2
DPremium_ZRS
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing premium SKUs unnecessarily.
Using older storage kinds that lack features.