PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which code segment should you add at line 02?

You have a list named Projects that contains a column named ClassificationMetadat a. 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.) 01For Each currentItem As SPListItem In SPContext.Current.Web.Lists(“Projects”).Items 02
03Next Which code segment should you add at line 02?

Which approach should you recommend?

You have a Web application that has been migrated from ASP.NET 3.5 to ASP.NET 4.
While testing the migrated Web application, developers notice that the non-input Web
controls with the property Enabled=”false” are rendering as enabled. You need to ensure

that the controls in the migrated Web application render correctly, and that other Web
applications hosted on the same Web server are not affected by the solution. Which
approach should you recommend?

How should you configure each portable computer?

Your company uses DHCP to lease IPv4 addresses to computers at the main office. A WAN link
connects the main office to a branch office. All computers in the branch office are configured with
static IP addresses. The branch office does not use DHCP and uses a different subnet. You need to
ensure that the portable computers can connect to network resources at the main office and the
branch office. How should you configure each portable computer?

You need to ensure that the zone is only replicated to DC1 and DC3

DRAG DROP
Your network contains an Active Directory domain. All domain controllers run Windows Server 2008
R2. The domain contains three domain controllers named DC1, DC2, and DC3. All of the domain
controllers have the DNS server role installed. You create a new Active Directory-integrated DNS
zone on DC1. You need to ensure that the zone is only replicated to DC1 and DC3. The solution must
ensure that all zone replication traffic is encrypted. What should you do?
To answer, move the appropriate actions from the Possible Actions list to the Necessary Actions area
and arrange them in the correct order.

You need to modify the code in WebPart1 to prevent the pages from loading slowly

You deploy a custom Web Part named WebPart1 to a SharePoint site. WebPart1 contains the
following code segment. (Line numbers are included for reference only.) 01Protected Sub
Page_Load(ByVal sender As Object, ByVal e As EventArgs) 02 Dim site As SPSite = Nothing 03
Try 04Dim site As New SPSite(“http://www.contoso.com/default.aspx”) 05 Dim web As SPWeb =
site.OpenWeb() 06 07 … 08 Catch 09 10 Finally 11 12 End Try 13End Sub After you deploy
WebPart1, users report that the pages on the site load slowly. You retract WebPart1 from the site.
Users report that the pages on the site load without delay. You need to modify the code in
WebPart1 to prevent the pages from loading slowly. What should you do?