Microsoft Developing Solutions for Microsoft Azure AZ-204 Question # 13 Topic 2 Discussion

Microsoft Developing Solutions for Microsoft Azure AZ-204 Question # 13 Topic 2 Discussion

AZ-204 Exam Topic 2 Question 13 Discussion:
Question #: 13
Topic #: 2

You are preparing to deploy an ASP.NET Core 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.


A.

Create a file named .deployment in the root of the repository that calls a script which generates the static content and deploys the website.


B.

Add a PreBuild target in the websites csproj project file that runs the static content generation script.


C.

Create a file named run.cmd in the folder /run that calls a script which generates the static content and deploys the website.


D.

Add the path to the static content generation tool to WEBSITE_RUN_FROM_PACKAGE setting in the host.json file.


Get Premium AZ-204 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.