PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which code segment should you add at line 03?

You have a SharePoint site collection that contains 100 subsites. You plan to create a Web Part.
The Web Part will be deployed to each subsite. You need to ensure that the Web Part retrieves all
of the files in the root directory of the current subsite. You write the following code segment. (Line
numbers are included for reference only.) 01 SPSite site = SPContext.Current.Site; 02 SPWeb
web = SPContext.Current.Web; 03 Which code segment should you add at line 03?

What should you recommend?

An ASP.NET Web application is deployed on a single Web server. Web application state for
client requests is stored in a Microsoft SQL Server 2008 database. The Web application
must meet the following requirements: • Tolerate a Web server failure. • Scale gracefully to
accommodate a rapid load increase. You need to recommend an approach for
accommodating a load increase. What should you recommend?

Which code segment should you add to the Web Part?

You create a Feature named Feature1. Feature1 is activated in a SharePoint site. You create a
Web Part that contains the following code. SPSite site = new SPSite(“http://intranet/site1”);
SPWeb web = site.OpenWeb(); SPFeatureDefinition feature =
SPFarm.Local.FeatureDefinitions[“Feature1”]; You need to modify the Web Part to activate
Feature1 in Site1 only. Which code segment should you add to the Web Part?

You need to ensure that SRV1 reflects the change immediately

Your company has a main office and a branch office. The main office has a domain controller named
DC1 that hosts a DNS primary zone. The branch office has a DNS server named SRV1 that hosts a
DNS secondary zone. All client computers are configured to use their local server for DNS resolution.
You change the IP address of an existing server named SRV2 in the main office. You need to ensure
that SRV1 reflects the change immediately.
What should you do?

You need to ensure that all DNS clients can use DNS to resolve the single-label name of a server named Server1

DRAG DROP
Your network contains an Active Directory forest. The forest contains a server named
Server1.contoso.com. You need to ensure that all DNS clients can use DNS to resolve the single-label
name of a server named Server1. 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.

Which code segment should you add at line 04?

You are creating an application. You develop a custom control that renders a contextual tab. The

control contains the following code segment. (Line numbers are included for reference only.) 01
protected override void OnPreRender(EventArgs e) 02 { 03 SPRibbon curRibbon =
SPRibbon.GetCurrent(this.Page); 04 05
curRibbon.MakeContextualGroupInitiallyVisible(“SP.Ribbon.ContextualGroup”, string.Empty); 06
base.OnPreRender(e); 07 } You need to ensure that when the custom control is rendered, the
custom contextual tab appears in the Ribbon. Which code segment should you add at line 04?

What should you do?

Your company has a single Active Directory domain. The company has a main office and a branch
office. Both the offices have domain controllers that run Active Directory-integrated DNS zones. All
client computers are configured to use the local domain controllers for DNS resolution. The domain
controllers at the branch office location are configured as Read-Only Domain Controllers (RODC).
You change the IP address of an existing server named SRV2 in the main office. You need the branch
office DNS servers to reflect the change immediately. What should you do?