Which approach should you recommend?
You are designing a RESTful ASP.NET Web application. You have the following
requirements: Retain state between requests. Associate a request with a session. Do not
require the use of cookies. You need to ensure that your design meets the requirements.
Which approach should you recommend?
Which code segment should you use?
You use Microsoft .NET Framework 4 to develop an application that connects to a Microsoft SQL
Server 2008 database. You add the following stored procedure to the database.
CREATE PROCEDURE dbo.GetClassAndStudents
AS
BEGIN
SELECT * FROM dbo.Class
SELECT * FROM dbo.Student END
You create a SqIGonnection named conn that connects to the database. You need to fill a DataSet
from the result that is returned by the stored procedure. The first result set must be added to a
DataTable named Class, and the second result set must be added to a DataTable named Student.
Which code segment should you use?
What should you create?
You have a SharePoint solution that contains a custom site column and a custom content type.
You need to add the custom site column as a lookup field for the custom content type. What
should you create?
You need to ensure that a stored procedure will be invoked when the ObjectContext.SaveChanges method is execut
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. The model contains an entity
type named Product. You need to ensure that a stored procedure will be invoked when the
ObjectContext.SaveChanges method is executed after an attached Product has changed. What
should you do in the ADO.NET Entity Framework Designer?
You need to ensure that users can return to previous screens
You are designing an application by using Windows Presentation Foundation (WPF) and
Microsoft .NET Framework 4. The application consists of multiple data entry screens. You
need to ensure that users can return to previous screens. You also need to ensure that
users can view a history of screens. What should you do?
Which approach should you recommend?
You are designing several new custom applications for a SharePoint 2010 farm. One of the
current applications contains a Web Part with code that requires substantial CPU and
memory resources. The SharePoint farm administrator wants to ensure that new
applications containing custom code do not degrade the performance of the Web front-end
(WFE) servers when they are deployed to the SharePoint farm. You need to enable the
administrator to perform the following tasks: ·To configure the applications to run in isolation
mode .To control the resource usage of custom SharePoint applications by assigning the
execution load to specified servers and perform load-balancing of the WFE servers .To limit
the resources allotted to specific applications without impacting overall farm performance
and stability Your design must meet all these requirements. Which approach should you
recommend?
Which code segment should you place in the entity’s partial class?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to develop an application.
You use the Entity Framework Designer to create the following Entity Data Model.
You write a method named ValidatePostalCode to validate the postal code for the application.
You need to ensure that the ValidatePostalCode method is called before the PostalCode property set
method is completed and before the underlying value has changed. Which code segment should you
place in the entity’s partial class?
You need to restore name resolution in the branch office
Your company has a main office and a branch office. The company network has two WINS servers.
You have an application that requires NetBIOS name resolution. The WINS servers are configured as
shown in the following table.
You discover that the WINS addresses on all client computers in both offices are configured in the
following order of use:
10.1.0.23
10.6.0.254
You reconfigure the WINS addresses on all client computers in the branch office in the following
order of use:
10.6.0.254
10.1.0.23
After the reconfiguration, users in the branch office are unable to connect to the servers that are
located in the main office. You need to restore name resolution in the branch office. What should
you do?
Which code segment should you use?
You use Microsoft .NET Framework 4 to develop an application that uses the Entity Framework. The
application defines the following Entity SQL (ESQL) query, which must be executed against the mode.
string prodQuery = “select value p from Products as
p where p.ProductCategory.Name = @p0″;
You need to execute the query.
Which code segment should you use?
Which URL should you choose?
You create two custom lists named Offices and Rooms. Rooms has the following columns: Title
Capacity Equipment Offices has the following columns: Title Rooms (a lookup to the Title column
in the Rooms list) Rooms: Capacity Rooms: Equipment You need to perform a Representational
State Transfer (REST) query that returns a list of all the offices that have rooms with a capacity of
10. The query results must include the room titles and the equipment in each room. Which URL
should you choose?