New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft AZ-800 Exam - Topic 4 Question 49 Discussion

Actual exam question for Microsoft's AZ-800 exam
Question #: 49
Topic #: 4
[All AZ-800 Questions]

Task 4

You need to run a container that uses the mcrmicrosoft.com/windows/servercofe/iis image on SRV1. Port 80 on the container must be published to port 5001 on SRV1 and the container must run in the background

Show Suggested Answer Hide Answer
Suggested Answer: A

To run a container on SRV1 using the mcrmicrosoft.com/windows/servercofe/iis image, publish port 80 on the container to port 5001 on SRV1, and ensure it runs in the background, you can follow these steps:

Step 1: Pull the IIS Image First, pull the correct IIS image from the Microsoft Container Registry:

docker pull mcr.microsoft.com/windows/servercore/iis

Step 2: Run the Container Next, run the container with the required port mapping and ensure it runs in the background using the -d flag:

docker run -d -p 5001:80 --name iis_container mcr.microsoft.com/windows/servercore/iis

This command will start a container named iis_container using the IIS image, map port 80 inside the container to port 5001 on SRV1, and run the container in detached mode.

Step 3: Verify the Container is Running To verify that the container is running and the port is published, use the following command:

docker ps

This will list all running containers and show the port mappings.

Step 4: Access the IIS Server You can now access the IIS server running in the container by navigating to http://<SRV1_IP>:5001 in a web browser, where <SRV1_IP> is the IP address of SRV1.

Note: Ensure that Docker is installed on SRV1 and that the port 5001 is open on the firewall to allow incoming connections1.

By following these steps, you should be able to run the IIS container on SRV1 with the specified port mapping and have it running in the background. Please replace mcrmicrosoft.com/windows/servercofe/iis with the correct image name mcr.microsoft.com/windows/servercore/iis as shown in the commands above.


Contribute your Thoughts:

0/2000 characters
Shawnta
3 months ago
Yeah, that command looks right!
upvoted 0 times
...
Chantell
3 months ago
Wait, is that image still supported?
upvoted 0 times
...
Mary
3 months ago
I thought IIS was only for Windows Server?
upvoted 0 times
...
Benedict
4 months ago
Sounds good, but why not use a different port?
upvoted 0 times
...
Arlie
4 months ago
Just use `docker run -d -p 5001:80 mcrmicrosoft.com/windows/servercofe/iis`
upvoted 0 times
...
Horace
4 months ago
I definitely need to double-check how to map the ports correctly, but I think it’s `-p 5001:80` for the port mapping.
upvoted 0 times
...
Myrtie
4 months ago
I feel like I might be mixing up the image names; is it `mcrmicrosoft.com/windows/servercofe/iis` or something else?
upvoted 0 times
...
Kristeen
4 months ago
I remember practicing a similar question where we had to run a container in the background, so I think we need to add the `-d` flag.
upvoted 0 times
...
Augustine
5 months ago
I think we need to use the `docker run` command for this, but I'm not completely sure about the syntax for publishing ports.
upvoted 0 times
...
Ammie
5 months ago
Hmm, this is a tricky one. I'm not 100% sure how to run a container in the background and publish a port. I'll need to review the docker documentation to make sure I get this right.
upvoted 0 times
...
Yoko
5 months ago
No problem, I've done tasks like this before. I'll just need to make sure I have the docker run command syntax right, and double-check that I'm mapping the ports correctly.
upvoted 0 times
...
Letha
5 months ago
Wait, what's the mcrmicrosoft.com/windows/servercofe/iis image? I don't recognize that one. I'll need to look up the correct image name to use.
upvoted 0 times
...
Kendra
5 months ago
Okay, I think I know how to do this. I'll need to use the docker run command with the -p flag to map port 80 in the container to port 5001 on the host, and the -d flag to run it in the background.
upvoted 0 times
...
Merilyn
5 months ago
Hmm, this looks like a Docker container deployment task. I'll need to review my notes on the docker run command and how to map ports.
upvoted 0 times
...
Van
5 months ago
I'm a little confused by the options here. I'm not sure if monitoring or test management would be the best choices for unit testing. I'll need to think this through carefully.
upvoted 0 times
...
Fabiola
5 months ago
Okay, I've got this. The depreciable basis is the total of the purchase price, sales tax, and freight costs, which adds up to $59,425. I'm confident that's the right answer.
upvoted 0 times
...
Fabiola
5 months ago
Ah, I think I've got this one. The correct answer is C - federal and state governments as key stakeholders have a huge influence over health plan formation and operations. That makes sense given the importance of regulation in this industry. I'm feeling confident about this.
upvoted 0 times
...
Dion
5 months ago
I remember practicing a similar question and it was about probabilities, so I'm leaning towards Rbi probability for this one.
upvoted 0 times
...
Marvel
2 years ago
I bet the solution involves some fancy Docker commands. Let's see what the experts have to say.
upvoted 0 times
...
Aliza
2 years ago
Definitely need to run this in the background. Can't have that container hogging up the foreground!
upvoted 0 times
Thurman
1 year ago
Got it, I'll use the mcrmicrosoft.com/windows/servercofe/iis image.
upvoted 0 times
...
Sommer
1 year ago
Make sure to publish port 80 to port 5001 on SRV1.
upvoted 0 times
...
Dorian
1 year ago
That way, the container won't be taking up the foreground.
upvoted 0 times
...
Helga
2 years ago
Good idea, we don't want it taking up the foreground.
upvoted 0 times
...
Wynell
2 years ago
Yes, we should publish port 80 to port 5001 on SRV1.
upvoted 0 times
...
Miesha
2 years ago
I'll make sure to run the container in the background.
upvoted 0 times
...
Maryann
2 years ago
Don't worry, we can run the container in the background.
upvoted 0 times
...
Narcisa
2 years ago
Good call, we don't want it taking up the foreground.
upvoted 0 times
...
Lovetta
2 years ago
Yes, I published port 80 to port 5001 on SRV1.
upvoted 0 times
...
Chuck
2 years ago
Did you figure out how to run that container in the background?
upvoted 0 times
...
...
Louis
2 years ago
I believe this task requires attention to detail and following the instructions accurately.
upvoted 0 times
...
Janae
2 years ago
Yes, and the container must run in the background as well.
upvoted 0 times
...
King
2 years ago
I agree, we also need to publish port 80 on the container to port 5001 on SRV1.
upvoted 0 times
...
Janae
2 years ago
I think we need to run a container using the microsoft.com/windows/servercore/iis image on SRV1.
upvoted 0 times
...
Marylin
2 years ago
Hmm, publishing port 80 to 5001 on the host seems a bit odd, but I guess it could work. I'd give it a try.
upvoted 0 times
...
Jaime
2 years ago
This looks like a straightforward container deployment task. I'd go with option A to see the solution.
upvoted 0 times
Paris
2 years ago
The container must run in the background as well.
upvoted 0 times
...
Brock
2 years ago
Port 80 on the container needs to be published to port 5001 on SRV1.
upvoted 0 times
...
Gwenn
2 years ago
Agreed, let's go with option A to see the solution.
upvoted 0 times
...
Karrie
2 years ago
I think we should use option A for the container deployment task.
upvoted 0 times
...
...

Save Cancel