PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

What should you recommend?

You are designing an ASP.NET Web application that will be deployed both to a server that runs IIS 6 and to a server that runs IIS 7.0.
The Web application must meet the following requirements:
– Log all unhandled exceptions.
– Write exception details to a custom error log.
– When an exception occurs, write the user credentials to a custom error log.
You need to recommend an approach for handling errors.
What should you recommend?

What should you do next?

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?

What should you do?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application.
The application connects to several SQL Server databases. You create a function that modifies customer records that are stored in multiple databases.
All updates for a given record are performed in a single transaction. You need to ensure that all transactions can be recovered.
What should you do?

Which code segment should you insert at line 07?

You are developing a Windows Communication Foundation (WCF) service to provide an in-memory cache for many Web applications.
The service contract is defined as follows. (Line numbers are included for reference only.)

01 [ServiceContract]
02 public interface IDataCache
03 {
04 …
05 }
06
07
08 public class DataCache : IDataCache
09 {
10 …
11 }

You need to ensure that all users share the cache. Which code segment should you insert at line 07?