exam questions

Exam AZ-900 All Questions

View all questions & answers for the AZ-900 exam

Exam AZ-900 topic 1 question 259 discussion

Actual exam question from Microsoft's AZ-900
Question #: 259
Topic #: 1
[All AZ-900 Questions]

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
Your Azure environment contains multiple Azure virtual machines.
You need to ensure that a virtual machine named VM1 is accessible from the Internet over HTTP.
Solution: You modify a network security group (NSG).
Does this meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
hercu
Highly Voted 4 years, 1 month ago
A Network Security Group (NSG) is sufficient to allow the connection to the virtual machine on port 80 (HTTP) from the Internet. Public IP is part of network configuration. We should mainly focus on the functionality of the Network security groups. For sure, you can allow the connection to the VM through port 80 using NSG. Tutorial from Microsoft that demonstrates the same case (with public IP) and NSG used (no firewall!): https://docs.microsoft.com/en-us/azure/virtual-network/tutorial-filter-network-traffic
upvoted 13 times
RGP4d33
4 years ago
But you're assuming (incorrectly) there is a public IP: and there could not... so, answer must be NO (because is an incomplete solution)
upvoted 2 times
TecKen313
4 years ago
You are wrong. The answer IS CORRECT https://docs.microsoft.com/en-us/learn/modules/secure-and-isolate-with-nsg-and-service-endpoints/3-exercise-network-security-groups
upvoted 2 times
...
...
hercu
4 years, 1 month ago
In addition, note: "Some question sets might have more than one correct solution" which means that the answer available here can be part of the correct solution. To conclude, to modify NSG is surely the required task to meet the expected solution.
upvoted 3 times
...
...
rdy2go
Highly Voted 4 years, 2 months ago
Shouldn't this be "No", you need to make sure there is a public IP first.
upvoted 11 times
sinear
4 years, 1 month ago
We can assume IP address is already granted here. This is "fundamentals", remember ;) ? The question is meant to test we correctly understand what a NSG can do or not. And it can what is stated in the question
upvoted 20 times
RGP4d33
4 years ago
But nowhere says there is a public IP ... what if is being accessed only though Bastion? We coudn't predict there is a public IP, so answer shall be NO.
upvoted 2 times
...
Forkbeard
2 years, 1 month ago
Other questions have punished making assumptions, like the ones about assuming PowerShell is already installed when running a command from a Linux machine.
upvoted 1 times
...
...
joergsi
3 years, 3 months ago
If you drill it down to this level, we need to add a NIC to VM first to have the VM reachable over the network!
upvoted 4 times
...
...
NoursBear
Most Recent 9 months, 1 week ago
There is even an error in the description of the answer it says you can attach a NSG to a virtual network which we know it is not the case
upvoted 1 times
...
SAFM
1 year, 6 months ago
Selected Answer: A
Yes, NSG is a sufficient solution.
upvoted 1 times
...
zellck
2 years, 3 months ago
Selected Answer: A
A is the answer. A network security group (NSG) is a feature in Azure that allows you to control inbound and outbound network traffic to and from Azure resources. By modifying a NSG and configuring it to allow incoming traffic over HTTP (TCP port 80), you can ensure that a virtual machine named VM1 is accessible from the Internet over HTTP. You can do this by creating a new Inbound security rule in the NSG that is associated with the virtual network interface of the VM1, specifying the source as "Internet" and destination as the IP address of the VM1. This solution meets the goal because by allowing incoming traffic over HTTP, you ensure that VM1 is accessible from the Internet using HTTP protocol.
upvoted 1 times
...
AshenOne_31
3 years, 2 months ago
Selected Answer: A
A makes sense
upvoted 2 times
...
akp1000
3 years, 3 months ago
Selected Answer: A
Yes as the NSG allows you to specify the port 80
upvoted 2 times
...
mufflon
3 years, 4 months ago
Selected Answer: B
https://docs.microsoft.com/en-us/azure/azure-vmware/enable-public-internet-access
upvoted 1 times
mufflon
3 years, 4 months ago
changing my mind after reading it works, answer is yes https://docs.microsoft.com/en-us/azure/virtual-network/ip-services/associate-public-ip-address-vm Before you can connect to the public IP address from the internet, ensure that you have the necessary ports open in any network security group that you might have associated to the network interface,
upvoted 1 times
...
...
mufflon
3 years, 4 months ago
Answer should be NO. https://docs.microsoft.com/en-us/azure/virtual-network/tutorial-filter-network-traffic Enable public internet for Azure VMware Solution workloads https://docs.microsoft.com/en-us/azure/azure-vmware/enable-public-internet-access
upvoted 1 times
mufflon
3 years, 4 months ago
changing my mind after reading it works, answer is yes https://docs.microsoft.com/en-us/azure/virtual-network/ip-services/associate-public-ip-address-vm Before you can connect to the public IP address from the internet, ensure that you have the necessary ports open in any network security group that you might have associated to the network interface,
upvoted 3 times
mufflon
3 years, 4 months ago
https://docs.microsoft.com/en-us/azure/virtual-network/tutorial-filter-network-traffic
upvoted 1 times
...
...
...
Harry28731
3 years, 5 months ago
You can attach a network security group to a virtual network and/or individual subnets within the virtual network. No. You can't attach a NSG to a Vnet, but only to subnets within the Vnets or NIC. Please update the answer as its misleading.
upvoted 1 times
...
MGegruis
3 years, 9 months ago
It Should be No, as NGS is to filter traffic in-between the Azure VM & Firewall is for traffic from/to internet.
upvoted 1 times
...
projectkamote
3 years, 10 months ago
NSG or firewall can do this. Since, NSD is present from the options . I chose NSG.
upvoted 1 times
...
mauchi
3 years, 11 months ago
The statement is very vague... but generally yes, modifying NSG in order to allow that traffic would be correct
upvoted 3 times
...
Tintin_06
3 years, 11 months ago
why not modifying ASG instead ? "Your Azure environment contains multiple Azure virtual machines." NSG : Rules are applied to all resources in the associated subnet. ASG : Rules are applied to all ASGs in the same virtual network. Application security groups Application security groups enable you to configure network security as a natural extension of an application's structure, allowing you to group virtual machines and define network security policies based on those groups. You can reuse your security policy at scale without manual maintenance of explicit IP addresses. To learn more, see Application security groups.
upvoted 1 times
...
Franco11
3 years, 11 months ago
Not Enough, U need to make sure there are an allow rule on the FIREWALL
upvoted 1 times
...
Gerardo1971
3 years, 12 months ago
Correct answer
upvoted 1 times
...
TecKen313
4 years ago
The answer is correct. https://docs.microsoft.com/en-us/learn/modules/secure-and-isolate-with-nsg-and-service-endpoints/3-exercise-network-security-groups
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago