Which Web Server (IIS) role service should you install on Server1?
Your network contains an Active Directory domain named contoso.com. Contoso.com contains two
servers named Server1 and Server2 that run Windows Server 2008 R2. DirectAccess is deployed on
Server2. You need to configure Server1 as a network location server (NLS). Which Web Server (IIS)
role service should you install on Server1?
You need to ensure that the application can detect all conflicts that occur between the offline customer infor
You use Microsoft Visual Studio 2010 and Microsoft NET Framework 4 to create an application. The
application connects to a Microsoft SQL Server database. The application uses Data Contexts to
query the database. The application meets the following requirements:
• Stores customer data offline
• Allows users to update customer records while they are disconnected tram the server
• Enables online changes to be submitted back to the SQL Server by using the Data Context
object
You need to ensure that the application can detect all conflicts that occur between the offline
customer information submitted to the SQL Server and the server version. You also need to ensure
that you can roll back local changes. What should you do?
Which two approaches would accomplish this goal?
You work for a product company that sells custom SharePoint 2010 Web Parts to
customers. You are designing a Web Part that will be deployed to the Web Part gallery
when a feature is activated. The feature must accomodate multiple languages, so that a
user will see the name of the feature in the same language that was used to create the site.
You need to ensure that your design meets this requirement. Which two approaches would
accomplish this goal? (Each correct answer presents a complete solution. Choose two.)
Which code segment should you insert at line 03?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. You
are creating the data layer of the application. You write the following code segment. (Line numbers
are included for reference only.)
01 Public Shared Function GetDataReader(sql As String) As SqlDataReader
02 Dim dr As SqlDataReader = Nothing
03
04 Return dr
05 End Function
You need to ensure that the following requirements are met:
The SqlDataReader returned by the GetDataReader method can be used to retrieve rows from the
database.
SQL connections opened within the GetDataReader method will close when the SqlDataReader is
closed. Which code segment should you insert at line 03?
Which approach should you recommend?
You are designing an ASP.NET Web Forms application. The Web application has a heavy
reliance on view state. You are designing the Web application for use in regions that have
limited or lowbandwidth connectivity. You have the following requirements: Decrease
bandwidth requirements. Prevent any user from obtaining any part of the view state. Do not
require changes to existing pages, user controls, or code-behind files that rely on the view
state. You need to ensure that the Web application meets these requirements. Which
approach should you recommend?
Which code segment should you use?
You use Microsoft .NET Framework 4 to develop an ASP.NET application. The application uses
Integrated Windows authentication. The application accesses data in a Microsoft SQL Server 2008
database that is located on the same server as the application.
You use the following connection string to connect to the database.
Integrated Security=SSPI; Initial Catalog=Adventure¥orks;
The application must also execute a stored procedure on the same server on a database named
pubs.
Users connect to the ASP.NET application through the intranet by using Windows-based
authentication. You need to ensure that the application will use connection pooling whenever
possible and will keep the number of pools to a minimum. Which code segment should you use?
Which element should you configure in the Feature definition file?
You have a Feature that contains an image named ImageVl.png. You plan to create a new
version of the Feature. You need to ensure that when the Feature is upgraded, the image is
renamed as ImageV2.png. You must achieve this goal by using the minimum amount of
development effort. Which element should you configure in the Feature definition file?
What should you create?
You are designing a Windows client application by using Microsoft .NET Framework 4 and
Microsoft Visual Studio 2010. The application will read and write data that is stored in a
mainframe application. A hardware device that is located between the application and the
mainframe removes all XML-formatted messages. You need to ensure that the application
can request and receive data from the mainframe application. What should you create?
Which command should you run on Server2?
Your network contains two servers named Server1 and Server2 that run a Server Core installation of
Windows Server 2008 R2. Server1 and Server2 are configured as DNS servers. Server1 has an IP
address of 10.0.0.1. Server2 has an IP address of 10.0.0.2. Server1 contains a standard primary zone
named contoso.com. Zone transfers are enabled for contoso.com. You need to ensure that Server2
hosts a copy of the contoso.com zone. Which command should you run on Server2?
Which ObjectContext method should you call after changes are made to the entities?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The
application connects to a Microsoft SQL Server 2008 database. You use the ADO.NET Entity
Framework to model your entities. You use ADO.NET self-tracking entities. You need to ensure that
the change-tracking information for the self-tracking entities can be used to update the database.
Which ObjectContext method should you call after changes are made to the entities?