0
0
Azurecloud~10 mins

Azure global infrastructure (regions, availability zones) - 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 Azure region for resource deployment.

Azure
resource_group = azurerm_resource_group('example', location='[1]')
Drag options to blanks, or click blank then click option'
Aeastus
Bcentralus
Cwestus2
Dnorthcentralus
Attempts:
3 left
💡 Hint
Common Mistakes
Using an invalid or misspelled region name.
Confusing region names with availability zones.
2fill in blank
medium

Complete the code to specify an availability zone in the Azure region.

Azure
vm = azurerm_virtual_machine('vm1', location='westus2', zone='[1]')
Drag options to blanks, or click blank then click option'
Azone-4
Bzone1
CzoneA
D1
Attempts:
3 left
💡 Hint
Common Mistakes
Using zone names with words instead of numbers.
Specifying zones that do not exist in the region.
3fill in blank
hard

Fix the error in the code to correctly deploy a resource in an Azure availability zone.

Azure
storage_account = azurerm_storage_account('storage1', location='westus2', zone='[1]')
Drag options to blanks, or click blank then click option'
A2
Bzone2
Czone-2
DzoneB
Attempts:
3 left
💡 Hint
Common Mistakes
Using string labels instead of numeric zone identifiers.
Confusing availability zones with regions.
4fill in blank
hard

Fill both blanks to create a resource group and specify its Azure region and availability zone.

Azure
resource_group = azurerm_resource_group('rg1', location='[1]')
vm = azurerm_virtual_machine('vm1', location='[2]', zone='1')
Drag options to blanks, or click blank then click option'
Aeastus2
Bwestus
Ccentralus
Dnorthcentralus
Attempts:
3 left
💡 Hint
Common Mistakes
Using the same region for both blanks without reason.
Using invalid region names.
5fill in blank
hard

Fill all three blanks to define a VM with a specific region, availability zone, and resource group location.

Azure
resource_group = azurerm_resource_group('rg2', location='[1]')
vm = azurerm_virtual_machine('vm2', location='[2]', zone='[3]')
Drag options to blanks, or click blank then click option'
Aeastus
Bwestus2
C3
D1
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing region names with zone numbers.
Using invalid zone identifiers.