exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 2 question 14 discussion

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

HOTSPOT -
A company is developing a Java web app. The web app code is hosted in a GitHub repository located at https://github.com/Contoso/webapp.
The web app must be evaluated before it is moved to production. You must deploy the initial code release to a deployment slot named staging.
You need to create the web app and deploy the code.
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:
Box 1: group -
# Create a resource group.
az group create --location westeurope --name myResourceGroup

Box 2: appservice plan -
# Create an App Service plan in STANDARD tier (minimum required by deployment slots). az appservice plan create --name $webappname --resource-group myResourceGroup --sku S1

Box 3: webapp -
# Create a web app.
az webapp create --name $webappname --resource-group myResourceGroup \
--plan $webappname

Box 4: webapp deployment slot -
#Create a deployment slot with the name "staging".
az webapp deployment slot create --name $webappname --resource-group myResourceGroup \
--slot staging

Box 5: webapp deployment source -
# Deploy sample code to "staging" slot from GitHub.
az webapp deployment source config --name $webappname --resource-group myResourceGroup \
--slot staging --repo-url $gitrepo --branch master --manual-integration
Reference:
https://docs.microsoft.com/en-us/azure/app-service/scripts/cli-deploy-staging-environment

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
sskPL
Highly Voted 4 years, 5 months ago
Given answer is correct.
upvoted 201 times
130nk3r5
1 year, 3 months ago
Got this today. Went with answer here. Score 927
upvoted 8 times
...
...
Harshad_Mehta
Highly Voted 4 years, 5 months ago
why do you guys have to comment if the answer is correct.
upvoted 35 times
AhmedAbdelAziz
1 year, 2 months ago
We all here bro for the community and the discussion I got a lot of knowledge from the community regardless the QA
upvoted 7 times
...
azurelearner666
3 years, 10 months ago
you commented too as well, right? ;)
upvoted 15 times
DonH
1 year, 10 months ago
No, he asked a valid question. @thomas204 gave a valid answer. I also agree on that. Some answers are wrong so it's satisfying to read the comments when an answer is correct, just to be on the safe side.
upvoted 3 times
...
...
thomas204
4 years, 5 months ago
Because some answers are wrong and commenting when correct is just comforting for others.
upvoted 248 times
thebarber87
2 years ago
So vote. It is annoying when a question has 80 comments on it but they're just all answer is correct.
upvoted 1 times
szydlo
8 months, 2 weeks ago
you cannot vote on hotspot type questions
upvoted 2 times
...
...
azurelearner666
3 years, 10 months ago
Agree! love this site because of the community and the discussions. they also help to understand the reasoning!!
upvoted 39 times
lasyan3
3 years, 7 months ago
Totally agreed, thanks to all the community members :)
upvoted 12 times
...
macobuzi
1 year, 8 months ago
Yes, many dump test websites have these questions but I still had to move to this site for the community!
upvoted 2 times
Ciupaz
1 year, 5 months ago
Me too.
upvoted 1 times
...
...
...
...
...
bgbgvfvf
Most Recent 1 year, 4 months ago
The given solution is correct
upvoted 2 times
...
Vukile
1 year, 5 months ago
On exam 9 Nov 2023, went with given answer, socre 865. Case Study: Farmers and Distributors
upvoted 2 times
Ciupaz
1 year, 4 months ago
Is this a new Case Study?
upvoted 1 times
...
...
NPE_
1 year, 5 months ago
Got this on the exam Nov. 07 2023
upvoted 1 times
...
nlk0
1 year, 8 months ago
Got this today 26/08/2023, went with the given. 880 Case study was contoso -> 9 questions + 35 question, two series. 3 of them were not from examptopics, all others were
upvoted 2 times
...
MysticalSam
1 year, 10 months ago
This question was in today's exam at 10-June-2023
upvoted 4 times
...
Videira
2 years, 1 month ago
On my exam 2023-02-25
upvoted 4 times
...
70PineApple
2 years, 2 months ago
Got this in exam today..20/02/23 score: 817
upvoted 4 times
...
saravanasanthosh
2 years, 3 months ago
Got this on 12/30/2022 exam. The given solution is correct
upvoted 2 times
...
kociuba
2 years, 3 months ago
got it on my exam 30-12-2022 score: 818
upvoted 3 times
...
Suwani
2 years, 3 months ago
Given answer is correct
upvoted 1 times
...
mdg3501
2 years, 4 months ago
got this on 2022-12-7
upvoted 1 times
...
TheExamMaster2020
2 years, 5 months ago
Did my exam on 15th November 2022. This question was on it.
upvoted 2 times
...
rol204
2 years, 6 months ago
Box 1: group # Create a resource group. Box 2: appservice plan # Create an App Service plan in STANDARD tier (minimum required by deployment slots) Box 3: webapp # Create a web app Box 4: webapp deployment slot #Create a deployment slot with the name "staging" Box 5: webapp deployment source # Deploy sample code to "staging" slot from GitHub
upvoted 4 times
...
Anitay
2 years, 7 months ago
Answers are correct...
upvoted 1 times
...
Elsheimy
2 years, 11 months ago
On exam, 05/22
upvoted 2 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