0
0
Azurecloud~20 mins

Resource locks (delete, read-only) in Azure - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Resource Lock Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
Effect of Delete Lock on Resource Deletion

You have applied a Delete lock on an Azure Storage Account. What happens if you try to delete this storage account?

AThe resource is deleted but all its data is retained for 30 days automatically.
BThe deletion proceeds normally without any warnings or errors.
CThe deletion is blocked and an error is returned preventing the resource from being deleted.
DThe deletion is allowed but a notification email is sent to the subscription owner.
Attempts:
2 left
💡 Hint

Think about what a Delete lock is designed to prevent.

service_behavior
intermediate
2:00remaining
Effect of Read-Only Lock on Resource Modification

You apply a Read-Only lock on an Azure Virtual Machine. Which of the following actions will be blocked?

AOnly deleting the VM will be blocked; starting and stopping are allowed.
BModifying the VM's configuration or deleting it will be blocked, but starting and stopping are allowed.
CNo actions are blocked; the lock only prevents reading the VM's properties.
DStarting, stopping, or deleting the VM will be blocked.
Attempts:
2 left
💡 Hint

Consider what Read-Only lock means for resource changes.

Architecture
advanced
2:00remaining
Best Practice for Protecting Critical Resources

You manage a production Azure environment with critical resources. Which lock strategy is best to prevent accidental deletion but still allow necessary updates?

AApply a <strong>Delete</strong> lock on critical resources to block deletion but allow updates.
BApply a <strong>Read-Only</strong> lock on critical resources to block all changes including updates.
CDo not apply any locks; rely on role-based access control (RBAC) only.
DApply both <strong>Delete</strong> and <strong>Read-Only</strong> locks on all resources.
Attempts:
2 left
💡 Hint

Think about allowing updates but preventing deletion.

security
advanced
2:00remaining
Impact of Locks on Role-Based Access Control (RBAC)

If a user has Owner role on a resource but a Read-Only lock is applied, what is the effective permission for that user?

AThe user can read the resource but cannot modify or delete it due to the lock.
BThe user can delete the resource but cannot modify it.
CThe user cannot access the resource at all because the lock overrides RBAC.
DThe user can perform all Owner actions ignoring the lock.
Attempts:
2 left
💡 Hint

Consider how locks and RBAC permissions interact.

🧠 Conceptual
expert
2:00remaining
Lock Scope and Inheritance Behavior

You apply a Delete lock at the resource group level. Which statement is true about the lock's effect on resources inside that group?

AThe lock applies only to resources tagged with a specific tag matching the resource group.
BThe lock only applies to the resource group itself, not to individual resources inside it.
CThe lock applies only to new resources created after the lock was applied.
DThe lock applies to all resources within the resource group, preventing their deletion unless the lock is removed.
Attempts:
2 left
💡 Hint

Think about how locks propagate in Azure hierarchy.