PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which two actions should you perform?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows
Communication Foundation (WCF) Data Services service. The service connects to a Microsoft SQL
Server 2008 database. The service is hosted by an Internet Information Services (IIS) 6.0 server. You
need to ensure that applications authenticate against user information stored in the database
before the application is allowed to use the service. Which two actions should you perform? (Each
correct answer presents part of the solution. Choose two.)

Which code segment should you add to the application?

You need to create a custom application that provides users with the ability to create a managed
property. The managed property name must be specified in the args [1] parameter. You write the
following code segment for the application. 01 SPSite currentSite = new SPSite(“http://intranet”);
02 SearchContext context = SearchContext.GetContext(currentSite); 03 Schema schema = new
Schema(context); Which code segment should you add to the application?

Which code segment should you insert at line 02?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Microsoft
Windows Forms application,
You plan to deploy the application to several shared client computers.
You write the following code segment. (Line numbers are included for reference only.)
01 Dim config As Configuration = Conf igurationManager .OpenExeConf iguratlon(exeConf igName)
02
03 config.Save()
04 …
You need to encrypt the connection string stored in the .config file.
Which code segment should you insert at line 02?

Which data access technology should you use?

You are developing a Windows application by using Microsoft .NET Framework 4, Microsoft
Visual Studio 2010, and Microsoft SQL Server 2008. The application will store data in a
SQL Server database instance. You plan to use the Code Generation technology to develop
data entities. You need to ensure that the following requirements are met: • When the
application runs, a database must be created if it does not already exist. • When the
database schema changes, data entities must be added dynamically. Which data access
technology should you use?

You need to ensure that the application meets the following requirements:

You are designing an application by using Microsoft .NET Framework 4, Microsoft Visual
Studio 2010, and Microsoft SQL Server 2008. The application will be used by a sales team
to enter sales orders and update customer information. You need to ensure that the
application meets the following requirements: • Allows users to enter sales orders while their
computers are disconnected from the network • Uploads sales orders to the server
database when connected to the network • Compiles against the .NET Framework 4 client
profile What should you use?

Which two actions should you recommend?

You are designing the deployment strategy for an ASP.NET Web application that consists of
multiple pages. The Web application will be deployed to a server that hosts multiple
ASP.NET applications. The Web application design includes: • Error pages named
loginErrors.htm and GenericErrorPage.htm. • A subdirectory named login that contains only
the Login.aspx page. You have the following requirements: • Display the loginErrors.htm
page for all unhandled errors that are generated from the login.aspx page. • Display the
GenericErrorPage.htm page for all other unhandled errors. You need to recommend an
approach for displaying the error pages. Which two actions should you recommend? (Each
correct answer presents part of the solution. Choose two.)

You need to ensure that changes made to the WCF service data contract do not require the application to be rec

You are developing a Windows application by using Microsoft .NET Framework 4 and
Microsoft Visual Studio 2010. The application will consume a Windows Communication

Foundation (WCF) service. The WCF service will provide data to the application. You plan
to use the ADO.NET Entity Framework to create a data model that will be used by the
application. Another development team makes changes to the WCF service data contract.
You need to ensure that changes made to the WCF service data contract do not require the
application to be recompiled. What should you do?

Which code segment should you add at line 11?

You have a document library named Documents. Minor and major version management is
enabled for the document library. You plan to add a document named MyFile.docx to Documents.
You create a console application that contains the following code segment. (Line numbers are
included for reference only.) 01 using (SPSite site = new SPSite(“http://intranet”)) 02 { 03 SPList
documents = site.RootWeb.Lists[“Documents”]; 04 FileStream fstream =
File.OpenRead(@”MyFile.docx”); 05 byte[] content = new byte[fstream.Length]; 06
fstream.Read(content, 0, (int)fstream.Length); 07 fstream.Close(); 08
site.RootWeb.Files.Add(documents.RootFolder.Url + “/MyFile.docx”, content, true); 09 SPFile file
= site.RootWeb.GetFile(documents.RootFolder.Url + “/MyFile. docx”); 10
file.CheckIn(string.Empty); 11 12 } You need to ensure that all users can see the document.

Which code segment should you add at line 11?

Which approach should you recommend?

Your company has a SharePoint 2010 farm that has one Web application with multiple site
collections. Your team needs to meet the following requirements: ·Certain individuals need
to have the “Full Control” permission set on every site collection in the Web application.
.Permissions must be set in a central location and should effect all current and future site

collections. Which approach should you recommend?