Which code segment should you include in the Web Part?
You have a document library named MyDocs. MyDocs has a column named Column1. Column1
is a required column. You discover that many documents are checked out because users fail to
enter a value for Column1. You need to create a Web Part to delete the documents. Which code
segment should you include in the Web Part?
You need to ensure that you can deploy DirectAccess on Server3
Your network contains an Active Directory domain named contoso.com. Contoso.com contains three
servers. The servers are configured as shown in the following table.
You plan to give users access to the files shares on Server2 by using DirectAccess. You need to
ensure that you can deploy DirectAccess on Server3. What should you do?
Which two actions should you recommend?
You are modifying an existing ASP.NET Web application. Each page of the Web application
includes a navigation bar and a print button. You have the following requirements: • Enable
users to print pages of the Web site without printing the navigation bar. • Do not create a
separate version of the page formatted for printing. • Leverage the existing print button on
each page. You need to recommend an approach that meets the requirements. 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.)
01 System.Web.UI.WebControls.TextBox txtBoxTermSetToAdd = new System.Web.UI.
WebControls.TextBox(); 02 TaxonomySession session = new
TaxonomySession(SPContext.Current.Site); 03 TermSet addedTerm =
session.TermStores[0].Groups[“MyNewTermStore”]. CreateTermSet(txtBoxTermSetToAdd.Text);
04 Which code segment should you add at line 04?
Which authentication method should you use?
Your network contains one Active Directory domain. You have a member server named Server1 that
runs Windows Server 2008 R2. The server has the Routing and Remote Access Services role service
installed. You implement Network Access Protection (NAP) for the domain. You need to configure
the Point-to-Point Protocol (PPP) authentication method on Server1. Which authentication method
should you use?
What should you recommend?
You are designing an ASP.NET Web application. The Web application must meet the
following requirements: • Support REST without implementing custom URI templates. •
Allow CRUD functionality. You need to recommend a data access strategy. What should
you recommend?
You need to enable remote users to connect as securely as possible
You deploy a Windows Server 2008 R2 VPN server behind a firewall. Remote users connect to the
VPN by using portable computers that run Windows 7. The firewall is configured to allow only
secured Web communications. You need to enable remote users to connect as securely as possible.
You must achieve this goal without opening any additional ports on the firewall. What should you
do?
Which code segment should you add at line 04?
You need to create a Web Part that displays all of the content created by a specific user. You
write the following code segment. (Line numbers are included for reference only.) 01 private void
keywordQueryExecute(string searchAuthor) 02 { 03 KeywordQuery kRequest = new
KeywordQuery(ServerContext.Current); 04 05 kRequest.QueryText = strQuery; 06
ResultTableCollection resultTbls = kRequest.Execute(); 07 } Which code segment should you add
at line 04?
Which technology should you recommend?
You are designing an ASP.NET Web application. You have the following requirements: •
Relational database tables must automatically map to to .NET classes. • The data access
layer must be able to target database engines other than Microsoft SQL Server. You need
to recommend a data access technology. Which technology should you recommend?
You need to allow only members of a global group named Group1 VPN access to the network
Your network contains a server that runs Windows Server 2008 R2. The server has the Network
Policy and Access Services server role installed. You need to allow only members of a global group
named Group1 VPN access to the network. What should you do?