Which code segment should you insert at line 02?
You use Microsoft .NET Framework 4 to develop an application. You write the following code to
update data in a Microsoft SQL Server 2008 database. (Line numbers are included for reference
only,)
01 Private Sub ExecuteUpdate(ByVal cmd As SqlCommand, ByVal connString As String, ByVal
updateStrat As String)
02
03 End Sub
You need to ensure that the update statement executes and that the application avoids connection
leaks. Which code segment should you insert at line 02?
What should you recommend?
You are designing an ASP.NET Web application. A page of the Web application will contain
a databound ListView control. You need to recommend a strategy for accessing individual
rows within the ListView control from client-side script based on the value in a specific data
field. What should you recommend?
Which approach should you recommend?
You are designing an application in a SharePoint 2010 server farm for an international firm.
The sites must be localized for the languages in different countries. The application must
include support for the following functionality: ·Feature-specific resource files
.Language-specific Web Part package assemblies and resources .Language-specific Web
template files .Language-specific _layout files You need to design a solution that meets all
these requirements. Which approach should you recommend?
You need to ensure that a user named User1 can back up and restore files on Server1
Your network contains an Active Directory domain. The domain contains a file server named Server1
that runs Windows Server 2008 R2. You need to ensure that a user named User1 can back up and
restore files on Server1. The solution must minimize the number of user rights assigned to User1.
What should you do?
Which class should you use in FeatureReceiver1?
You have a Web application named WebApp1. You have a Feature receiver named
FeatureReceiver1. FeatureReceiver1 stores a connection string in the web.config file of
WebApp1. You need to ensure that when FeatureReceiver1 makes configuration changes to
web.config, the changes are automatically replicated to all Web servers in the farm. Which class
should you use in FeatureReceiver1?
Which code segment should you insert at line 07?
You use Microsoft .NET Framework 4 to develop an application that uses WCF Data Services to
persist entities from the following Entity Data Model.
You create a new Blog instance named newBlog and a new Post instance named newPost as shown
in the following code segment. (Line numbers are included for reference only.)
01 Dim newBlog As Blog = New Blog()
02 Dim newPost As Post = New Post ()
03 —
04 Dim serviceUri As Uri – New Uri(“—”)
05 Dim context As BlogsEntities =
06 New BlogsEntities (serviceUri) 07
You need to ensure that newPost is related to newBlog through the Posts collection property and
that newPost and newBlog are sent to the service. Which code segment should you insert at line 07?
You need to design the security strategy for the application
You are designing a Windows Presentation Foundation (WPF) application for your company
by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010. The business layer
of the application is implemented by using Windows Communication Foundation (WCF).
You plan to support nonrepudiation and data integrity for WCF messages. You need to
design the security strategy for the application. What should you do?
Which MergeOption enumeration value should you use to retrieve the entity?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to develop an application.
You use the ADO.NET Entity Framework Designer to model entities. You need to retrieve an entity,
and you must ensure that the entity is loaded in a detached state. Which MergeOption enumeration
value should you use to retrieve the entity?
Which code segment should you insert at line 04?
You use Microsoft .NET Framework 4 to develop an application that connects to a Microsoft SQL
Server 2008 database You populate a SqlDataAdapter by using the following code. (Line numbers are
included for reference only.)
01 Dim dataAdapterl As SqlDataAdapter = New SqlDataAdapter(
“SELECT * FROM [BlogEntries] ” &_
“ORDER BY CreationDate”, connection)
02 cindBuilder = New SqlCoittnandBuilder (dataAdapterl)
03 dataAdapter1.Fill(BlogEntryDataSet, “BlogEntries”) 04
05 connection.Close()
You need to update the blog owner for all BlogEntry records.
Which code segment should you insert at line 04?
Which code segment should you add at line 04?
You need to disable the CriticalExceptionCount measure for all sandboxed solutions. You write
the following code segment. (Line numbers are included for reference only.) 01
SPUserCodeService userCode = SPUserCodeSecvi.ee. Local; 02 SPResourceHeasureCollection
measures = userCode.ResourceHeasures ; 03 SPResourceHeasure measure = measures [“
CriticalExc eptionCounc “] ; 04 05 measure.Update (); Which code segment should you add at line
04?