exam questions

Exam AZ-700 All Questions

View all questions & answers for the AZ-700 exam

Exam AZ-700 topic 4 question 18 discussion

Actual exam question from Microsoft's AZ-700
Question #: 18
Topic #: 4
[All AZ-700 Questions]

HOTSPOT -
You have an Azure virtual network that contains the subnets shown in the following table.

In.NSG1, you create inbound rules as shown in the following table.

NSG2 has only the default rules configured.
You have the Azure virtual machines shown in the following table.

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:

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
Sheriboy
Highly Voted 2 years, 7 months ago
should be N,N, Y 1) Inbound rule on subnet1 will deny 2) Inbound rule on subnet2 will deny 3) No rule on VM3 so it would allow connections
upvoted 97 times
manhattan
3 months ago
2) which is the inbound rule blocking on subnet 2 exactly?
upvoted 2 times
...
CharlesS76
10 months ago
3) In correct reason: VM3 is on subnet2 which has NSG2 applied. "NSG2 has only the default rules configured." Default rules allow traffic within the vNET, this is why the answer is YES.
upvoted 2 times
...
EdinaldoJunior1981
2 years, 4 months ago
N,N,Y correct
upvoted 1 times
...
Cristoicach91
2 years, 7 months ago
correct.
upvoted 1 times
...
...
charlesr1700
Highly Voted 2 years, 6 months ago
N, inbound rule on subnet one will deny Y, Communication within the same subnet does not go through an NSG, so nothing blocking Y, Standard rules do not block vNet to vNet communication unless explicit.
upvoted 36 times
0af6e8e
3 months ago
Intra-Subnet traffic It's important to note that security rules in an NSG associated to a subnet can affect connectivity between VMs within it. By default, virtual machines in the same subnet can communicate based on a default NSG rule allowing intra-subnet traffic. If you add a rule to NSG1 that denies all inbound and outbound traffic, VM1 and VM2 won't be able to communicate with each other.
upvoted 1 times
...
davidkerr7
2 years, 6 months ago
2) is wrong "It's important to note that security rules in an NSG associated to a subnet can affect connectivity between VM's within it."
upvoted 14 times
...
...
bobothewiseman
Most Recent 2 months, 2 weeks ago
NNY VM3 can connect to VM1 on port 8080? ❌ No 2. VM1 and VM2 can connect on port 9090? ❌ No 3. VM1 can connect to VM3 on port 9090? ✅ Yes
upvoted 1 times
...
Aydin
12 months ago
NNY 1 and 2 Inbound rule deny because of NSG 1 assigned to Subnet 1 and Default Inbould Rule is allowVnet any to any so, Vm1 can connect to Vm3 by default
upvoted 1 times
...
hogehogehoge
1 year, 5 months ago
3) NSG Default inbound rule include DenyAllInBound rule. So this answer is No.
upvoted 1 times
BJack
8 months, 3 weeks ago
DenyAllInBound is, by default, the lowest priority rule. The default higher priority rule, AlowVnetInBound, allows all traffic between Virtual Networks, therefore 3 = Yes.
upvoted 1 times
...
...
GBAU
1 year, 5 months ago
N,N,Y Lab confirmed: Virtual Network 200 * Deny rule blocks both: -VM1 to VM2 -VM3 to VM1 Remove that rule and connectivity is restored Good to know, as I had thought the NSG applied to a SN only worked on the ingress and egress of the SN, but it also can work within the SN itself. Maybe I am remembering back to my AWS networking, or just imagining things. I don't think anyone is disputing VM1->VM3 = Y
upvoted 2 times
...
Lazylinux
1 year, 6 months ago
NNY * Inbound rule on subnet1 will deny * Inbound rule on subnet2 will deny - remember the scope is the whole vNET * No rule on VM3 and default rule allows for vNET communication without restrictions
upvoted 1 times
xRiot007
4 days, 5 hours ago
The scope of NSG2 is subnet2 and nothing more. The scope of NSG1 is subnet1 and nothing more. VM3 can connect to VM2 using default NSG2 on subnet2 because the default rule to allow inbound VNet is higher than the default deny rule. https://learn.microsoft.com/en-us/azure/virtual-network/manage-network-security-group?tabs=network-security-group-portal#view-details-of-a-network-security-group
upvoted 1 times
...
...
Billabongs
1 year, 8 months ago
NNY "If you add a rule to NSG1 that denies all inbound and outbound traffic, VM1 and VM2 won't be able to communicate with each other." https://learn.microsoft.com/en-us/azure/virtual-network/network-security-group-how-it-works#intra-subnet-traffic
upvoted 1 times
...
UR
1 year, 9 months ago
NNY Ref for #2: https://learn.microsoft.com/en-us/azure/virtual-network/network-security-group-how-it-works#intra-subnet-traffic
upvoted 1 times
...
Rivaillexd07
1 year, 9 months ago
I think the best answer is N,N,N the first two are already very clear, about the last one, it is said that the NSG2 has default rules, nothing is said about port 9090 released, so, based on this, access would be denied. Anyone else agree?
upvoted 3 times
Rivaillexd07
1 year, 9 months ago
I'm sorry guys I read again the question is the right answer is N,N and Y communication between subnets is released by default, NSG2 is using default rules.
upvoted 1 times
...
...
ABIYGK
1 year, 10 months ago
1. N — VM3 is trying to access VM1 through port 8080 and port 8080 not in allowed port list of NSG1 2. N — VM1 and VM2 tryin to talk with each other. Even though the are on the same subnet the NSG1 deny rule will include port 9090 3. Y — VM1 and VM3 can have connection NSG1 will not affect any outbound connection. NSG 1 is applied inbound and which means it affect connections that comes Subnet 1 only. The only allowed port is http (80) and https (443) and the rest is blocked. Any connection going out side of Subnet 1 is allowed. VM1 and VM2 will be affected by NSG1 because they are under Subnet1. NG2 will not affect anything because only default rules are configured.
upvoted 1 times
...
ABIYGK
1 year, 10 months ago
The answer should be N N Y
upvoted 1 times
...
MrBlueSky
2 years ago
I re-created this in a lab and can confirm that the VMs could not communicate with one another even though they are in the same subnet. As others have discussed and provided the link for... NSGs are still used for intra-subnet communication. Answer is NNY
upvoted 1 times
...
faeem
2 years ago
I would go with N,N,Y as described,"By default, virtual machines in the same subnet can communicate based on a default NSG rule allowing intra-subnet traffic. If a rule is added to *NSG1 that denies all inbound and outbound traffic, VM1 and VM2 will no longer be able to communicate with each other." With NSG1 having custom rules, intra-communication is defined by the rules.
upvoted 1 times
...
Apptech
2 years ago
should be NYN 1. Inbound rule on subnet1 will deny 2.By default, virtual machines in the same subnet can communicate based on a default NSG rule allowing intra-subnet traffic. (https://learn.microsoft.com/en-us/azure/virtual-network/network-security-group-how-it-works#intra-subnet-traffic) 3. VM3 has default rule as the text states. DenyAllInbound is the default vor NSG. See here: https://learn.microsoft.com/en-us/azure/virtual-network/network-security-groups-overview
upvoted 3 times
xRiot007
4 days, 5 hours ago
"By default, virtual machines in the same subnet can communicate based on a default NSG rule allowing intra-subnet traffic" - unless a rule to block them exists, which it does, so 2 is NO. 3 is Yes because the there is a default rule to allow inbound vnet higher than deny all inbound.
upvoted 1 times
...
Sergovladi
2 months, 2 weeks ago
NYN is correct. However, it is strange that nobody noticed that NSG2 is not associated with any subnet or NIC
upvoted 1 times
...
farajcmm
9 months, 2 weeks ago
i agree NYN
upvoted 1 times
...
...
Libaax01
2 years, 1 month ago
VM3, which is part of Subnet 2, can not connect to port 8080 on VM1, because we have inbound rule that denies all ports accept port 80 and 443. so, the answer is No! VM1 and VM2 are on the same subnet and by default inbound rules within a virtual network are allowed, however we NSG with a lower priority(200) over riding the default allowed rule which is priority 65000. So the Answer is NO! VM1 is on Subnet 1 and VM3 is on Subnet 2, and outbound communication by default between subnets in the same virtual network is allowed and the question states NSG2 has only the default rules configured. so the answer is YES! N N Y
upvoted 3 times
...
samir111
2 years, 1 month ago
It should be N,N, Y
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