exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 2 question 11 discussion

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

DRAG DROP -
Fourth Coffee has an ASP.NET Core web app that runs in Docker. The app is mapped to the www.fourthcoffee.com domain.
Fourth Coffee is migrating this application to Azure.
You need to provision an App Service Web App to host this docker image and map the custom domain to the App Service web app.
A resource group named FourthCoffeePublicWebResourceGroup has been created in the WestUS region that contains an App Service Plan named
AppServiceLinuxDockerPlan.
Which order should the CLI commands be used to develop the solution? To answer, move all of the Azure CLI commands from the list of commands to the answer area and arrange them in the correct order.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Step 1: #bin/bash -
The appName is used when the webapp-name is created in step 2.

Step 2: az webapp create -
Create a web app. In the Cloud Shell, create a web app in the myAppServicePlan App Service plan with the az webapp create command.
Step 3: az webapp config container set
In Create a web app, you specified an image on Docker Hub in the az webapp create command. This is good enough for a public image. To use a private image, you need to configure your Docker account ID and password in your Azure web app.
Step 4: az webapp config hostname add
The webapp-name is used when the webapp is created in step 2.
In the Cloud Shell, follow the az webapp create command with az webapp config container set.
Reference:
https://docs.microsoft.com/en-us/azure/app-service/containers/tutorial-custom-docker-image https://docs.microsoft.com/en-us/azure/app-service/tutorial-custom-container?pivots=container-linux https://docs.microsoft.com/en-us/azure/app-service/scripts/cli-configure-custom-domain

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
msuser11
Highly Voted 2 years, 3 months ago
1. /bin/bash 2. az webpp create 3. ~ config container set 4. ~ config hostname add
upvoted 112 times
surprise0011
1 year, 4 months ago
received 2023-04-17 went above answer, score 926
upvoted 10 times
ayush66203
10 months, 1 week ago
were all the questions in the exam from exam topic? did you prepare from paid version of exam topic or the free one?
upvoted 2 times
...
...
nmatnoh
2 years, 2 months ago
I would agree with the propose solution 1. /bin/bash 2. az webpp create 3. ~ config container set URL: https://docs.microsoft.com/en-us/azure/app-service/tutorial-custom-container?pivots=container-linux At the bottom of tutorial, link to next tutorial In the next tutorial, you learn how to map a custom DNS name to your app. 4. ~ config hostname add https://docs.microsoft.com/en-us/azure/app-service/app-service-web-tutorial-custom-domain
upvoted 5 times
...
Mousavi
2 years, 2 months ago
I still have doubts about the order of 3 and 4 ?
upvoted 7 times
...
...
GMartinez
Highly Voted 2 years, 3 months ago
Shouldn' it be az webapp create as 2nd, az webapp config container set as 3rd and az webapp config hostname as last ?
upvoted 11 times
nightflyer
2 years, 3 months ago
Yes this is correct, i saw this question in the Microsoft Learn Labs
upvoted 4 times
...
...
examtopicsLogin123
Most Recent 1 week, 1 day ago
Got it in February 2025. Went with highly voted answer.
upvoted 1 times
...
abhishekgraphs
3 months ago
This was on my exam. Date: 23rd May 2024. Went with given answer, got score of 925. Out of 43 questions asked, approximately 38 were from ExamTopics questions. I had purchased contributor access to AZ-204 in ExamTopics I am more concerned about those 5 questions not from this question bank. I think those were the ones that I probably got wrong in the test. Hence the score of 925. Else would have scored higher had all 43 questions been from this question bank
upvoted 4 times
...
neelkanths
3 months, 4 weeks ago
Got it on 20 April 2024...Marks > 950...answer is correct....all questions from examtopics 400 question bank
upvoted 5 times
...
onlyforheros
5 months, 1 week ago
Got it in the exam 13.03.2024. Score: 910. Went with the give answer
upvoted 1 times
...
Nihilist11
7 months ago
Jan-21-2024 - This was in my exam, went with selected answer Score 740 Contosso case study [Couldnt find here]
upvoted 1 times
...
1989jay
7 months, 2 weeks ago
This question was on exam. 09/01/2024. Passed 872
upvoted 1 times
...
arunkuml
8 months, 2 weeks ago
Got it in the exam 14/12/23. Went with given answer. All questions are from ExamTopics. Case study - VanArsdel, Ltd (11 questions)
upvoted 2 times
...
CarlosTheBoldest
8 months, 2 weeks ago
I got this question on my exam, 2023Dec, go with I remember was the most voted answer. Score 902, most of the questions were here, slightly different on wording because the Azure Ad <-> Entra Id change. Case was City Power & Light. Good luck!
upvoted 1 times
...
AndySmith
9 months, 3 weeks ago
On exam 3-Nov-2023. Went with proposed answer - 932/1000.
upvoted 1 times
...
JH81
1 year, 1 month ago
Got this on 6/28/2023 and passed with 850. Went with highly voted answer.
upvoted 3 times
...
Maximuskh
1 year, 2 months ago
I think the reason container needs to be set and then hostname is because if we configure hostname first while the app does not have docker image configuration, the end users experience downtime.
upvoted 3 times
...
aragones
1 year, 3 months ago
Got this 2023-05-12. FYI: case: You need to configure authorization. case: You need to ensure the app does not time out and processes the blob data case study: VanArsdel Inc Canada
upvoted 2 times
...
Saluk_DE
1 year, 4 months ago
Question was in Exam 2023-03-30
upvoted 2 times
...
sarmaria
1 year, 5 months ago
Got this question in the exam on 16/03/2023. Went with proposed solution. Make sure to prepare for case studies. I got city and lights case study.
upvoted 2 times
...
Esward
1 year, 7 months ago
Given answers are correct! https://docs.microsoft.com/en-us/azure/app-service/app-service-web-tutorial-custom-domain
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago