70-519 · Question #254
You are designing the deployment strategy for an ASP.NET Web application. The database configuration string varies depending on the target environment. You have the following requirements: - Deploy…
The correct answer is B. xdt:Transform with the value "XPath(configuration/connectionStrings[@name='AppDb'])" C. xdt:Locator with the value "Replace". See the full explanation below for the reasoning.
Question
You are designing the deployment strategy for an ASP.NET Web application. The database configuration string varies depending on the target environment. You have the following requirements:
- Deploy the application by using Web Deploy.
- Replace the connection string named AppDb with the appropriate value
for each environment. You need to recommend an approach for updating the AppDb connection string when deploying the application to the staging environment. Which two attributes should you add to the AppDb connection string entry in the Web.staging.config file? (Each correct answer presents part of the solution. Choose two.)
Options
- Axdt:Transform with the value "Replace"
- Bxdt:Transform with the value "XPath(configuration/connectionStrings[@name='AppDb'])"
- Cxdt:Locator with the value "Replace"
- Dxdt:Locator with the value "XPath(configuration/connectionStrings[@name='AppDb'])"
How the community answered
(61 responses)- A7% (4)
- B82% (50)
- D11% (7)
Community Discussion
No community discussion yet for this question.