nerdexam
Microsoft

AZ-204 · Question #192

You are preparing to deploy a website to an Azure Web App from a GitHub repository. The website includes static content generated by a script. You plan to use the Azure Web App continuous deployment f

Sign in or unlock AZ-204 to reveal the answer and full explanation for question #192. The question stem and answer options stay visible for context.

Submitted by alyssa_d· Mar 30, 2026Develop Azure compute solutions

Question

You are preparing to deploy a website to an Azure Web App from a GitHub repository. The website includes static content generated by a script. You plan to use the Azure Web App continuous deployment feature. You need to run the static generation script before the website starts serving traffic. What are two possible ways to achieve this goal? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.

Options

  • AAdd the path to the static content generation tool to WEBSITE_RUN_FROM_PACKAGE setting
  • BAdd a PreBuild target in the websites csproj project file that runs the static content generation
  • CCreate a file named run.cmd in the folder /run that calls a script which generates the static content
  • DCreate a file named .deployment in the root of the repository that calls a script which generates

Unlock AZ-204 to see the answer

You've previewed enough free AZ-204 questions. Unlock AZ-204 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Azure Web App#continuous deployment#deployment scripts#build pipeline
Full AZ-204 Practice