PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which approach should you recommend?

You are designing a method for collecting information regarding usage of new functionality
within an ASP.NET Web application. You have the following requirements: • Usage data
must be stored in a database for easy reporting. • The application must not include code
relating to usage data. You need to design a strategy that meets the requirements. Which
approach should you recommend?

Which object should you dispose of?

You create an event receiver. The ItemAdded method for the event receiver contains the following
code segment. (Line numbers are included for reference only.) 01 SPWeb recWeb =
properties.Web; 02 using (SPSite siteCollection = new SPSite(“http://site1/hr”)) 03 { 04 using
(SPWeb web = siteCollection.OpenWeb()) 05 { 06 PublishingWeb oWeb =
PublishingWeb.GetPublishingWeb(web); 07 PublishingWebCollection pubWebs =
oWeb.GetPublishingWebs(); 08 foreach (PublishingWeb iWeb in pubWebs) 09 { 10 try 11 { 12
SPFile page = web.GetFile(“/Pages/default.aspx”); 13 SPLimitedWebPartManager wpManager =
page.GetLimitedWebPartManager (PersonalizationScope.Shared); 14 } 15 finally 16 { 17 if (iWeb
!= null) 18 { 19 iWeb.Close(); 20 } 21 } 22 } 23 } 24 } You need to prevent the event receiver from
causing memory leaks. Which object should you dispose of?

Which two actions should you perform?

You are building a test environment to evaluate DNS Security Extensions (DNSSEC). You have a
domain controller named Server1 that runs Windows Server 2008 R2 in your test environment.
Server1 has the DNS Server server role installed. You need to configure Server1 to support the
DNSSEC evaluation. Which two actions should you perform? (Each correct answer presents part of
the solution. Choose two.)

You need to ensure that the code opens the dialog box

You are creating an application page that will open a dialog box. The dialog box uses a custom
master page. You write the following code segment. (Line numbers are included for reference
only.) 01 <script type=”text/javascript”> 02 function DialogCallback(dialogResult, returnValue) 03 {
04 } 05 function OpenEditDialog(id) 06 { 07 var options = { 08
url:”http://intranet/_layouts/MsgToShow.aspx, 09 width: 300, 10 height: 300, 11
dialogReturnValueCallback: DialogCallback 12 }; 13
SP.UI.ModalDialog.showModalDialog(options); 14 } 15 </script> You need to ensure that the code
opens the dialog box. What should you do?

You need to ensure that the contoso.com zone is available on Server2

Your network contains two servers named Server1 and Server2 that run Windows Server 2008 R2.
Server1 and Server2 are configured as DNS servers. On Server1, you create a primary DNS zone
named contoso.com. You configure Server2 to host a secondary copy of contoso.com. On Server2,
you open DNS Manager as shown in the exhibit. (Click the Exhibit button.)

You need to ensure that the contoso.com zone is available on Server2. What should you do?

You need to migrate \\contoso.com\dfs to Windows Server 2008 mode

Your network contains a domain-based Distributed File System (DFS) namespace named
\\contoso.com\dfs. \\contoso.com\\dfs is configured to use Windows 2000 Server mode. The
domain contains two servers named Server1 and Server2 that run Windows Server 2008 R2. Server1
is configured as a namespace server for \\contoso.com\dfs. You need to migrate \\contoso.com\dfs
to Windows Server 2008 mode. You install the Distributed File System role service on Server2. What
should you do next?