Preventing Traffic from Azure Virtual Network to Azure Storage Account via Internet

Preventing Traffic from Azure Virtual Network to Azure Storage Account via Internet

Prev Question Next Question

Question

What should you use to prevent traffic from an Azure virtual network from being routed to an Azure Storage account via the internet?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

A

To prevent traffic from an Azure virtual network from being routed to an Azure Storage account via the internet, you should use option D: a service endpoint.

Here's a detailed explanation of each option:

A. Network Security Group (NSG): A Network Security Group is a basic level of firewalling that operates at the network layer (Layer 4) of the OSI model. While NSGs can help control inbound and outbound traffic to and from Azure resources, they do not specifically prevent traffic from being routed to an Azure Storage account via the internet. NSGs primarily work with IP addresses, ports, and protocols, and are not directly involved in controlling the routing of traffic.

B. Public Endpoint: A public endpoint is a way to expose an Azure resource publicly over the internet. It is typically used for resources that need to be accessible from outside the virtual network. In this context, using a public endpoint would have the opposite effect of what you want to achieve since it would enable routing traffic to the Azure Storage account via the internet.

C. Azure VPN Gateway: An Azure VPN Gateway is used to establish secure, encrypted connections between Azure virtual networks and on-premises networks or other virtual networks. It is not specifically designed to prevent traffic from being routed to an Azure Storage account via the internet. While it can provide secure connectivity between networks, it does not address the requirement of preventing internet routing to the storage account.

D. Service Endpoint: A service endpoint is the correct choice to prevent traffic from an Azure virtual network from being routed to an Azure Storage account via the internet. By configuring a service endpoint, you establish a direct connection between the virtual network and the specific Azure service (in this case, Azure Storage). This connection occurs over the Azure backbone network, bypassing the need to route traffic over the internet. By enabling a service endpoint for Azure Storage on the virtual network, you can restrict access to the storage account only from within the virtual network, effectively blocking internet-based routing.

In summary, to prevent traffic from an Azure virtual network from being routed to an Azure Storage account via the internet, you should use a service endpoint (option D). This will establish a direct, secure connection between the virtual network and the storage account, bypassing the need for internet routing.

To prevent traffic from an Azure virtual network from being routed to an Azure Storage account via the internet, you should use a service endpoint.

Azure virtual networks enable you to create a private network in the cloud. Azure Storage is a cloud-based storage solution provided by Microsoft Azure. By default, traffic between a virtual network and an Azure Storage account is routed over the internet, which can expose the data to potential security threats.

A service endpoint is a secure and direct connection between a virtual network and an Azure service. When you configure a service endpoint for Azure Storage on a virtual network, the traffic to the Azure Storage account is automatically routed through the private link, and it never leaves the Microsoft Azure backbone network. This ensures that the data stays within the secure boundaries of your virtual network and is not exposed to the public internet.

Network security groups (NSG) are used to filter network traffic to and from Azure resources. A public endpoint is an endpoint that allows traffic from the internet to reach an Azure resource. An Azure VPN Gateway is used to create a secure and encrypted connection between a virtual network and an on-premises network or another Azure virtual network.

Therefore, for the given scenario, the correct option is D. a service endpoint.