Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam AZ-104 topic 5 question 14 discussion

Actual exam question from Microsoft's AZ-104
Question #: 14
Topic #: 5
[All AZ-104 Questions]

You have an Azure web app named webapp1.
You have a virtual network named VNET1 and an Azure virtual machine named VM1 that hosts a MySQL database. VM1 connects to VNET1.
You need to ensure that webapp1 can access the data hosted on VM1.
What should you do?

  • A. Deploy an internal load balancer
  • B. Peer VNET1 to another virtual network
  • C. Connect webapp1 to VNET1
  • D. Deploy an Azure Application Gateway
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Az209co
Highly Voted 3 years, 6 months ago
I think the answer should be C. <https://docs.microsoft.com/en-us/azure/app-service/web-sites-integrate-with-vnet>
upvoted 91 times
jantoniocesargatica
2 years, 11 months ago
You are unable to connect a Webapp to a Vnet, if the Vnet is not empty. In this case there is a VM.
upvoted 4 times
tita_tovenaar
2 years, 9 months ago
correct but the network integrator in app service lets you create a subnet in the same vnet, precisely for this scenario.. check the ref above ;-)
upvoted 6 times
...
luxaflow
2 years, 6 months ago
This is correct, tested in Lab: Was able to connect webapp to a VNet containing a VM. During connection creation, was requested to create a new subnet.
upvoted 7 times
...
slimjago
2 years, 10 months ago
based on that, webapp needs it's own VNET, right? which could be peered with VNET1. what do you think?
upvoted 3 times
a4andrew
2 years, 6 months ago
webapp only needs it own empty(not delegated nor has any resources within) subnet, not VNET (which can contain many subnets) and a /29 subnet is the smallest you can use for such a service.
upvoted 9 times
...
...
...
...
fedztedz
Highly Voted 3 years, 3 months ago
Answer is wrong. It should be "C" Connect the webapp to VNET using webapp VNET integration. where webapp can access the resources in the VNET.
upvoted 82 times
PersonT
2 years, 8 months ago
True https://docs.microsoft.com/nl-nl/azure/application-gateway/overview
upvoted 3 times
...
sabin001
2 years, 5 months ago
Correct! VNet integration feature enables your apps to access resources in or through a VNet.
upvoted 1 times
...
itgg11
2 years, 2 months ago
Answer is C. tested in the lab. web app pricing plan needed to be upgraded to Standard. There must be a vnet with a subnet that is not being used. If the subnet is used, you can create a new one.
upvoted 5 times
...
Appu008
2 years, 4 months ago
Wrong, the answer is D only. Because there is no mention that VM1 is in Vnet1, its is said that VM1 only connects to Vnet1 (it is mentioned to distract students towards wrong answer)
upvoted 5 times
dasEnder
1 year, 11 months ago
What is the difference if a VM?? A VM cannot be in two VNets so, if has a NIC in the VNet is in it. Only if you consider that the VM connects using a VPN or peered or any networking. I think this is not what it means here. Also if is not in VNet1, where?
upvoted 1 times
...
shash_ank
1 year, 11 months ago
Once a VM is connected to a VNET, it is part of that VNET, it is inside that VNET. VM connecting to VNET and VM being inside a VNET is one and the same. Don't overthink, it induces wrong answers
upvoted 9 times
...
...
...
Amir1909
Most Recent 1 month, 3 weeks ago
C is correct
upvoted 1 times
...
amsioso
4 months, 1 week ago
Answer D You need to acces the MySQL database, not to integrate webapp1 in VNET1.
upvoted 2 times
amsioso
4 months, 1 week ago
https://learn.microsoft.com/en-us/azure/application-gateway/features
upvoted 1 times
...
...
Yaruk
7 months, 3 weeks ago
Selected Answer: C
so simple question, why do they provide incorrect answer?
upvoted 2 times
...
oopspruu
8 months ago
Selected Answer: C
You can simply create a new subnet within the same vNET and connect the webapp to it. There's no need to make the solution complex by involving Application Gateway here.
upvoted 1 times
...
Teroristo
8 months, 3 weeks ago
Answer is Connect webapp1 to VNET1 The VNet Integration feature has two variations: - Regional VNet Integration: When you connect to Azure Resource Manager virtual networks in the same region, you must have a dedicated subnet in the VNet you're integrating with. - Gateway-required VNet Integration: When you connect to VNet in other regions or to a classic virtual network in the same region, you need an Azure Virtual Network gateway provisioned in the target VNet. Note: If the VNet is in the same region, either create a new subnet or select an empty preexisting subnet. The resources inside a VNet can communicate. Reference: https://docs.microsoft.com/en-us/azure/app-service/web-sites-integrate-with-vnet
upvoted 1 times
...
Sri944
9 months, 1 week ago
The best approach to enable webapp1 to access the data hosted on VM1 in this scenario would be to establish a secure and direct connection between the web app and the virtual machine without involving Azure Application Gateway.
upvoted 1 times
...
medaziz
10 months, 2 weeks ago
I think the web app is a PaaS service so it has a public IP so either we use private link or Azure Application Gateway
upvoted 1 times
...
Kimoz
1 year, 1 month ago
c is the correct answer
upvoted 1 times
...
skydivex
1 year, 1 month ago
the best answer is D.... application gateway would provide a perfect option for webapp to connect to your resources, such as virtual machines or storage accounts. Connecting web app to a VNET requires specific subnet creation and few other items and consideration. It would not be my first choice if it is my own network. but it would definitely doable. https://learn.microsoft.com/en-us/azure/application-gateway/overview
upvoted 2 times
...
CyberKelev
1 year, 1 month ago
Selected Answer: C
The correct answer is C. Connect webapp1 to VNET1. By connecting the web app to the virtual network, you can enable access from the web app to resources on the virtual network, including the MySQL database hosted on VM1. This can be done by enabling VNet Integration for the web app and then selecting VNET1 as the virtual network to integrate with. Once the integration is set up, the web app will be able to communicate with VM1 on VNET1 as if it were on the same network. Option A, deploying an internal load balancer, is not necessary in this scenario, as load balancing is not required. Option B, peering VNET1 to another virtual network, is also not necessary for this scenario, as it does not address the requirement to enable communication between the web app and the MySQL database hosted on VM1. Option D, deploying an Azure Application Gateway, is not necessary for this scenario, as it is primarily used for load balancing and routing of HTTP/HTTPS traffic. It does not address the requirement to enable communication between the web app and the MySQL database hosted on VM1.
upvoted 7 times
...
ConanBarb
1 year, 1 month ago
Selected Answer: C
C "Azure Application Gateway is a web traffic load balancer that enables you to manage traffic to your web applications."
upvoted 1 times
...
omgMerrick
1 year, 2 months ago
Selected Answer: C
C is the correct answer. By connecting webapp1 to VNET1 (answer C), the web app will be able to access the data hosted on VM1 through the virtual network. The other options do not directly address the requirement to allow webapp1 access to the data hosted on VM1. An internal load balancer and a peered virtual network may provide other benefits, but they would not by themselves ensure that webapp1 can access the data hosted on VM1. An Azure Application Gateway is a reverse proxy that is often used for load balancing, SSL termination, and URL-based routing, but it would not directly allow webapp1 to access the data hosted on VM1.
upvoted 2 times
...
jp_mcgee
1 year, 5 months ago
Corect Answer C: C. Connect webapp1 to VNET1 "The App Service virtual network integration feature enables your apps to access resources in or through a virtual network." https://learn.microsoft.com/en-us/azure/app-service/overview-vnet-integration D. Deploy an Azure Application Gateway "Azure Application Gateway is a web traffic load balancer that enables you to manage traffic to your web applications." see here: https://learn.microsoft.com/en-us/azure/application-gateway/overview
upvoted 4 times
...
EmnCours
1 year, 8 months ago
Selected Answer: C
Correct Answer: C
upvoted 2 times
...
nkhan19
1 year, 9 months ago
Selected Answer: C
VNet Integration can be used
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...