You have an Azure web app (webapp1) and a virtual network VNET1 that contains VM1 hosting MySQL. VM1 is connected to VNET1. What should you do so webapp1 can access the data on VM1?
Choose an answer
Tap an option to check your answer.
Correct answer: Connect webapp1 to VNET1.
Why this is the answer
Connecting webapp1 to VNET1 using VNet Integration allows the web app to access resources within the virtual network, including VM1. This establishes a direct, private connection, enabling webapp1 to communicate with VM1 as if it were inside the same VNet. Deploying an internal load balancer would distribute traffic among multiple backend resources, which isn't the primary need for a single web app to access a single VM. Peering VNET1 to another virtual network would allow resources in VNET1 to communicate with resources in the peered VNet, but it doesn't directly connect webapp1 to VNET1. Deploying an Azure Application Gateway is a Layer 7 load balancer and web application firewall, used for routing and securing web traffic, not for connecting a web app to a backend VM within a VNet.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed