Complete the code to specify the VM size for right-sizing.
vm = compute_client.virtual_machines.create_or_update(resource_group_name, vm_name, {"hardware_profile": {"vm_size": "[1]"}})The Standard_DS1_v2 is a common right-sized VM size for general workloads in Azure.
Complete the code to set the SKU for an Azure SQL Database to optimize cost.
sql_db = sql_client.databases.create_or_update(resource_group_name, server_name, database_name, {"sku": {"name": "[1]"}})The Basic SKU is a cost-effective choice for light workloads and testing.
Fix the error in the code to resize an Azure VM to a smaller size for cost savings.
vm_update = compute_client.virtual_machines.begin_update(resource_group_name, vm_name, {"hardware_profile": {"vm_size": "[1]"}})Standard_B1s is a smaller VM size suitable for cost savings compared to larger sizes.
Fill both blanks to configure an Azure App Service plan with a cost-effective SKU and region.
app_service_plan = web_client.app_service_plans.begin_create_or_update(resource_group_name, plan_name, {"location": "[1]", "sku": {"name": "[2]"}})Choosing eastus region and B1 SKU provides a cost-effective App Service plan.
Fill all three blanks to create a storage account with right-sized performance and redundancy.
storage_account = storage_client.storage_accounts.begin_create(resource_group_name, account_name, {"location": "[1]", "sku": {"name": "[2]"}, "kind": "[3]"})Using eastus2 region, Standard_LRS SKU, and StorageV2 kind balances cost and performance for most workloads.