Contoso has an Azure Cosmos DB for NoSQL account. In Networking, Allow access from is set to Selected networks. The only IP rule is the office range 203.0.113.0/28. No virtual network rules exist, no private endpoint exists, and Accept connections from within Azure datacenters is not selected.
A new Azure Functions app that does not use a fixed outbound IP address must read from the account. An administrator is considering selecting Accept connections from within Azure datacenters.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
| Statement | Yes | No |
|---|---|---|
With the current configuration, a request from a home laptop whose public IP address is outside 203.0.113.0/28 receives an HTTP 403 response, even if it presents a valid authorization token.Once IP rules are applied, requests from machines outside the allowed list receive 403 (Forbidden). A valid token does not bypass the network restriction, and no other rule or exception in the scenario allows the laptop. | Correct | |
| Selecting Accept connections from within Azure datacenters allows Azure traffic from subscriptions in Contoso's own Microsoft Entra tenant, and not from other customers' subscriptions. The option allows requests from Azure datacenters, including requests from the subscriptions of other customers. It is not limited to a tenant. | Correct | |
| Selecting Accept connections from within Azure datacenters adds the IP address 0.0.0.0 to the account's list of allowed IP addresses. When this option is enabled, the special 0.0.0.0 entry is added to the allowed IP list. This entry represents the Azure datacenter IP range. | Correct |
Setting Selected networks with an IP rule limits public access to the listed addresses. Other sources get HTTP 403 even when they present a valid token. The Azure datacenters option adds the 0.0.0.0 marker. That marker admits requests from Azure datacenters across all customers' subscriptions, so it is broad and is not tenant-restricted. It does not open the account to the whole internet.
- Configure IP Firewall - Azure Cosmos DBMicrosoft Learn
- Secure an Azure Cosmos DB solution: Configure network securityMicrosoft Learn