Question 348 — Domain 2-Describe Azure architecture and services | AZ-900 Practice Exam | 399 Questions
You have deployed an Azure Virtual Machine (VM) hosting a line-of-business web application. To provide access to the application over the Internet via HTTP/HTTPS, you add a security rule to the Network Security Group (NSG) to allow inbound traffic from the Internet. Does this solution meet the requirement? (Select 1 answer).
Yes, because allowing inbound traffic in the NSG enables Internet access to the application.
No, because you need to configure an Azure Application Gateway for HTTP/HTTPS access.
No, because you must also enable public IP addressing for the Azure VM.
Yes, provided the NSG rule is correctly configured for HTTP/HTTPS ports.
Correct answers
Yes, provided the NSG rule is correctly configured for HTTP/HTTPS ports.
Explanations
Correct:
Yes, provided the NSG rule is correctly configured for HTTP/HTTPS ports. The NSG rule must explicitly allow inbound traffic on ports 80 (HTTP) and 443 (HTTPS) for the solution to meet the requirement.
Wrong:
Yes, because allowing inbound traffic in the NSG enables Internet access to the application. This is incomplete because the rule must specifically allow HTTP/HTTPS traffic.
No, because you need to configure an Azure Application Gateway for HTTP/HTTPS access. While an Application Gateway can be used, it is not required to meet the stated requirement.
No, because you must also enable public IP addressing for the Azure VM. Public IP addressing is typically already configured for Internet-facing Azure VMs, and adding the NSG rule is sufficient.