nerdexam
Microsoft

70-513 · Question #10

70-513 Question #10: Real Exam Question with Answer & Explanation

Sign in or unlock 70-513 to reveal the answer and full explanation for question #10. The question stem and answer options stay visible for context.

Question

You are developing a Windows Service. The Windows Service will host a Windows Communication Foundation (WCF) service. The Windows Service class will inherit from ServiceBase. You need to ensure that the WCF service starts when the Windows Service is restarted. What should you do in the Windows Service class?

Options

  • ACreate a public method named Main.
  • BOverride the OnStart method and create and open a new ServiceHost.
  • COverride the OnPowerEvent method and open a new ServiceHost.
  • DOverride the OnContinue method and open a new ServiceHost.

Unlock 70-513 to see the answer

You've previewed enough free 70-513 questions. Unlock 70-513 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.

Full 70-513 Practice