PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which approach should you recommend?

You are designing a maintenance plan for a SharePoint 2010 intranet site. You have the
following requirements: ·The site has 25 custom content types and 5 document libraries.
One of the document libraries has more than 1,000 documents. .Every document in the site
is associated with one of the custom content types. .Each document library has a single
view, showing the name of the document and the person who last modified it. .Private views
are not permitted in the site. .The site is used for collaboration and does not have any of the
SharePoint publishing features enabled. You need to enable users to filter the documents in
the large document library by content type. Which approach should you recommend?

What are two possible code segments that you can use to achieve this goal?

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 GetProducts
AS
BEGIN

SELECT ProductID, Name, Price, Cost
FROM Product END
You create a SqlDataAdapter named adapter to execute the stored procedure. You need to fill a
DataTable instance with the first 10 rows of the result set. What are two possible code segments
that you can use to achieve this goal? (Each correct answer presents a complete solution. Choose
two.)

Which tool should you recommend?

You design a Windows Presentation Foundation (WPF) application that connects to a
Microsoft SQL Server 2008 database. The WPF application becomes unresponsive at
times. When the WPF application is running, physical memory usage is between 90 percent
and 95 percent. You need to recommend a tool that will identify the memory usage
characteristics of the WPF application. Which tool should you recommend?

What should you recommend?

You are designing an ASP.NET Web application that will be deployed both to a server that
runs IIS 6 and to a server that runs IIS 7.0. The Web application must meet the following
requirements: Log all unhandled exceptions. Write exception details to a custom error log.
When an exception occurs, write the user credentials to a custom error log. You need to
recommend an approach for handling errors. What should you recommend?

You need to add the property to Product

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to develop an application.
You use the Entity Framework Designer to create an Entity Data Model from an existing database by
using the Generate from database wizard. The model contains an entity type named Product. The
Product type requires an additional property that is not mapped to a database column. You need to
add the property to Product. What should you do?

What should you recommend?

You design a Windows Presentation Foundation (WPF) application that interacts with a
Windows Communication Foundation (WCF) Web service. The WCF Web service throws
exceptions of type Exception. The WPF application crashes when the WCF Web service
throws an exception. You need to recommend an error-handling strategy that allows users
to submit updated data to the WCF Web service without restarting the WPF application.
What should you recommend?

Which code segment should you use?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The
application connects to a Microsoft SQL Server database. You use the ADO.NET LINQ to SQL model
to retrieve data from the database. The application contains the Category and Product entities, as
shown in the following exhibit.

You need to ensure that LINQ to SQL executes only a single SQL statement against the database. You
also need to ensure that the query retrieves the list of categories and the list of products. Which
code segment should you use?