nerdexam
Microsoft

70-519 · Question #50

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:Locator 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 "XPath(configuration/connectionStrings[@name='AppDb'])"
  • Bxdt:Locator with the value "XPath(configuration/connectionStrings[@name='AppDb'])"
  • Cxdt:Locator with the value "Replace"
  • Dxdt:Transform with the value "Replace"

How the community answered

(21 responses)
  • A
    10% (2)
  • B
    76% (16)
  • D
    14% (3)

Community Discussion

No community discussion yet for this question.

Full 70-519 Practice