nerdexam
Microsoft

70-515 · Question #19

You are implementing an ASP.NET Web site. The site uses a component that must be dynamically configured before it can be used within site pages. You create a static method named SiteHelper.Configure…

The correct answer is A. void Application_Start(object sender, EventArgs e). See the full explanation below for the reasoning.

Question

You are implementing an ASP.NET Web site. The site uses a component that must be dynamically configured before it can be used within site pages. You create a static method named SiteHelper.Configure that configures the component. You need to add a code segment to the Global.asax file that invokes the SiteHelper.Configure method the first time, and only the first time, that any page in the site is requested. Which code segment should you use?

Options

  • Avoid Application_Start(object sender, EventArgs e)
  • Bvoid Application_Init(object sender, EventArgs e)
  • Cvoid Application_BeginRequest(object sender, EventArgs e)
  • DObject lockObject = new Object();

How the community answered

(28 responses)
  • A
    71% (20)
  • B
    18% (5)
  • C
    7% (2)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full 70-515 Practice