Which code segment should you use?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to develop an application
that uses the ADO.NET Entity Framework to model entities. You create an entity model as shown in
the following diagram.
You need to ensure that all Person entities and their associated EmailAddresses are loaded. Which
code segment should you use?
You need to ensure that the following requirements are met: Customer data is retrieved only once
You are designing an application by using Windows Presentation Foundation (WPF) and
Microsoft .NET Framework 4. The application retrieves customer data from an enterprise
resource planning (ERP) system. You need to ensure that the following requirements are
met: Customer data is retrieved only once. Customer data is available on multiple forms
within the application. Forms can implement Two-Way binding to the customer data. What
should you do?
Which code segment should you use?
You use Microsoft .NET Framework 4 to develop an application that connects to a local Microsoft
SQL Server 2008 database. The application can access a high-resolution timer. You need to display
the elapsed time, in sub-milliseconds (<1 millisecond), that a database query takes to execute. Which
code segment should you use?
Which approach should you recommend?
You are designing an ASP.NET Web application. The Web application uses a Menu control
to display either a menu of public and private pages to authorized users or a menu of only
public pages to visitors. You need to ensure that the menu options and URLs of the private
pages are not available to unauthorized users. Which approach should you recommend?
Which control GUID file should you use?
You are developing an ADO.NET 4 application that interacts with a Microsoft SQL Server 2008 server
through the SQL Server Native Client. You create a trace DLL registry entry and you register all of the
trace schemas. You need to trace the application data access layer. Which control GUID file should
you use?
Which code segment should you add at line 04?
You need to create a Web Part that displays all content created by a specific user. You write the
following code segment. (Line numbers are included for reference only.) 01 privace void
keywordQueryExecute (string searchAuthor ) 02 { 03 KeywordQuery kRequest = new
KeywordQuery ( ServerContexc.Current ) ; 04 05 kPequest.QueryText = strQuery ; 06
ResultTableCollection resultTbls = kRequest.Execute () ; 07 } Which code segment should you
add at line 04?
You need to ensure that the NPS log files on Server1 contain information of client connections
Your network contains a server named Server1 that runs Windows Server 2008 R2. Server1 has the
Network_Policy Server (NPS) role installed. You need to ensure that the NPS log files on Server1
contain information of client connections. What should you do?
Which code segment should you use?
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 associate a
previously deserialized entity named personl to an object context named model and persist changes
to the database. Which code segment should you use?
How should you design the validation?
You are designing an application by using Windows Presentation Foundation (WPF),
Microsoft .NET Framework 4, and Microsoft SQL Server 2008. The application will contain
several forms that include custom data validators. You need to ensure that data is validated
before the database updates occur. You also need to ensure that the validation logic can be
reused. How should you design the validation?
Which approach should you recommend?
You are designing a solution for a SharePoint 2010 site. You need to design a solution that
includes: ·Custom pages to add, view, and update list items. .Custom workflows with code
on list items. Which approach should you recommend?