exam questions

Exam 70-741 All Questions

View all questions & answers for the 70-741 exam

Exam 70-741 topic 1 question 65 discussion

Actual exam question from Microsoft's 70-741
Question #: 65
Topic #: 1
[All 70-741 Questions]

You have a Hyper-V server named Server1 that runs Windows Server 2016. Server1 has an IP address of 192.168.1.78.
Server1 has a container named Container1 that hosts a web application on port 84. Container1 has an IP address of 172.16.5.6.
Container1 has a port mapping from port 80 on Server1 to port 84 on Container1.
You have a server named Server2 that has an IP address of 192.168.1.79.
You need to connect to the web application from Server2.
To which IP address and port should you connect?

  • A. 172.16.5.6:80
  • B. 192.168.1.78:80
  • C. 172.16.5.6:84
  • D. 192.168.1.78:84
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
References: https://www.assistanz.com/configure-port-mapping-for-windows-container/

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
Eric1234
Highly Voted 5 years, 11 months ago
from what I understand and I may be corrected. The first connection Server 2 is going to make is to Server 1 on port 80. It will then get translated to port 84/ the container because it resides inside of Server 1.
upvoted 16 times
...
Ozguraydin
Highly Voted 5 years, 7 months ago
For me, Answer is B. Server 2 can't know container IP and port in Server 1.
upvoted 5 times
...
Yebubbleman
Most Recent 4 years, 5 months ago
A key element to this question that is easy to overlook is that port mapping is already set up.
upvoted 1 times
...
kovix
4 years, 11 months ago
This is a 740 question. the Answer B is correct.
upvoted 2 times
V1980
4 years, 7 months ago
No, I got it twice in 70-741. Once this week and once last week.
upvoted 4 times
ykarma
4 years, 7 months ago
Have any of the question on this site from 741 been on the exam, cos it seems many question people disagree with the given answers this site gives, which makes me question this whole 741 they put up. Normally you'd also see people comment on how they got this question, or that queston on the exam, which doesn't seem to be the case on this one 741.
upvoted 3 times
...
GoldenFox
4 years, 6 months ago
Same. Got this question.
upvoted 2 times
...
...
Yebubbleman
4 years, 5 months ago
Port mapping is 70-741. Don't focus on the container; focus on the port mapping!
upvoted 1 times
...
...
Thermal
5 years ago
Pretty straight forward port mapping question. The Port mapping is set up to transfer traffic sent to Server 1 on port 80 to Container 1 on port 84. Therefore... Server 2 will contact Server 1 (Via it's IP address 192.168.1.78 on port 80) Server 1 will use the port mapping to transfer that traffic to Container 1 on port 84.
upvoted 4 times
...
Protomike
5 years, 5 months ago
Answer is Correct
upvoted 3 times
...
a1037040
5 years, 6 months ago
Got it. So basically using the host’s IP of the container (192.168.1.78) but going further and using port 80 since that’s the port the container is assigned to.
upvoted 4 times
...
dv8inpp
5 years, 9 months ago
@Paz great info. As the access is from another device on the network, not the host providing NAT does this still apply?
upvoted 1 times
...
Paz
5 years, 10 months ago
https://techcommunity.microsoft.com/t5/Virtualization/Windows-NAT-WinNAT-Capabilities-and-limitations/ba-p/382303 Accessing internal endpoints directly from the Host: Internal endpoints assigned to VMs or containers cannot be accessed using the external IPs / ports referenced in NAT static port mappings directly from the NAT host. From the NAT host, these internal endpoints must be addressed directly by their internal IP and ports. For instance, assume a container endpoint has IP 172.16.1.100 and is running a web server which is listening on port 80. Moreover, assume a port mapping has been created through docker to forward traffic from the host’s IP address (10.10.50.20) received on TCP port 8080 to the container endpoint. In this case, a user on the container host cannot directly access the web server using the externally mapped ports. e.g. A user operating on the container host cannot access the container web server indirectly on http://10.10.50.20:8080 . Instead, the user must directly access the container web server on http://172.16.1.100:80 .
upvoted 1 times
adv87
5 years, 10 months ago
Based on this explanation, the answer would be: C. 172.16.5.6:84 ?
upvoted 2 times
...
Gary
5 years, 7 months ago
I know what you say. Just a simple question, how can you access the docker if no route? What you say is access from the container host, not access from other device in the same subnet with container host.
upvoted 2 times
...
c3r3br4l
5 years, 7 months ago
For this question we're not accessing the container from the container host (server 1), we're accessing it from another server (server 2) on the same subnet as server 1. I think B is correct, we wouldn't have a route directly to the container's IP address from the external system
upvoted 1 times
...
...
Paz
5 years, 10 months ago
Microsoft has a known issue where if you connect from the same subnet as the server hosting the container then the container IP will not work. The 70-740 exam has multiple test questions around the same topic. If you had a container or server on the 172.16.5 subnet then it would be able to see and use the container ip\port. coming from the 192, only the 192 ip and port will work. hope this helps.
upvoted 1 times
...
Sean89
5 years, 11 months ago
I am not sure, why the answer is B. Can someone please explain?
upvoted 2 times
eroc1990
4 years, 6 months ago
The external port (the one being exposed from 192.168.1.78) is port 80. This port is being forwarded to port 84 on the container device's IP address. Therefore, you'd have to go in via 80 on the external IP.
upvoted 3 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 ...