0
0
Azurecloud~20 mins

Azure SQL firewall rules - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Azure SQL Firewall Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
Understanding Azure SQL firewall rule effect

You create an Azure SQL server with a firewall rule allowing IP range 192.168.1.0 to 192.168.1.255. A client with IP 192.168.2.10 tries to connect. What happens?

AThe client connection is blocked by the firewall.
BThe client connection is allowed because it is in the same subnet.
CThe client connection is allowed because Azure SQL ignores IP ranges.
DThe client connection is allowed only if the client uses SQL authentication.
Attempts:
2 left
💡 Hint

Firewall rules restrict access by IP address ranges.

Configuration
intermediate
2:00remaining
Configuring Azure SQL firewall rule via Azure CLI

Which Azure CLI command correctly creates a firewall rule named 'AllowOffice' for IP 203.0.113.5 on an Azure SQL server named 'myserver' in resource group 'mygroup'?

Aaz sql server firewall-rule create --resource-group mygroup --server myserver --rule AllowOffice --ip 203.0.113.5
Baz sql firewall-rule add --resource-group mygroup --server myserver --rule-name AllowOffice --ip 203.0.113.5
Caz sql server firewall-rule add --resource-group mygroup --server myserver --name AllowOffice --ip-address 203.0.113.5
Daz sql server firewall-rule create --resource-group mygroup --server myserver --name AllowOffice --start-ip-address 203.0.113.5 --end-ip-address 203.0.113.5
Attempts:
2 left
💡 Hint

Check Azure CLI syntax for creating firewall rules on SQL servers.

security
advanced
2:00remaining
Security implications of enabling 'Allow Azure services' in Azure SQL firewall

What is the security impact of enabling the 'Allow Azure services and resources to access this server' option in Azure SQL firewall?

AIt enables multi-factor authentication for all Azure SQL connections.
BIt blocks all external IP addresses except those explicitly allowed.
CIt allows any Azure service from any subscription to connect to the SQL server, potentially increasing exposure.
DIt restricts access only to Azure services within the same resource group.
Attempts:
2 left
💡 Hint

Think about what 'Allow Azure services' means for network access scope.

Architecture
advanced
2:00remaining
Designing Azure SQL firewall rules for hybrid cloud access

You have an on-premises network with dynamic IP addresses connecting to Azure SQL. Which approach best secures access while allowing connectivity?

AManually update firewall rules daily with current on-premises IP addresses.
BUse a VPN or ExpressRoute to connect on-premises network to Azure, then allow Azure SQL access only from the VPN gateway IP.
CAllow all IP addresses in Azure SQL firewall to avoid connection issues.
DDisable Azure SQL firewall to allow all connections.
Attempts:
2 left
💡 Hint

Consider secure network connectivity options between on-premises and Azure.

Best Practice
expert
2:00remaining
Optimizing Azure SQL firewall rules for least privilege access

You want to follow the least privilege principle for Azure SQL firewall rules. Which practice is best?

ACreate firewall rules with the smallest possible IP ranges and remove unused rules regularly.
BAllow all IP addresses to avoid connection failures and simplify management.
CEnable 'Allow Azure services' and rely on SQL authentication for security.
DCreate one large IP range covering all possible client IPs to reduce rule count.
Attempts:
2 left
💡 Hint

Least privilege means granting only the access needed, no more.