0
0
Azurecloud~20 mins

VM states (running, stopped, deallocated) in Azure - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
VM State Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
Understanding VM State Impact on Billing

You have an Azure VM that you stopped from the Azure portal. What is the billing state of this VM?

AYou are billed only for storage but not compute because the VM is deallocated.
BYou are not billed at all because the VM is stopped and deallocated automatically.
CYou are still billed for the VM's compute resources because the VM is only stopped but not deallocated.
DYou are billed for both compute and storage because the VM is running.
Attempts:
2 left
💡 Hint

Stopping a VM from the portal does not always release compute resources.

🧠 Conceptual
intermediate
2:00remaining
Difference Between Stopped and Deallocated States

Which statement correctly describes the difference between the 'Stopped' and 'Deallocated' states of an Azure VM?

A'Stopped' means the VM is deleted; 'Deallocated' means the VM is paused.
B'Stopped' means the VM is powered off but compute resources are still reserved; 'Deallocated' means compute resources are released.
C'Stopped' means the VM is running but idle; 'Deallocated' means the VM is running with no network.
D'Stopped' and 'Deallocated' are the same state with different names.
Attempts:
2 left
💡 Hint

Think about resource reservation and billing implications.

Configuration
advanced
2:00remaining
Automating VM Deallocation via Azure CLI

You want to write an Azure CLI command to stop and deallocate a VM named 'webserver1' in resource group 'prod-rg'. Which command correctly achieves this?

Aaz vm deallocate --resource-group prod-rg --name webserver1
Baz vm shutdown --resource-group prod-rg --name webserver1
Caz vm stop --resource-group prod-rg --name webserver1
Daz vm power-off --resource-group prod-rg --name webserver1
Attempts:
2 left
💡 Hint

Stopping a VM does not deallocate it. Which command explicitly deallocates?

Architecture
advanced
2:00remaining
Designing Cost-Efficient VM Usage

You have a development VM that is used only during business hours (9am-5pm). To minimize costs, which VM state management strategy is best?

ADelete the VM at 5pm and recreate it at 9am to save costs.
BStop the VM at 5pm and start it at 9am to avoid compute charges during off-hours.
CLeave the VM running but shut down the OS at 5pm to save costs.
DDeallocate the VM at 5pm and start it at 9am to avoid compute charges during off-hours.
Attempts:
2 left
💡 Hint

Consider which state stops billing for compute resources.

security
expert
2:00remaining
Security Implications of VM States

Which VM state provides the highest security assurance that the VM is not accessible over the network and cannot be accidentally started?

AStopped (deallocated)
BStopped (allocated)
CPaused
DRunning
Attempts:
2 left
💡 Hint

Think about network accessibility and resource allocation.