PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

You need to ensure that the WCF service starts when the Windows Service is restarted

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?

Which of the following code segments will you use?

You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual
Studio .NET 2010 as its application development platform. You create an ASP.NET Web application
using .NET Framework 4.0. The Web application connects to a SQL Server database. You use the
ADO.NET Entity Framework to handle persistence-ignorant entities. You create an ObjectContext
object named ObjContext. Subsequently, you change properties on numerous entities. You are
required to save the changed entity values in the SQL Server database. Which of the following code
segments will you use?

You need to ensure that messages are secure and users are authenticated

You develop a Windows Communication Foundation (WCF) service that uses basic
authentication for client credentials. This service is currently configured to use message
security. The service is hosted on a server in workgroup mode. Users report that their
passwords are stolen when they use public computers. You need to ensure that messages
are secure and users are authenticated. You prevent the service from being called over
HTTP through Microsoft Internet Information Services (IIS) configuration. What should you
do next?