PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

What should you do?

You have developed a Windows Forms server application.
Client applications connect to the server application to receive streaming media on demand on a single server.
Each incoming connection is launched on a separate thread, As the number of client applications increases, users report that connection attempts fail. You need to ensure that users can connect to the server application even when the number of clients increase.

What should you do?

Which two configuration settings should you add?

You are creating an ASP.NET web application that hosts several Windows Communication Foundation (WCF) services.
The services have ASP.NET Compatibility Mode enabled. Users authenticate with the Web application by using a cookie-based ASP.NET Forms Authentication model.
You add a service file named Authentication.svc that contains the following code segment:

<%@ ServiceHost Service=”System.Web.ApplicationServices.AuthenticationService”
Factory=”System.Web.ApplicationServices.ApplicationServicesHostFactory” %>

You need to ensure that users can access the WCF services without having to re-authenticate.
Which two configuration settings should you add? (Each is part of a complete solution. Choose two.)

Which code segment should you insert at line 03?

You use Microsoft Visual Studio 2010, Microsoft Sync Framework, and Microsoft .NET Framework 4.0 to create an application.
You have a ServerSyncProvider connected to a Microsoft SQL Server database. The database is hosted on a Web server.
Users will use the Internet to access the Customer database through the ServerSyncProvider.
You write the following code segment. (Line numbers are included for reference only.)

01 SyncTable customerSyncTable = new SyncTable(“Customer”);
02 customerSyncTable.CreationOption = TableCreationOption.UploadExistingOrCreateNewTable;
03 …
04 customerSyncTable.SyncGroup = customerSyncGroup;
05 this.Configuration.SyncTables.Add(customerSyncTable);

You need to ensure that the application meets the following requirements:
* Users can modify data locally and receive changes from the server.
* Only changed rows are transferred during synchronization.
Which code segment should you insert at line 03?

Which testing strategy should you recommend?

You are developing a Windows Presentation Foundation (WPF) application. During unit testing you identify several bottlenecks by using Windows Task Manager and Windows performance Monitor.
You need to recommend a system test strategy that will meet the following requirements:

– identify major application workloads
– identify the functions of the application that are most impacted

Which testing strategy should you recommend?

Which approach should you recommend?

You are designing an ASP.NET Web application to manage and display sensitive information stored in a Microsoft SQL Server database.
The database also provides authorization information for users.
All Web pages that display sensitive information require an authenticated login.
There is no visitor access to these pages. You have the following requirements:
– Separate authorization logic from the application.
– Prevent the application from directly accessing the database server.
You need to design a data access and authorization solution.
Which approach should you recommend?

Which code segment should you insert at line 05?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application.
You use the ADO.NET Entity Framework to model entities. You write the following code segment.
(Line numbers are included for reference only.)

01 public partial class SalesOrderDetail : EntityObject
02 {
03 partial void OnOrderQtyChanging(short value)
04 {
05 …
06 {
07 …
08 }
09 }
10 }

You need to find out whether the object has a valid ObjectStateEntry instance. Which code segment should you insert at line 05?