What are two possible TransactionScope constructors that you can use for the inner transaction to achieve this
You use Microsoft .NET Framework 4 to develop an application that connects to a Microsoft SQL
Server 2008 database. The application uses nested transaction scopes. An inner transaction scope
contains code that inserts records into the database. You need to ensure that the inner transaction
can successfully commit even if the outer transaction rolls back. What are two possible
TransactionScope constructors that you can use for the inner transaction to achieve this goal? (Each
correct answer presents a complete solution. Choose two.)
You need to ensure that prior-page navigation can be disabled
You are designing an application by using Windows Presentation Foundation (WPF) and
Microsoft .NET Framework 4. You plan to create a wizard by using a Window, a Frame, and
several Page objects. The wizard will use the NavigationService. The NavigationService will
be invoked by buttons on the user interface (UI). You need to ensure that prior-page
navigation can be disabled. What should you do?
Which configuration should you recommend?
You are designing an ASP.NET Web Forms application. You expect the application to have
high traffic. You plan to use a Web farm to balance the application load across several Web
servers. You have the following requirements: Use round-robin load balancing. Do not use
persistent storage for session data. You need to ensure that your design meets the
requirements. Which configuration should you recommend?
Which code segment should you insert at line 04?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to develop an application
that uses the Entity Framework. Entity types in the model are generated by the Entity Data Model
generator tool (EdmGen.exe).
You write the following code. (Line numbers are included for reference only.)
01 MemoryStream stream = new MemoryStream() ;
02 var query = context.Contacts.Include(
“SalesOrderHeaders.SalesOrderDetails”);
03 var contact = query. Where(“it.LostName = Glostname”,
new ObjectParameter(“lastname”, lastName)).First ();
04
You need to serialize the contact and all of its related objects to the MemoryStream so that the
contact can be deserialized back into the model. Which code segment should you insert at line 04?
Which storage Model section of the .edmx file should you include?
You use Microsoft Visual Studio 2010 to create a Microsoft .NET Framework 4 application. You
create an Entity Data Model for the database tables shown in the following diagram.
You need to modify the .edmx file so that a many-to-many association can exist between the
Address and Customer entities. Which storage Model section of the .edmx file should you include?
You need to ensure that the window responds while users type a name
You are creating a Windows Presentation Foundation (WPF) application by using Microsoft
.NET Framework 4 and Microsoft SQL Server 2008. You create a window that allows users
to search for products that match a given name. Search results are displayed when the user
types each letter of the product name. You use a method named FindProducts to obtain the
list of products. Users report that when they type a letter of the product name, the window
stops responding for a varying amount of time. While the window stops responding, users
cannot type more letters. The window stops responding even when the search generates
few results. You need to ensure that the window responds while users type a name. What
should you do?
Which approach should you recommend?
Your SharePoint 2010 team does not have enough development team members, time, or
budget to support the requests from all of the different departments in the organization. You
have the following requirements: ·Your internal IT security team requires that the
SharePoint 2010 architects include the proper design specifications necessary to limit the
security vulnerabilities in the applications they develop. .Mid-level Microsoft ASP.NET
developers across the organization must be able to implement SharePoint 2010 solutions
that meet the security specifications with no extra training. .You must use specific tools and
procedures to ensure that possible security vulnerabilities are limited. You need to create a
SharePoint 2010 design specification that directs the developers in the proper method of
creating applications to minimize security issues. Which approach should you recommend?
Which command should you use?
Your company has a server named Server1 that runs a Server Core installation of Windows Server
2008 R2, and the DNS Server server role. Server1 has one network interface named Local Area
Connection. The static IP address of the network interface is configured as 10.0.0.1. You need to
create a DNS zone named local.contoso.com on Server1. Which command should you use?
You need to ensure that the entities are self-tracking
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 ensure that the
entities are self-tracking. What should you do in the ADO.NET Entity Framework Designer?
You need to delete the previous versions of all documents in a document library
You need to delete the previous versions of all documents in a document library. The deleted
versions of the documents must be retained in the SharePoint Recycle Bin. What should you do?