exam questions

Exam 70-740 All Questions

View all questions & answers for the 70-740 exam

Exam 70-740 topic 1 question 189 discussion

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

HOTSPOT -
You have two servers named Server1 and Server2 that run Windows Server 2016. Server1 hosts two containers named Container1 and Container2.
The servers and the containers are configured as shown in the following table.

Container1 hosts a website on port 8080.
You create a port mapping between port 8080 on Container1 and port 80 on Server1.
Which URL can you use to access the website from Server1, Server2, and Container2? To answer, select the appropriate options in the answer area.
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
Person
Highly Voted 5 years, 8 months ago
I think that this answer is incorrect. The containers "Container 1" and "Container 2" is on Server 1, then from Server1 we can access by IP Server 1 and IP Container 1. Server 1: http:\\10.10.50.20:80 and 172.16.1.100:8080 Server 2 only can access by the server 1: Server 2: http:\\10.10.50.20:80 Only Container2 is on Server 1, then He can access by IP Server 1 and IP Container 1. Container 2: http:\\10.10.50.20:80 and 172.16.1.100:8080
upvoted 21 times
Gary
5 years, 8 months ago
Container 2: http:\\10.10.50.20:80?
upvoted 2 times
...
falcon4fun
5 years, 7 months ago
I think Person is correct but this should be checked. I think the problem is here: network switch type. We need to know a "SwitchType" parameter of used switch ;/ I will try to test diff inside lab.
upvoted 1 times
falcon4fun
5 years, 7 months ago
So I'm able to ping container host and neighbor server in the same container host network from inside the container. So default switch type is NAT in my case. https://i.imgur.com/brUloeO.png
upvoted 2 times
...
...
lbs
5 years, 2 months ago
I agree with the answer. The majority in this discussion also agrees with the answer
upvoted 1 times
...
...
Ledance
Highly Voted 5 years, 6 months ago
correct answer: Server1: the Container1 is on Server1, so you can access it on Server1 ip as well as the Container1 ip. 10.10.50.20:80 and 172.16.1.100:8080 Server2: 10.10.50.20:80 Only Container2: 10.10.50.20:80 and 172.16.1.100:8080
upvoted 13 times
simocb
4 years, 5 months ago
I agree with Ledance
upvoted 1 times
...
...
simocb
Most Recent 4 years, 5 months ago
answer: Server 1 can access http://172.16.1.100:8080 and http://10.10.50.20:80 Server 2 can access http://10.10.50.20:80 Container 2 can access http://10.10.50.20:80 and http://172.16.1.100:8080
upvoted 1 times
...
Scryptic
4 years, 6 months ago
I need someone to explain how 10.10.50.20:8080 would be possible from anywhere.
upvoted 1 times
...
Pitch09
4 years, 7 months ago
Name IP Address IP Subnet Mask Note Server1 10.10.50.20:80 -Mapped 255.255.255.0 Server2 10.10.50.21 255.255.255.0 Container1 172.16.1.100:8080 -Mapped 255.255.255.0 Inside Server 1 Container2 172.16.1.101 255.255.255.0 Inside Server 1 answer: Server 1 can access http://172.16.1.100:8080 and http://10.10.50.20:80 Server 2 can access http://10.10.50.20:80 Container 2 can access http://10.10.50.20:80 and http://172.16.1.100:8080
upvoted 1 times
...
kit92
4 years, 8 months ago
I guess the answer is Server 1: http:\\10.10.50.20:80 and 172.16.1.100:8080 Server 2: http:\\10.10.50.20:80 Only Container 2: http:\\172.16.1.100:8080 Only The same Network ID and subnet,packet is transmission via Unicast?? Can anyone explain?
upvoted 1 times
...
n3bi3s
4 years, 8 months ago
what should be the answer? too many different answer, anyone can advise ? should follow this as the result or follow who answer? anyone can help?
upvoted 1 times
...
RucasII
4 years, 11 months ago
Container 2 is on server 1
upvoted 2 times
...
nonoelptirobo
4 years, 11 months ago
by default docker enable NAT (create a INTERNAL VSWITCH) to allow the contener to comunicate outside, meaning that : server 1 WILL be able to see http:\\10.10.50.20:80 & 172.16.1.100:8080 server 2 should be able to just see http:\\10.10.50.20:80 as internal vswitch mean host <>vm (container in our case) for the same reason container2 being on a DIFFERENT HOST ( server2) should just also see http:\\10.10.50.20:80 official microsoft documentation on containers networking : https://docs.microsoft.com/en-us/virtualization/windowscontainers/container-networking/architecture
upvoted 1 times
Aimismyname
4 years, 9 months ago
Container 2 is on Server 1.
upvoted 2 times
...
...
waseemsmr
5 years, 1 month ago
I will assume Internal switch, my answers: Server 1: http:\\10.10.50.20:80 and 172.16.1.100:8080 Server 2: http:\\10.10.50.20:80 Only Container 2: http:\\172.16.1.100:8080 Only
upvoted 3 times
alexnt
5 years ago
I agree with server1 and server2 but I think the answer for container2 is http://172.16.1.100:8080 AND http://10.10.50.20:80 as it is hosted on server1 and so can be reached from server's1 IP address.
upvoted 1 times
...
...
CCNP_Student
5 years, 2 months ago
Server 1 : 10.10.50.20:80 only Server 2 : 10.10.50.20:80 only Container 2 : 172.16.1.100:8080 only Correct me if my assumption is wrong, Since we have NAT (By Default), so we can't access containers from outside by their internal addresses (172.x.x.x) and only port mapping is the key by using IP address of container host which is Server1.
upvoted 2 times
jam7272
4 years, 11 months ago
This is a tough question. The default network type in Containers is NAT. This is why you have to use port forwarding. However what is unusual about NAT in Containers is that in Windows all Containers and their ports are only accessible via their NAT'ed IP address. So I agree with CCNP_Student. NAT even applies on the localhost (Server 1) that is hosting the Container. For Server 2 it is easy, NAT again. For Container 2 it is connected to the same internal vSwitch that is part of the default NAT. The internal switch allows internal communication between the hosts, so it can be accessed by 172.16.1.100:8080. It is an internal switch ONLY so it can't see anything outside. CCNP_Student is correct I believe.
upvoted 1 times
...
...
khalid86
5 years, 2 months ago
After my deep study of the book, it is the result. Server 1: http:\\10.10.50.20:80 and 172.16.1.100:8080 Server 2: http:\\10.10.50.20:80 Only Container 2: http:\\10.10.50.20:80 and 172.16.1.100:8080
upvoted 3 times
...
panda
5 years, 3 months ago
Is it the question for 70-740? Because of IP Networking, is it for 70-741?
upvoted 1 times
tato_ferrer
4 years, 8 months ago
not IP Networking, it's about containers
upvoted 1 times
...
...
bofh
5 years, 5 months ago
so i set this up yesterday and was surprised at the results..... server1 could access via http://server1ip:80 but NOT to the container on 8080 - so i make it the top answer server2 top answer container2 answer 5 - both hostip:80 and contip:8080 ...... go figure, but that's what happened.
upvoted 4 times
glukken
5 years, 5 months ago
I don't know what config you are using, but in my configuration I can easily connect to the container using it's 172.16.1.100 NAT address. This also SHOULD be the case, as it is the default NAT address the server has chosen, so the server itself should be able to connect to that address as well. In my config I could do the following answers: 1. 10.10.50.20:80 (direct) and 172.16.1.100:8080 (direct, as it is created on the server) 2. 10.10.50.20:80 only (direct, as server2 only has access to this network) 3. 172.16.1.100:8080 (direct, as it is in the same subnet as container1) and 10.10.50.20:80 (NAT)
upvoted 5 times
...
jam7272
4 years, 11 months ago
I have changed my answer on this one. Server 1 and Server 2 - same as before, the top answers. But for Container 2 I now agree with bofh. It must be accessible through hostip:80 as well. For Server 1 and Server 2 they can only see the NAT'ed IP address. But Container 2 it is both on the same network as Container 1 - so it can see it via :8080, it can also see it via the hostip:80 address because of NAT.
upvoted 1 times
jam7272
4 years, 11 months ago
...default NAT network created in Containers is an internal vSwitch - so the Container can see the host that it is sitting on.
upvoted 1 times
...
...
...
glukken
5 years, 5 months ago
Answer for server1 is complete nonsense, the server1 does not expose port 8080, but port 80. Since server1 is also using NAT for the container, it can access the webserver on both port 10.10.50.20:80 and 172.16.1.100:8080 Server2 only has access to the 10.10.50.0 subnet, so it can only access the webserver on 10.10.50.20:80 Container2 can naturally access it's own port 172.16.1.100:8080 and through NAT it can access 10.10.50.20:80
upvoted 3 times
...
UnluckyDucky
5 years, 6 months ago
The correct answer is: Server1: 10.10.50.20:80 & 172.16.1.100:8080 (The machine itself & The container it hosts) Server2: 10.10.50.20:80 Has nothing to do with the container, can only access it by accessing 10.10.50.20:80 which is how the container is known outside of the host. Container2: 10.10.50.20:80 & 172.16.1.100:8080 (172.16.1.100:8080 As his brother container on the same host and 10.10.50.20:80 because contacting the host with that IP and port will just redirect the traffic to 172.16.1.100:8080 because of the port mapping).
upvoted 5 times
...
Ben22
5 years, 6 months ago
Answers Server1: http://10.10.50.20:80 Server2: http://10.10.50.20:80 Container2: http://10.10.50.20:80
upvoted 1 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 ...