PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which code segment should you add at line 03?

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
FullTextSqlQuery qry = new FullTextSqlQuery(ServerContext.GetContext(SPContext.
Current.Site)); 02 qry.ResultTypes = ResultType.RelevantResults; 03 04 qry.QueryText =
strQuery; 05 ResultTableCollection results = qry.Execute(); Which code segment should you add
at line 03?

You need to ensure that users can access network resources only from computers that comply with the company po

Network Access Protection (NAP) is configured for the corporate network. Users connect to the
corporate network by using portable computers. The company policy requires confidentiality of data
when the data is in transit between the portable computers and the servers. You need to ensure
that users can access network resources only from computers that comply with the company policy.
What should you do?

What should you recommend?

You are designing a Windows Communication Foundation (WCF) service. The WCF service
will support a common data access strategy for an ASP.NET 1.1 Web application and an
ASP.NET 4 Web application. You have the following requirements: • Ensure that the WCF
service complies with WS-* standards. • Enable backward-compatibility for clients that can
consume only ASMX Web Services. You need to recommend an endpoint and binding
strategy for the WCF service. What should you recommend?

Which code segment should you add at line 03?

You have a list named Projects that contains a column named ClassificationMetadata. You need
to create a Web Part that updates the ClassificationMetadata value to NA for each item in the
Projects list. You write the following code segment. (Line numbers are included for reference
only.) 01 foreach (SPListItem currentItem in SPContext.Current.Web.Lists[“Projects”]. Items) 02 {
03 04 } Which code segment should you add at line 03?

You need to ensure that all users can use the Web Part to update the description of the current site

You create a Web Part that programmatically updates the description of the current SharePoint
site. The Web Part contains the following code segment. (Line numbers are included for reference
only.) 01 SPSecurity.RunWithElevatedPrivileges(delegate() 02 { 03 SPSite currSite =
SPContext.Current.Site; 04 SPWeb currWeb = SPContext.Current.Web; 05 using (SPSite eSite =
new SPSite(currSite.ID)) 06 { 07 using (SPWeb eWeb = eSite.OpenWeb(currWeb.ID)) 08 { 09

eWeb.AllowUnsafeUpdates = true; 10 currWeb.Description = “Test”; 11 currWeb.Update(); 12
eWeb.AllowUnsafeUpdates = false; 13 } 14 } 15 }); Users report that they receive an Access
Denied error message when they use the Web Part. You need to ensure that all users can use the
Web Part to update the description of the current site. What should you do?

You need to ensure that client computers meet the company policy requirement

Your company uses Network Access Protection (NAP) to enforce policies on client computers that
connect to the network. Client computers run Windows 7. A Group Policy is used to configure client
computers to obtain updates from Windows Server Update Services (WSUS). Company policy
requires that updates labeled Important and Critical must be applied before client computers can
access network resources. You need to ensure that client computers meet the company policy
requirement. What should you do?

Which IP addresses should you assign to Router1?

DRAG DROP
Your network contains a subnet named Subnet1. You add a new subnet named Subnet2 to the
network. Subnet1 and Subnet2 are connected by a router named Router1. You need to configure the
IP addresses on Router1 to ensure that IP traffic can be routed between Subnet1 and Subnet2.
Which IP addresses should you assign to Router1? To answer, drag the appropriate IP address to the
correct interface in the answer area.

What should you recommend?

You are designing an ASP.NET Web application that stores data in a Microsoft SQL Server
2008 database on a remote server. You must meet the following requirements: • Ensure
that users’ actions can be traced on each server by using the security audit log. • Minimize
the risk of server components executing in the user’s context. You need to recommend an
approach for accessing the database. What should you recommend?

Which code segment should you add at line 05?

You create a Web Part. You need to display the number of visits to a SharePoint site collection in
a label named LblVisits. You write the following code segment. (Line numbers are included for
reference only.) 01 SPSecurity.RunWithElevatedPrivileges(delegate() 02 { 03 try 04 { 05 06
LblVisits.Text = site.Usage.Visits.ToString(); 07 } 08 finally 09 { 10 11 } 12 }); Which code segment
should you add at line 05?