BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft Exam AZ-800 Topic 9 Question 51 Discussion

Actual exam question for Microsoft's AZ-800 exam
Question #: 51
Topic #: 9
[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:

Danica
3 months ago
A is the correct answer. Any fellow exam-takers feeling hungry? I could go for some server coffee right about now.
upvoted 0 times
Sunny
1 months ago
Let's go with A for the answer. And yes, I could definitely go for some server coffee as well.
upvoted 0 times
...
Shad
1 months ago
I agree, A seems like the right choice. Server coffee would be perfect for this task.
upvoted 0 times
...
Gennie
2 months ago
I think A is the correct answer. And yes, server coffee sounds great right now.
upvoted 0 times
...
Margot
2 months ago
I'm not sure about the answer, but I could definitely use some server coffee too!
upvoted 0 times
...
...
Shad
3 months ago
Option A looks good, but I might double-check the image name just to be sure.
upvoted 0 times
Talia
2 months ago
Let's make sure we publish port 80 to port 5001 on SRV1 and run the container in the background.
upvoted 0 times
...
Whitley
2 months ago
Yes, I agree. We should double-check the image name just to be safe.
upvoted 0 times
...
Elly
2 months ago
I think Option A is the best choice for running the container.
upvoted 0 times
...
...
Fairy
3 months ago
I agree. Let's make sure we understand the solution before moving forward.
upvoted 0 times
...
Janine
3 months ago
That's correct. It's important to follow the task requirements exactly for the exam.
upvoted 0 times
...
Salena
3 months ago
Running the container in the background is a nice touch. A is the way to go.
upvoted 0 times
Reta
3 months ago
Port 80 on the container published to port 5001 on SRV1 makes sense.
upvoted 0 times
...
Daisy
3 months ago
Yes, option A is definitely the way to go for this task.
upvoted 0 times
...
Christa
3 months ago
I agree, running the container in the background is convenient.
upvoted 0 times
...
...
Tyisha
4 months ago
And the container must run in the background, right?
upvoted 0 times
...
Fairy
4 months ago
Yes, we also need to publish port 80 on the container to port 5001 on SRV1.
upvoted 0 times
...
Shenika
4 months ago
Sounds straightforward enough. I'd go with option A and set it up as described.
upvoted 0 times
Cathern
3 months ago
Good choice, that should work well.
upvoted 0 times
...
Lavonda
3 months ago
I'll go with option A and set it up as described.
upvoted 0 times
...
...
Tyisha
4 months ago
I think we need to run a container using the microsoft.com/windows/servercore/iis image on SRV1.
upvoted 0 times
...

Save Cancel