Which code segment should you use?
You need to create a Web Part that displays all social tags entered by users. Which code
segment should you use?
Which should you advise?
During application testing, developers notice that the Temp Data property contents no
longer persist between requests. You need to advise the developers of the requirements for
ensuring that the Temp Data property contents persist between requests. Which should you
advise?
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?
You need to ensure that the server can communicate with all segments on the IPv6 network
Your company has an IPv6 network that has 25 segments. You deploy a server on the IPv6 network.
You need to ensure that the server can communicate with all segments on the IPv6 network. What
should you do?
Which code segment should you add?
You have a Web application that contains the following code segment. Private Sub
CreatingSPSite() Dim siteCollection As SPSite = Nothing Try siteCollection = New
SPSite(“http://contoso.com”) Finally End Try End Sub You need to prevent the code segment
from causing a memory leak. Which code segment should you add?
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?
You need to allow peer-to-peer communication between all locations
Your company has computers in multiple locations that use IPv4 and IPv6. Each location is protected
by a firewall that performs symmetric NAT. You need to allow peer-to-peer communication between
all locations. What should you do?