PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

You need to ensure that deadlocks are prevented

You are designing a Windows application by using Microsoft .NET Framework 4 and
Microsoft Visual Studio 2010. The business logic layer of the application is implemented by
using Windows Communication Foundation (WCF). You create a duplex bidirectional WCF
service that contains a single operation. The service operation sends the result back to the
client application by using a twoway callback operation. You plan to design a service
interaction strategy. You need to ensure that deadlocks are prevented. What should you
do?

Which approach should you recommend?

You have an ASP.NET Web application that displays charts that are generated daily from
data in a Microsoft SQL Server database. Each chart is implemented as a user control that
displays data retrieved from the database. Data retrieval and chart generation consume a
significant amount of resources. Users of the Web application generate unique reports that
contain one or more chart controls. Each chart is common to many reports. You need

design a solution to improve the performance of the Web server. Which approach should
you recommend?

Which approach should you recommend?

You are using SharePoint 2010 to design an intranet application for a manufacturer.
Employees need to view Web pages with instructions on how to assemble various products.
The legal department requires that employees can view past versions of each set of
instructions. The instructions may contain rich text elements such as bullets and images.
You need to design a solution that meets these requirements. Which approach should you

recommend?

You need to ensure that entities changed in offline mode can be successfully updated m the data store

You use Microsoft Visual Studio 2010 and Microsoft NET Framework 4 to create an application. The
application uses the ADO NET Entity Framework to model entities The application allows users to
make changes while disconnected from the data store Changes are submitted to the data store by
using the Submit changes method of the Data Context object You receive an exception when you call
me Submit changes method to submit entities that a user has changed in offline mode You need to
ensure that entities changed in offline mode can be successfully updated m the data store. What
should you do?

You need to ensure mat users cannot reao passwards extracted irom the database

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The
apphcation connects to a Microsoft SQL Server database. The application stores user names and
passwords in the database. You need to ensure mat users cannot reao passwards extracted irom the
database. What should you do?

Which location should you recommend?

You are designing a Windows Presentation Foundation (WPF) application. The WPF
application contains code that will be executed by both full trust callers and partial trust
callers. The WPF application code does not have the AllowPartialTmstCallers attribute set.
You have the following requirements: The application security settings must allow partial
trust callers to create and write to a file. Users must have access only to files that they
create and not to files created by other users. You need to recommend a location for storing
each user’ s files. Which location should you recommend?

You need to achieve this goal without affecting other applications

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create a Microsoft
ASP.NET application. The application connects to a Microsoft SQL Server database. The application is
hosted on a Web server along with other applications. You need to secure the transmission of data
between the application and the database. You need to achieve this goal without affecting other
applications. What should you do?

Which code segment should you insert at line 25?

You use Microsoft Visual Studio 2010 and Microsoft NET framework 4 to create an application the
application uses the ADO NET entity framework to model entities. You define a Category class by
writing the following code segment (Line numbers are included for reference only) Public Class
Category
01 Public Class Category
02 Public Property CategorylDO As Integer
03 Get
04 End Get
05 Set
06 End Set
07 End Property
08 Public Property CategoryName() As String
09 Get
10 End Get
11 Set
12 End Set
13 End Property
14 Public Property Description() As String
15 Get
16 End Get
17 Set
18 End Set
19 End Property
20 Public Property Picture() As Byte()
21 Get
22 End Get
23 Set
24 End Set 25
26 End Property
You need to add a collection named Products to the Category class. You also need to ensure that the
collection supports deterred loading. Which code segment should you insert at line 25?