exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 3 question 4 discussion

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

HOTSPOT -
You are preparing to deploy a Python website to an Azure Web App using a container. The solution will use multiple containers in the same container group. The
Dockerfile that builds the container is as follows:

You build a container by using the following command. The Azure Container Registry instance named images is a private registry.

The user name and password for the registry is admin.
The Web App must always run the same version of the website regardless of future builds.
You need to create an Azure Web App to run the website.
How should you complete the commands? 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
glam
Highly Voted 3 years, 5 months ago
--sku B1 --is-linux --deployment-container-image-name images.azurecr.io/website:v1.0.0 -- container set --docker-registry-server-url https://images.azurecr.io -u admin -p admin
upvoted 160 times
Esward
1 year, 9 months ago
https://www.linkedin.com/pulse/how-quickly-create-micro-service-azure-webapp-fastapi-bonnet-?trk=pulse-article_more-articles_related-content-card
upvoted 2 times
...
applepie
1 year, 2 months ago
got this question today, go with this answer - 7/30/2023, score 895/1000
upvoted 4 times
...
...
aperez1979
Highly Voted 3 years, 6 months ago
"use multiple containers in the same container group" this not is possible in windows. Solution is: --is-linux --deployment-container-image-name
upvoted 46 times
Tom87
3 years, 6 months ago
That's true. "Multi-container groups are currently restricted to Linux containers." https://docs.microsoft.com/en-us/azure/container-instances/container-instances-multi-container-group
upvoted 11 times
...
azurelearner666
3 years, 4 months ago
True! also last response is correct with -- container set --docker-registry-server-url https://images.azurecr.io -u admin -p admin
upvoted 5 times
...
...
azureq9
Most Recent 5 months, 1 week ago
Box 1 – --sku B1 --is-linux. You need an application service plan that supports Linux because your Docker container is based on Linux images (python:3). SKU B1 is the basic level and can run on Linux, which should suit your requirements. Box 2 – --deployment-container-image-name images.azurecr.io/website:v1.0.0. You need to specify a specific container image name to ensure that the Web App always runs the same version of the website. Using the v1.0.0 tag ensures that this version will not change when new builds are released. Box 3 – -- container set --docker-registry-server-url https://images.azurecr.io -u admin -p admin. You need to configure Docker registry credentials so that Web App can pull images from the Azure Container Registry. This selection provides the correct URL of the registry and the admin login information you provided.
upvoted 7 times
...
neelkanths
6 months ago
Got it on 20 April 2024...Marks > 900...answer is correct....all questions from examtopics 400 question bank Answer is correct
upvoted 1 times
...
1989jay
9 months, 3 weeks ago
This question was on exam. 09/01/2024. Passed 872.
upvoted 2 times
...
leviatas
1 year, 1 month ago
Got this quesiton in examn, went with answer. - 2023.09.25. Got Case Study Contoso
upvoted 1 times
...
NightshadeRC
1 year, 3 months ago
Had this question today: 2023-07-26
upvoted 1 times
...
surprise0011
1 year, 6 months ago
microsoft promote good practises for -u and -p ( ͡° ͜ʖ ͡°)
upvoted 9 times
...
[Removed]
1 year, 6 months ago
Got this in exam today (5 April 2023)
upvoted 5 times
...
uffuchsi
1 year, 8 months ago
Received this in my exam today (22/02/2023). Selected linux, --deployment-container...:v1.0.0, and container set ... in --u admin --p admin. Score 927.
upvoted 5 times
...
Esward
1 year, 8 months ago
It was there in 13 Feb 2023 exam
upvoted 4 times
...
Tito28
1 year, 9 months ago
this answer are not wrong, if you must know, these question and answer are giving by microsoft , so how can it be wrong if microsoft support those answer?
upvoted 1 times
Net_IT
1 year, 8 months ago
The answers are not provided by Microsoft but by the community/Examtopics, sometimes given answers are wrong. But the discussions are great to help you with that! In this case I believe the highest voted answers are correct (from aperez1979).
upvoted 5 times
...
...
Dani_ac7
2 years, 3 months ago
Linux for multiple containers
upvoted 3 times
...
Pize
2 years, 3 months ago
Another wrong answer - this site riddled with wrong answers
upvoted 7 times
...
Eltooth
2 years, 4 months ago
--sku B1 --is-linux --deployment-container-image-name images.azurecr.io/website:v1.0.0 -- container set --docker-registry-server-url https://images.azurecr.io -u admin -p admin
upvoted 4 times
...
yevgen91
2 years, 10 months ago
The suggested answer is for Windows, but Python is deprecated for Windows, as well as multiple containers are not possible in Windows. So it must be Linux, and based on this article https://docs.microsoft.com/en-us/azure/app-service/tutorial-custom-container?pivots=container-linux the answer must be: 1. --sku B1 --is-linux 2. --deployment-container-image-name ... :v1.0.0 3. container set ... https://images.azurecr.io ...
upvoted 7 times
...
Molte
2 years, 10 months ago
for answer 3: Can somebody tell me why its images.azurecr.io and not images.azurecr.io/website?
upvoted 4 times
ScubaDiver123456
2 years, 9 months ago
The command requires the URL of the registry, not the image name. That is appended later. "--docker-registry-server-url The container registry server url."
upvoted 9 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