PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

What should you recommend?

You are designing a data validation strategy for an ASP.NET Web application. A page of the
Web application includes multiple Panel controls. Each panel contains input controls,
validator controls, and a Submit button. When a user clicks a Submit button, the Web
application must validate only the values of the input controls on the panel containing that
Submit button. You need to recommend an approach for validating the values. What should
you recommend?

Which code segment should you add at line 09?

have a SharePoint site collection that has the URL http://contoso/sites/finance. You are creating a
Microsoft .NET Framework console application that will use the SharePoint client object model to
create a site in the site collection. The application contains the following code segment. (Line
numbers are included for reference only.) 01Dim cCtx As New
ClientContext(“http://contoso/sites/finance”) 02Dim root As Web = cCtx.Site.RootWeb
03cCtx.Load(root) 04Dim webInfo As New WebCreationInformation() 05webInfo.Title = “site1”
06webInfo.Url = “site1” 07webInfo.WebTemplate = “MPS#2” 08root.Webs.Add(webInfo) 09
10cCtx.Dispose() You need to ensure that the application creates the site. Which code segment
should you add at line 09?

Which two actions should you recommend?

You are designing an n-tier solution that connects to a Microsoft SQL Server 2008
database. You plan to deploy the database to development machines and to a staging
database server from within Microsoft Visual Studio 2010. You plan to set up separate build
configurations for development and staging. You also plan to deploy to multiple production
database servers managed by an outside vendor. You must not allow the outside vendor to
access the visual Studio projects. You need to recommend an approach for configuring and
deploying the production database servers. Which two actions should you recommend?
(Each correct answer presents part of the solution. Choose two.)

Which code segment should you add at line 04?

You need to create a Web Part that adds a term set to the current SharePoint site collection’s
term store. You write the following code segment. (Line numbers are included for reference only.)
01Dim txtBoxTermSetToAdd As New System.Web.UI.WebControls.TextBox() 02Dim session As
New TaxonomySession(SPContext.Current.Site) 03Dim addedTerm As TermSet =
session.TermStores(0).Groups (“MyNewTermStore”).CreateTermSet(txtBoxTermSetToAdd.Text)
04 Which code segment should you add at line 04?

What should you recommend?

You are designing a .NET Framework 4 solution that contains a Windows Presentation
Foundation (WPF) application and a Windows Communication Framework (WCF) Web
service. The WPF application will be deployed to users’ desktops located in the company’s
corporate network. The WCF Web service will be deployed to a Web farm located in the
company’s perimeter network. The firewall between the perimeter network and the Internet
allows only HTTP and HTTPS traffic. You need to recommend an approach for minimizing

the attack surface of the WCF Web service. What should you recommend?

What should you recommend?

You are designing a multi-tenant Windows Presentation Foundation (WPF) application that
will connect to a Microsoft SQL Server 2008 database. The WPF application will change the
structure of database tables and views at runtime based on the tenant’s configuration. The
WPF application must meet the following requirements: • Keep each tenant’s data separate.
• Allow changes to the structure of the tables and views for each tenant without interfering
with other tenants’ data. You need to recommend an approach for managing the database
structure. What should you recommend?