393__70-542 qa55
-
Upload
ramalakshmi-subba-raju -
Category
Documents
-
view
229 -
download
0
Transcript of 393__70-542 qa55
8/3/2019 393__70-542 qa55
http://slidepdf.com/reader/full/39370-542-qa55 1/27
Copyrights 2005-2006 TestKingonline All Rights Reserved.
TestKingonline.comNo Pass No Pay!
MCSE, CCNA, CCNP, OCP, CIW, JAVA, Sun Solaris, Checkpoint
World No 1 Cert Exams
MS Office Share Point Server 2007-Appliaction
70-542
8/3/2019 393__70-542 qa55
http://slidepdf.com/reader/full/39370-542-qa55 2/27
Copyrights 2005-2006 TestKingonline All Rights Reserved.
ongratulations!
ou have purchased a TestKingonline. Study Guide.
is study guide is a complete collection of questions and answers that have been developed by our professional & certified team
ou must study the contents of this guide properly in order to prepare for the actual certification test. The average time that we w
ggest you for studying this study guide is approximately 10 to 20 hours and you will surely pass your exam. We guarantee it!
OOD LUCK!
SCLAIMER
is study guide and/or material is not sponsored by, endorsed by or affiliated with Microsoft, Cisco, Oracle, Citrix, CIW,
heckpoint, Novell, Sun/Solaris, CWNA, LPI, ISC, etc. All trademarks are properties of their respective owners.
uarantee
you use this study guide correctly and still fail the exam, send a scanned copy of your official score notice at:[email protected]
e will gladly refund the cost of this study guide or give you an exchange of study guide of your choice of the Free.
is material is protected by copyright law and international treaties. Unauthorized reproduction or distribution of this material,
y portion thereof, may result in severe civil and criminal penalties, and will be prosecuted to the maximum extent possible un
w.
8/3/2019 393__70-542 qa55
http://slidepdf.com/reader/full/39370-542-qa55 3/27
Copyrights 2005-2006 TestKingonline All Rights Reserved.
uestion: 1
ou implement a custom function as a user-defined function (UDF) in Excel Services in Microsoft
ffice SharePoint Server 2007. A Microsoft Office Excel 2007 workbook uses the custom functiongenerate a random number between 100 and 500. You need to generate a new random
mber each time you load the workbook. Which code segment should you use?
- public class MyUdfs
andom rand = new Random();df Method]
blic mt GetRandomNumber()
turn (rand.Next(100, 500));
- [UdfClass]blic class MyUdfs
andom rand = new Random();
dfMethod(lsVolatile=true)]blic int GetRandomNumber()
turn (rand.Next(100, 500));}
- [UdfClass]
blic class MyUdfs
andom rand = new Random();blic mt GetRandomNumber()
turn (rand.Next(100, 500));}
- public class MyUdfs
andom rand = new Random();blic mt GetRandomNumber()
turn (rand.Next(100, 500));}
nswer: B
uestion: 2
ou create a Microsoft Office SharePoint Server 2007 site. A document library named Company
orkbooks on the site contains Microsoft Office Excel workbooks. You need to ensure that users
n access the workbooks in the Company Workbooks document library by using Excel ServicesMicrosoft Office SharePoint Server 2007. What should you do?
8/3/2019 393__70-542 qa55
http://slidepdf.com/reader/full/39370-542-qa55 4/27
Copyrights 2005-2006 TestKingonline All Rights Reserved.
- Define the site as a managed path within SharePoint.- Add the Company Workbooks URL to the trusted location list.
- Edit the permissions of the Company Workbooks document library to grant full control to the
arePoint application pool identity account.
- Create a custom security policy file for the Company Workbooks document library. Add thee to the security Policy section of the Web .config file for the site.
nswer: B
uestion: 3
ou are designing a Microsoft Office SharePoint Server 2007 solution. A Microsoft SQL Server05 Analysis Services cube stores key performance indicators (KPls). You need to display
tails of a KPI in a Web Part. Which two actions should you perform? (Each correct answer
esents part of the solution. Choose two.)
- Create a KPI List.
- Add a List Item Web Part.- Create a .odc file for the data connection.
- Create a .udl file for the data connection.
- Create a Business Data Catalog (BDC) definition.
nswer: A, C
uestion: 4
ou create an application for a Microsoft Office SharePoint Server 2007 server. You create a callnter dashboard. You create a Key Performance Indicator (KPI) list that contains KPIs. You add
KPI Web Part to the dashboard to view KPIs. You need to permit users to view details that
ake up each KPI. What should you do?
- Add a link to each KPI in the list to take the user to a details page.
- Add data to a custom SharePoint list and use built-in filter and view capabilities.- Add a Filter Web Part to the dashboard page and connect the page to the KPI list Web Part.
- Filter the items in the KPI list Web Part by the indicator that the user wants to view.
nswer: A
uestion: 5
ou are creating a Microsoft Office SharePoint Server 2007 Report Center Web site. Your
mpany stores product data in a Microsoft SQL Server 2005 database named Product
anagement. You need to ensure that the product data is available for use in Microsoft Office
xcel 2007 reports. What should you do?
- Upload a custom Office Data Connection file to the Data Connections library.- Upload a custom set of Microsoft SQL Server Reporting Services Report Model files to the
ata Connections library.
- Create a single sign-on (SSO) provider that manages access to the Product Managementtabase.
8/3/2019 393__70-542 qa55
http://slidepdf.com/reader/full/39370-542-qa55 5/27
Copyrights 2005-2006 TestKingonline All Rights Reserved.
- Create a Business Data Connection for the Product Management database, and definetities in the Business Data Catalog (BDC) definition.
nswer: A
uestion: 6
ou are developing a Microsoft Office SharePoint Server 2007 solution that integrates with
icrosoft SQL Server 2005 Reporting Services. You need to configure the SharePoint solution to
ow storage of reports in SharePoint document libraries. What should you do?
- Speci the Report Server URL in the Report Explorer Web Part.- Configure the proxy server endpoint in the Reporting Services Configuration tool.
- Specify a Report Explorer Web Part as the target for the Report Viewer Web Part.
- Specify a Report Viewer Web Part as the target for the Report Explorer Web Part.
nswer: B
uestion: 7
ou are creating a Microsoft Office SharePoint Server 2007 application. The application readsta from the Microsoft Office Excel 2007 workbook named SalesGoals.xls. SalesGoals.xls is
cated in a document library. The first sheet of the SalesGoals.xls workbook contains the
llowing information.ou need to retrieve the values for 2008 from within your application.
hich two actions should you pertorm? (Each correct answer provides part of the solution.
hoose two.)
- Instantiate a new PangeCoordinates object.
- Instantiate the Microsoft Office Excel Web Services service.- Call the GetRangeA1 method by passing B3:D3 as a parameter.
- Call the GetRange method along with a RangeCoordinates object by using the following
rameters. column=2, row=3, height=1, width=3
nswer: B, C
uestion: 8
ou have a Microsoft Office SharePoint Server 2007 site. You create a Microsoft Office Excel
07 workbook that contains the telephone numbers of all your company locations. You need tosure that users can filter the Excel 2007 workbook on the basis of company locations by using
xcel Services in Microsoft Office SharePoint Server 2007. What should you do?
- Create an ActiveX control in the workbook.
- Create an Excel 2007 Microsoft Visual Basic for Applications (VBA) application in the
orkbook.- Filter the workbook by using the Data-Filter option of the Excel 2007 workbook.
- Filter the list in place by using Excel 2007, and protect the Excel 2007 workbook that contains
e telephone numbers.
8/3/2019 393__70-542 qa55
http://slidepdf.com/reader/full/39370-542-qa55 6/27
Copyrights 2005-2006 TestKingonline All Rights Reserved.
nswer: C
uestion: 9
our company stores employee details in a Microsoft SQL Server database. You are creating a
eport Center site on a Microsoft Office SharePoint Server 2007 server. You need to ensure that
eport on employee details can be generated in the Report Center site. What should you do?
- Add the Data Connections library to the trusted file locations.
- Import the application definition to the Business Data Connector.- Import the Office Data Connection file to the trusted data providers.
- Create an Office Data Connection file in a trusted Data Connections library.
nswer: D
uestion: 10
ou are creating two user-defined functions (UDFs) of Excel Services in Microsoft Office
arePoint Server 2007.ou write the following code segment.
blic class Class 1
blic double MyDouble (double d)
turn d * 9.
blic DateTime ReturnDateTimeToday ()
turn ( DateTime.Today);
}ou need to ensure that the MyDouble method and the ReturnDateTimeToday method arecognized as UDFs of Excel Services. What should you do?
- Add a reference to the Excel Services DLL.
- Change the methods from public to private.
- Add an out parameterto each of the method statements.- Mark the class by using the UdfClass attribute and mark the methods by using the UdfMethod
ribute.
nswer: D
uestion: 11
ou are designing a Microsoft Office SharePoint Server 2007 solution. You need to implement a
ngle Sign On (BDC) provider to access a Business Data Catalog (BDC). What should you do?
- Reference the Microsoft.SharePoint.Portal assembly.- Reference the Microsoft.SharePoint.SoapServer assembly.
- Reference the Microsoft.Office.Server.Utilities assembly.
- Reference the Microsoft.Office.Server.WebControls assembly.
8/3/2019 393__70-542 qa55
http://slidepdf.com/reader/full/39370-542-qa55 7/27
Copyrights 2005-2006 TestKingonline All Rights Reserved.
nswer: A
uestion: 12
our company uses a Microsoft Office SharePoint Server 2007 site that has user profiles
abled. Your company also uses a Web-based human resources (HR) application that runs on a
fferent server. The HR department wants to display the user profile data from the SharePointe in the Web-based application.ou need to retrieve the user profile information from within the Web-based application.
hich method of the UserProfileService object should you use?
- The GetUserProfileByName method.
- The ModifyUserPropertyByName method.
- The GetCurrentChangeToken method.
- The GetUserCurrentChangeToken method.
nswer: A
uestion: 13
ou create a Microsoft Office InfoPath workflow task form for users. The form contains all thetails of each task. You need to store the value of the Comments field in a variable named
serinput when each user submits the form. Which code segment should you use?
- String Userlnput = new Strings();
PWorkflowTaskProperties wpTProps =
w SPWorkflowTaskProperties();
serlnput = wpTProps .ExtendedProperties[“Comments”].ToString();
- SPWorkflowActivationProperties wpAProps =w SPWorkflowActivationProperties();
ject Userlnput = wpAProps.ltem.Fields[”Comments”];
- SPWorkflowActivationProperties wpAProps =
w SPWorkflowActivationProperties();
mlSerializer serializer = new XMLSerializer(typeof(MyFields));mlTextReader reader = new XMLTextReader
ew System.lO.StringReader(wpAProps.lnitiationData));
yFields fields = serializer.Deserialize(reader)ring Userlnput = fields.Users[i] Comments;
- XmlSerializer serializer = new XmlSerializer(typeof(lnitForm));mlTextReader reader = new XmlTextReaderew System.lO.StringReader(workflowProps.lnitiationData));
itForm initform = (InitForm) serializer.Deserialize(reader);
ring Userlnput = initform.comments;
nswer: A
8/3/2019 393__70-542 qa55
http://slidepdf.com/reader/full/39370-542-qa55 8/27
Copyrights 2005-2006 TestKingonline All Rights Reserved.
uestion: 14
our organization has a Microsoft Office Forms Server 2007 server. The server hosts a form
mplate named Template A. You create a new version of the form named Templates. You need
create an automated administration task that ensures that the sites use Templates instead of mplateA. What should you do?
- Call the Activate method of the FormTemplateCollection objectforthe serverfarm.- Call the Quiesce method of the FormTemplate object for each Web site in the site collection.
- Call the Update method of the FormTemplate objectfor each Web site in the site collection.
- Call the UpgradeFormTemplate method of the FormTemplateCollection object for the serverrm.
nswer: D
uestion: 15
ou create a Microsoft Office SharePoint Server 2007 site. The site contains a form library. A
icrosoft Office InfoPath form from the form library must be converted to a Web page by using an
isting InfoPath form converter. When you select the existing form converter, you receive anversion error. You need to ensure that the document is converted without errors. What should
u do?
- Add a Web page that uses the XmlFormView control.
- Publish the form to the form library by using an administrator account.
- Modify the conversion schedule for the document-to-page converter.- Use a Universal Data Connection (UDC) between the InfoPath form and the SharePoint site.
nswer: B
uestion: 16our company uses an ASP.NET Web site. You create a Microsoft Office InfoPath form named
yForm. You are creating a custom control that is derived from the XMLFormView class. The
stom control will display MyForm within an ASP.NET page on the Web site. You need tosure that MyForm can be displayed within an ASP.NET page on the Web site. What should
u do?
- Set the xsnLocation property of the custom control to MyForm.xsn.- Set the xmlLocation property of the custom control to MyForm.xml.
- Create an Onlnitialize event for the custom control and set XPathNavigator to MyForm.xsn.
- Create an OnPrePendereventforthe custom control and setxPathNavigatorto MyForm.xsn.
nswer: A
uestion: 17
ou are designing a Microsoft Office SharePoint Server 2007 solution. You need to create aorkflow that will access data from a custom Microsoft Office Infopath task form. Which two
tions should you perform? (Each correct answer presents part of the solution. Choose two.)
- Add the workflow task schema to the task form as a secondary data source.
8/3/2019 393__70-542 qa55
http://slidepdf.com/reader/full/39370-542-qa55 9/27
Copyrights 2005-2006 TestKingonline All Rights Reserved.
- Add the workflow task schema to the task form as the primary data source.- Execute the GetWorkflowData method on a SPWorkflowTask object.
- Execute the GetNoCodeTemplate method on a SPWorkflowTaskManager object.
- Access the ExtendedProperties property of the SPWorktlowTaskProperties object.
nswer: A, E
uestion: 18
our organization has a department named product testing. You are creating a new membershipmed Product Testing. You are adding a distribution list to the new membership. You need to
sure that the membership is displayed only to managers. What should you do?
- Call the MemberGroupData method of the UserProfiles object.
- Call the GetPrivacyPolicy method of the UserProfileManager object.
- Pass Privacy.Manager as the privacy setting to the Membership.Create method.- Pass PrivacyPolicyldConstants.MembershipsFromDistributionLists to the
eateMemberGroup method of the user profile.
nswer: C
uestion: 19
ou create a Microsoft Office SharePoint Server 2007 application. The application has a user
med UserA. You need to retrieve a list of colleagues for UserA.hich code segment should you use?
- private void RetrieveColleagues(ServerContext Cntxobj)
PSite site = new SPSite(”http: //servername/sites/site1 “);serProfileManager profileManager =
w UserProfileManager(Cntxtobj);
serProfile profile =ofileManager.GetUserProfile(“abc\\UserA”);
olleague[] colleagues = profile Colleagues.Getltems();te.Dispose();
}
- private void PetrieveColleagues(ServerContext Cntxtobj)
PSite site = new SPSite(“http: //servername/sites/site1”);rverContext context = ServerContext.GetContext(site);
serProfileManager profileManager =
w UserProfileManager(context);
serProfile profile =ofileManager.GetUserProfile(”abc\\UserA”);
serProfile[] colleagues
profile Colleagues.GetCommonColleagues
8/3/2019 393__70-542 qa55
http://slidepdf.com/reader/full/39370-542-qa55 10/27
Copyrights 2005-2006 TestKingonline All Rights Reserved.
te.Dispose();}
- private void Petrievecolleagues(ServerContext Cntxtobj)
PSite site = new SPSite(”http: //servername/sites/site1 “);rvercontext context = ServerContext.Getcontext(site);serProfileManager profileManager =
w UserProfileManager(context);
serProfile profile =
ofileManager.GetUserProfile(”abc\\UserA”);olleagueManager manager = new ColleagueManager(profile);
serProfile[] profiles = manager.GetColleaguesOfColleagues();
te. Dispose();}
- private void RetrieveColleagues(ServerContext Cntxtobj)
PSite site = new SPSite(“http: //servername//sites/site1 “);
rverContext context = ServerContext.GetContext(site);
udienceManager audMgr = new AudienceManager(context);PWeb web = site.AIlWebs [“mainpage”];
rrayList audienceIDNames =
dMgr.GetUserAudiencelDs(“domain\\userA”, true, web);te.Dispose();
}
nswer: A
uestion: 20
ou are creating a Microsoft Office SharePoint Server 2007 site. You create a MicrosoftinForms application to enter information about a user. You write the following code segment.
ine numbers are included for reference only.)
static void AddUser (string[J user_name){
using (SPSite site =
new SPSite(”http://sitename”)){
ServerContext context =
ServerContext.Getcontext(site);UserProfileManager profileManager =
new UserProfileManager(context);
…
}}
ou need to add a user profile to the profile store.
hich code segment should you insert at line 10?
8/3/2019 393__70-542 qa55
http://slidepdf.com/reader/full/39370-542-qa55 11/27
Copyrights 2005-2006 TestKingonline All Rights Reserved.
- UserProfile u = profileManager.GetUserProfile(user_name);
- UserProfileManager profileManager =
w UserProfileManager(context);serProfile u = profileManager.GetUserProfile(user_name);
Commit ();- string user_name = “<UserProfile>”;
er_name += userProfile + user_name;
er_name += </UserProfiIe>”;
ofileManager.CreateUserProfile (user_name);
- UserProfile u = profileManager.CreateUserProfile(user_name);
Commit ();
nswer: D
uestion: 21
ou create a Microsoft Office SharePoint Server 2007 site. The site is configured to use a Shared
rvices Provider (SSP) that manages user profiles. The user profiles contain user contactformation. You need to retrieve the telephone number of a user. What should you do?
- Perform a keyword search by using the WorkPhone: prefix.- Obtain the value of the WorkPhone node from the SPUser.Xml property of the user.
- Obtain the value of the UserProfile[PropertyConstants.WorkPhone] property of the user.
- Obtain the value of the Propertylnformation.Description property where the value of the
opertylnformation.Name property is WorkPhone.
nswer: C
uestion: 22
ou are creating a Business Data Catalog (BDC) definition for a phone book application. The
plication stores customer names in a table named People in a Microsoft SQL Server database.ou are defining an entity named People within the BDC definition. You need to ensure that the
tity data can be displayed in a Business Data List (BDL) Web Part. Which method should you
fine inside the entity?
- Finder- ViewAccessor
- IDEnumerator
- Genericlnvoker
nswer: A
uestion: 23
our companys sales database has two related tables named Customer and SalesOrders.
8/3/2019 393__70-542 qa55
http://slidepdf.com/reader/full/39370-542-qa55 12/27
Copyrights 2005-2006 TestKingonline All Rights Reserved.
ou define two entities named Customer and SalesOrders in a Business Data Catalog (BDC)finition.
he metadata for the BDC definition contains the following XML fragment. (Line numbers are
cluded for reference only.)<Associations>
<Association><Association
AssociationMethodEntityName=”Customer”
AssociationMethodName=”GetSalesOrdersForCustomer”
AssociationMethodReturnParameterName=”SalesOrders”Name=”CustomerToSalesorder”
lsCached=”true”
>…
</Association>
</Associations>ou need to maintain the relationship between the entities.
hich XML fragment should you insert at line 11?
- <SourceEntity Name=”Customer” />
DestinationEntity Name=”CustomerToSalesOrder” />
- <SourceEntity Name=”Customer” />DestinationEntity Name=”SalesOrders” />
- <SourceEntity Name=”Customer” />
DestinationEntity Name=”GetSalesOrdersForCustomer” />- <SourceEntity Name=”Customer” />
DestinationEntity Name=”Customer” />
nswer: B
uestion: 24
ou create a Microsoft Office SharePoint Server 2007 site. You also create a Business Dataatalog (BDC) definition. The BDC definition accesses a product database that is stored on a
icrosoft SQL Server 2005 server. You need to ensure that users can filter the product data by
e ProductType field from within the SharePoint server. What should you do?
- Create a custom action that passes the product type to the BDC definition.
- Create an IDEnumerator method that filters the data by the ProductType field.
- Create a Filter Descriptor object that passes the ProductType field value as a parameter.- Create a type descriptor within the BDC definition for which ProductType is the type name.
nswer: C
uestion: 25
ou create an application for a Microsoft Office SharePoint Server 2007 server. You create a List
eb Part that displays tasks in a project plan. The Web Part retrieves information from the
8/3/2019 393__70-542 qa55
http://slidepdf.com/reader/full/39370-542-qa55 13/27
Copyrights 2005-2006 TestKingonline All Rights Reserved.
usiness Data Catalog (BDC) definition. You need to ensure that when a user selects an item ine project list, the task list for the project is displayed. You also need to ensure that users can
date information in the task list. Which two actions should you perform? (Each correct answer
esents part of the solution. Choose two.)
- Remove any definitions for the SpecificFinder method.- Create a properly in the BDC definition that maps to the task ID.- Create a custom field for the list named task ID that holds the URL of the Web page.
- Create an entity based on the BDC definition, and create a custom action that adds the value
the current task ID property to a placeholder in the URL of the desired Web page.
nswer: B, D
uestion: 26
our company uses an external CRM application that contains a business object namedustomers. The Customers object represents a table that contains customer details. You need to
fine the Customers object in the Business Data Catalog (BDC) definition. What should you do?
- Create an Entity element named Customers.
- Create a Method element named GetCustomers.- Add a Parameter element that has the Direction propertq set to In and the Name property set
@Customers.
- Modify the Action element by adding an ActionParameter element that has the Name
operty set to @Customers and the Index property set to 0.
nswer: A
uestion: 27
our company uses an order management application that stores order information in a MicrosoftQL Server 2005 database. You are creating a Business Data Catalog (BDC) definition on a
icrosoft Office SharePoint Server 2007 server. You need to ensure that the SharePoint server
n index the order information. Which two actions should you perform? (Each correct answeresents part of the solution. Choose two.)
- Define a Finder method in the BDC definition.
- Define an IoEnumerator method in the BDC definition.- Define a ViewAccessors method in the BDC definition.
- Define a SpecificFinder method in the BDC definition.
nswer: B, D
uestion: 28
our company stores product information in a Microsoft SQL Server 2005 database. You create a
usiness Data Catalog (BDC) definition to search for product information within the database.
ou need to ensure that incremental crawls can be performed in the database for indexing. What
ould you do?
8/3/2019 393__70-542 qa55
http://slidepdf.com/reader/full/39370-542-qa55 14/27
Copyrights 2005-2006 TestKingonline All Rights Reserved.
- Create a Genericlnvoker method.- Create a Finder methnd.
- Create a ViewAccessors method to return a different set of fields from the database.
- Define an IDEnumerator method that has a return field that represents the last update time of e database.
nswer: D
uestion: 29
our Microsoft SQL Server 2005 database contains client records. You create a Business Data
atalog (BDC) definition that allows you to view the client information. You create a Web Part that
splays a map of the location of the selected client. You need to ensure that you can create astom action to link to the Web part. Which two actions should you perform? (Each correct
swer presents part of the solution. Choose two.)
- Define a filter on the Client entity.
- Declare an identifier for the Client entity.
- Define a Finder object on the Client entity.- Define a SpecificFinder object on the Client entity.
nswer: B, D
uestion: 30
he application stores information about books in a Microsoft SQL Server 2005 database table
med Books.
ou need to retrieve all the book names from the Books table.hich XML fragment should you use?
- <Entity Name=” GetBooks “>Properties>
Property Name=”Title” Typet” System.String “>
ooksProperyy>
Property Name=” DefaultAction “ Type=” System.String “>ELECT * FROM Books
Property>
Properties>Entity>
- <Method Name=” GetBooks “>
Properties>Property Name=” RdbCommandText”
ype=” System.String “> SPGetBooks </Property>
Property Name=” RdbCommandType”
ype=” System.String “> StoredProcedure </Property>Properties>
Additional information goes here -->
Method>
8/3/2019 393__70-542 qa55
http://slidepdf.com/reader/full/39370-542-qa55 15/27
Copyrights 2005-2006 TestKingonline All Rights Reserved.
Methods>- <Parameter Direction=”In” Name=” GetBooks “>
TypeDescriptor Name= CommandText” TypeName System.String “”
entifierName =SELECT * FROM Books” />
TypeDescriptor TypeName =“System.Int32” IdentifierName =“Books”ssociatedFilter =“ID” Name=” Bookld “/>Parameter>
- <Action Name=” GetBooks” Position=”1”>
ActionParameters>
ActionParameter Name=” CommandText” Index=”0”>ELECT * FROM Books
ActionParameter>
ActionParameter Name=” CommandType Index=”0”>QLQuery
ActionParameter>
ActionParameters>Action>
nswer: B
uestion: 31
ou are creating a Microsoft Office SharePoint Server 2007 site. The site contains content that is
evant to members of the DOMAIN\Developers security group. You need to ensure that the
ntent is targeted to members of the Developers group. What should you do?
- Create an audience that is based on the DOMAIN\Developers group.
- Create a site group that has the DOMAIN\Developers group as a member.
- Apply a filter to the lists to display only members of the DOMAIN\Developers group.- Create a custom Web Part that verifies the membership of the DOMAIN\Developers groupd displays the content of the Tasks list only to members of that group.
nswer: A
uestion: 32
ou are creating a Microsoft Office SharePoint Server 2007 site.
he site has five audiences. A user might belong to more than one of the five audiences.
ou need to obtain a list of audience names for the current user.hich code segment should you use?
- private void ListAudienceNames()
udienceLoader al = AudienceLoader.Get4udienceLoader();udienceManager am = am.CurrentServerContext;
rrayList audiences = al.GetUserAudiencelDs(true);
reach (object audience in audiences)
8/3/2019 393__70-542 qa55
http://slidepdf.com/reader/full/39370-542-qa55 16/27
8/3/2019 393__70-542 qa55
http://slidepdf.com/reader/full/39370-542-qa55 17/27
Copyrights 2005-2006 TestKingonline All Rights Reserved.
stem.Web.HttpContext.Current.Response.WriteAudience: “ + a.AudienceName);
} … }
nswer: B, D
uestion: 33
ou are creating a Microsoft Office SharePoint Server 2007 site. An audience named Purchasing
ntains all the users in a Microsoft Active Directory group.ou need to display the name of each member of the audience.
hich code segment should you use?
- AudienceManager audManager = new AudienceManager();
udience aud = audManager.Audiences[“Purchasing”];rrayList members aud.GetMembership();
reach (object obj in members) {
serlnfo user = (Userlnfo)obj;stem.Web.Httpcontext.Current.Response.Write(”User {0}” + user.PreferredName);
- AudienceManager audManager = new AudienceManager();udienceCollection members = audManager.Audiences;
reach (Audience obj in members) {
ing user =
stem.Security.Principal.Windowsldentity.GetCurrent().Name;(obj.lsMember(user))
stem.Web.HttpContext.Current.Response.Write(”User (0)” + user);
- AudienceManager audManager = new AudienceManagerudienceCollection audCol = audManagerAudiences;udience aud = audManager.Audiences[”Purchasing”];
rrayList members = aud.GetMembership();
reach (object obj in audCol) {serinfo user = (Userlnfo)members[audCol.Count];
stem.Web.HttpContext.Current.Response.Write(”User (0)” +
er.PreferredName);
- Audience_List members = new Audience_List();
udienceManager audManager = new AudienceManager();
udience aud = audManager.Audiences[”Purchasing”];embers.GetData();
embers.DataBind();
nswer: A
uestion: 34
ou create an application for a Microsoft Office SharePoint Server 2007 server. You need to write
8/3/2019 393__70-542 qa55
http://slidepdf.com/reader/full/39370-542-qa55 18/27
Copyrights 2005-2006 TestKingonline All Rights Reserved.
de that retrieves all users for an audience named Audience1. Which code segment should youe?
- AudienceManager audMgr = new AudienceManager();
udienceCollection audiences = audMgr.Audiences;
udience audiencel = audiences[”Audience1”],- AudienceManager audMgr = new AudienceManager();rrayList membershipList =
dMgr.Audiences[”Audience1“].GetMembership();
- AudienceManager audMgr = new AudienceManager();udienceCollection audience1 = audMgr.Audiences;
- SPSite site = new SPSite(”http: //servername//sites/site1 “);
rverContext context = Serve rContext.GetContext(site);udienceManager audMgr = new AudienceManager(context);
PWeb web = site.AIlWebs[0];
rrayList audienceIDNames =dMgr.GetUserAudiencelDs(”Audiencel “, true, web);
nswer: B
uestion: 35
ou create a Microsoft Office SharePoint Server 2007 site. You create a list named Projects that
cludes a column named TargetAudience. You create a Web Part that displays information from
e Projects list. You need to target items in the Projects list to the audience specified by the
lue in the TargetAudience column. What should you do?
- Use an Audience Picker object to select the specified audience.- Use an Audience Manager object to ascertain the audience membership.
- Use a SPRole Assignment object to associate users with the Projects list.- Use an Audience Rule Component object to specify the conditions for audience membership.
nswer: B
uestion: 36
ou create a Microsoft Office SharePoint Server 2007 portal site. The site contains a document
tention policy for request for proposal (RFP) documents. You need to customize the policy to
sure that a notification is sent to each project manager when the RFP date expires. Whatould you do?
- Implement a custom lPolicyFeature.OnCustomDataChange method that generates an e-mail
essage.
- Implement a custom IPolicyFeature.ProcessListltemOnRemove method that generates an email
essage.- Create a document retention workflow that monitors the expiration date of RFP documents
d generates an e-mail message.
- Extend the built-in policy feature definition to use a custom policy resource expiration actionat generates an e-mail message.
8/3/2019 393__70-542 qa55
http://slidepdf.com/reader/full/39370-542-qa55 19/27
Copyrights 2005-2006 TestKingonline All Rights Reserved.
nswer: D
uestion: 37
our company uses a portal site template to recreate site hierarchies. You need to add additional
es to the hierarchy that is defined in the portal site template. What should you do?
- In the Webtempt.xml file, add a Template element that contains the site definitions for the
w sites.
- Add additional Web elements to the XML definition file of the portal site template.- Add additional Webtemp*.xml files to C:\Program Files\Common Files\Microsoft Shared
ebug\Web Server Extensions\12\TEMPLATE\1033\XML.
- Update an existing site to include the new hierarchy and create a new site template on thete Settings page.
nswer: B
uestion: 38
ou install a Microsoft Office SharePoint Server 2007 server. The server contains three sitellections. One site collection uses both English and Turkish language variations. You need to
direct a user to the selected language page. You also need to ensure that the language settingsr other site collections remain unaffected. Which two files should you customize for the site
llection? (Each correct answer presents part of the solution. Choose two,)
- VariationLogs.aspx
- VariationsLabelMenuascx
- VariationsRootLanding.ascx- PublishingContentTypes.xml
- VariationRootPageLayout.aspx
nswer: C, E
uestion: 39
ou have two Microsoft Office SharePoint Server 2007 site collections names Staging andoduction. The Staging site collection runs on Server A. The Production site collection runs on
rver B.
rver A and Server B are located on separate networks.ou need to write a script that replicates content from the Staging site collection to the Production
e collection.
hat should you do?
nswer:
uestion: 40
ou are deploying a Microsoft Office SharePoint Server 2007 hierarchy of sites from avelopment environment to a staging environment on the same serverfarm. The development
e hierarchy contains a corporate intranet site and departmental sites. Each departmental site
ntains subsites. You need to recreate the hierarchy of development sites in the stagingvironment. What should you do?
8/3/2019 393__70-542 qa55
http://slidepdf.com/reader/full/39370-542-qa55 20/27
Copyrights 2005-2006 TestKingonline All Rights Reserved.
- Create and implement a site template.- Create and implement a portal site template.
- Create an empty site collection on the server farm and use Page Publishing to duplicate
ges.- Create copies of the site definition files, page layouts, master pages, and Web Part
semblies for each site to be created.
nswer: B
uestion: 41
ou are creating a Microsoft Office SharePoint Server 2007 site. A document library contains
cuments on new products. The documents must contain a label that denotes the productatus. You need to add a label to all documents in the library. What should you do?
- Modify Variation Labels from the Site Collection Administration page.- Start an approval workflow each time a new document is added to the library.
- Modify the document template for the existing document library to include the label.
- Create an Information Management Policy feature for the document library that enforces labeleation.
nswer: D
uestion: 42
ou are creating a Microsoft Office SharePoint Server 2007 site. You have a document library
at is subject to an audit. You need to prevent relevant records from expiring during an ongoing
dit. What should you do?
- Enable Record routing on the related Records Center site.
- Create a hold for the audit and add all relevant documents.- Remove all users of the document library from the data reader role on the site configuration
tabase.
- Create an Information Management Policy feature that tracks audit information. Attach thelicy to the document library.
nswer: B
uestion: 43
our company has a Microsoft Office SharePoint Server 2007 farm. The farm contains two sitellections named Draft and Production Ready. You configure the farm to deploy content
crementally from the Draft site collection to the ProductionReady site collection. You need to
sure that the content authors have a higher priority for pages that they deploy to the
oductionReady site collection. What are two possible ways to achieve this goal? (Each correctswer presents a complete solution. Choose two.)
- Add the content authors to the Administrators site group.
- Add the content authors to the Quick Deploy site group.
- Execute the QuickDeploy method of the PublishingPage object that references the pages of e content authors.
8/3/2019 393__70-542 qa55
http://slidepdf.com/reader/full/39370-542-qa55 21/27
Copyrights 2005-2006 TestKingonline All Rights Reserved.
- Set the Audience property of the PublishingPage object for the pages of the content authorsan audience that contains the content authors.
nswer: B, C
uestion: 44
ou create a Microsoft Office SharePoint Server 2007 site.
ou are creating a custom field control that displays a video.
he custom field must perform the following tasks:ender the control properly when the page is in display mode.
nable a user to select an appropriate video for display when the page is in edit mode.
ou need to ensure that the custom field meets the outlined requirements.hich two actions should you perform? (Each correct answer presents part of the solution.
hoose two.)
- Create a field control that inherits from the RichLinkField class.
- Create a field control that inherits from the BaseRichSelector class.
- Create a field control that inherits from the SummaryLinkField class.- Create a field control that inherits from the RichTextHighlightTextbox class.
nswer: A, B
uestion: 45
ou create a Microsoft Office SharePoint Server 2007 site that contains a document library
med Reports. You create a Web Part that displays an audit trail for each document in the
eports library. You need to audit the dates and types of each document that was printed by aecific user. Which two actions should you perform? (Each correct answer presents part of the
lution. Choose two.)
- Implement the IRouter interface.
- Implement the IPolicyFeature interface.
- Implement the IProfileEventlnterface interface.- Install a valid Policy Feature Definition into the Policy Feature Definition list.
- Install a valid Policy Resource Definition into the Policy Feature Definition list.
nswer: B, D
uestion: 46
ou create a Microsoft Office SharePoint Server 2007 Search Center site. The site has a custom
b that restricts users to a Business Data Connector for a Product tracking system.
ou need to restrict the data displayed to items from the custom columns named ProductName,
oductNumber, and ProductColor.hat should you do?
- Create a scope rule named contentclass in the Products scope for each required column that
mits the results to the required items.
- Replace the contents of the Selected Columns field in the Search Core Results Web Partth the following XML fragment.
8/3/2019 393__70-542 qa55
http://slidepdf.com/reader/full/39370-542-qa55 22/27
Copyrights 2005-2006 TestKingonline All Rights Reserved.
oot xmlns:xsi =“http: //www.w3.org/200l/XMLSchema-instance”>SelectColumns>
Column Name=” ProductName “/>Column Name=” ProductNumber “/>
Column Name=” ProductColor “/>SelectColumns>root>
- Edit the XSLT style sheet that renders the Search Core results Web Part and add the
llowing XML fragment.
class=” srch -Metadata”>sl:call -template name=” DisplayString “>
sl:with-param name=” str” select=” ProductName “/>
sl:with-param name=” str” select=” ProductNumber “/>sl:with-param name=” str” select=” ProductColor “/>
xsl:call -template>p>
- Implement the following SQL query in the field named Fixed Keyword Query in the Search
ore results Web Part properties.
ELECT ProductName ProductNumber ProductColor FROM scope() WHERE “scope” =roducts’
nswer: B
uestion: 47
ou are creating a Microsoft Office SharePoint Server 2007 Web application that references a
usiness Data Catalog (BDC) definition for a customer relationship management (CRM) system.
ou need to ensure that users can perform a keyword search on the CRM information from theiry Site page. What should you do?
- Provide users with a parent data related list Web Part for the BDC.
- Provide a custom search Web Part that is restricted to a BDC-specific search scope.- Create a business data item Web Part that is restricted to the selected keyword of the user.
- Create a targeted tab on a Search Center site and target the search results at the My Site
ge of the users.
nswer: B
uestion: 48ou are creating a Microsoft Office SharePoint Server 2007 application to increase the searchpability of five site collections that belong to a single farm. You need to retrieve all available
arch contexts for the Web site collection on which the application is initiated.
hich code segment should you use?
- string strSite = “http: //yourSiteName” SearchContext
chContext = SearchContext.GetContext(new SPSite(strSite));
8/3/2019 393__70-542 qa55
http://slidepdf.com/reader/full/39370-542-qa55 23/27
Copyrights 2005-2006 TestKingonline All Rights Reserved.
- SearchContext srchContext = SearchContext.etContext(ServerContext.Current);
- SearchService searchservice = new
archService(”Search_SSPS , SPFarm Local);archContext srchContext = SearchContext.
etContext(searchserivce.Id.ToString());- WASearchWebService1.SPSSearchWS.QueryService searchWebServicew WASearchWebService1.SPSSearchWS.QueryService();
archWebService.Url = “http:// myportal”;
archContext srchContext = SearchContext.GetContext(new
PSite(searchWebService.ToString));
nswer: B
uestion: 49
ou are creating a Microsoft Office SharePoint Server 2007 Web Part.ou write the following code segment. (Line numbers are included for reference only.)
public Button cmdcrawl;
protected override void CreateChildControls(){
cmdCrawl = new Button();
cmdCrawl.Click += new EventHandler(cmdCrawl_Click);cmdCrawl.Text = “Update Index”;
}
public void cmdcrawl_Click(object sender, EventArgs e){
Microsott.Office.Server.Search.Administration.Content sspContent =
new Microsoft.Office.Server.Search.Administration.Content
(SearchContext.Current);…
}ou need to ensure that the Web Part initiates a search crawl of a scope named Patents.
hich code segment should you insert at line 13?
- ContentSourceCollection sspContentSources =
pContent.ContentSources;ontentSource cs = sspContentSources[”Patents”];
StartFullCrawl();
- ContentSourceCollection sspContentSources =
pContent.ContentSources;ri TargetScope = new
ri(”http: //mypontal/SearchCenter/Search.aspx/Scope=Patents”);
pContentSources.Update(TargetScope);- ContentSourceCollection sspContentSources =
pContent.ContentSources
awlMappingCollection crawimappings =pContentsources.Parent.CrawlMappings;
8/3/2019 393__70-542 qa55
http://slidepdf.com/reader/full/39370-542-qa55 24/27
Copyrights 2005-2006 TestKingonline All Rights Reserved.
ri ResultsPage = new Uri(this.Context.ToString());ri TargetScope = new
ri(”http: //myportal/SearchCenter/Search.aspx/Scope=Patents”);
awlmappings.Create(ResultsPage, Targetscope);- ContentSourceCollection sspcontentsources =
pContent.ContentSourcesontentSource cs = sspContentSources[”Patents”]Update();
nswer: A
uestion: 50
ou create a Microsoft WinForms application that allows you to search within a Microsoft Office
arePoint Server 2007 site collection.
ou write the following code segment.
PSSearchWS.QueryService searchWS = newPSSearchWS.QueryService();
ing query = “My_Query
ou need to bind a DatasridView control directly to a query result set.hich code segment should you use?
- dataGridView1.DataSource = searchWS.QueryEx(query);
- dataGridView1.DataSource = searchWS.Query(query);
- FullTextSqlQuery sqlQuery = new FullTextSqlQuery(new
PSite(searchWS.Url));lQuery.ResultTypes = ResultType.RelevantResults;
louery.QueryText = query;
esultTableCollection results = sqlQuery.Execute
taGridView1.DataSource = results;- kRequest.QueryText = query;
Request.ResultTypes | = ResultType.RelevantResults;
esultTableCollection results = kRequest.Execute();
taGridView1DataSource = results;
nswer: A
uestion: 51
ou are creating a Microsoft Office SharePoint Server 2007 application that uses the Searchrvice. You need to ensure that the search results are based on an existing ke’yword. Which
de segment should you use?
- private void keywordQueryExecute(string strQueryText) {
eywordOuery kRequest =w KeywordQuery(ServerContext.Current);
Request.QueryText = strQueryText
Request.ResultTypes |= ResultType.RelevantResults;
8/3/2019 393__70-542 qa55
http://slidepdf.com/reader/full/39370-542-qa55 25/27
Copyrights 2005-2006 TestKingonline All Rights Reserved.
esultTableCollection resultTbls = kRequest.Execute();}
- private void keywordQueryExecute(string strQueryText)
eywordQue kRequest =w KeywurdQuery(ServerContext.Current);
Request.QueryText =ELECT * FROM scope() WHERE keyword =“ + strQueryText;Request.ResultTypes |= ResultType.RelevantResults;
esultTableCollection resultTbls = kRequest.Execute();
}
- private void keywordQueryExecute(string strQueryText) {
eywordouery kRequest =
w KeywordQuery(ServerContext.Current);Request.QueryText =
ELECT * FROM scope(” + strQueryText + “)”;
Request.ResultTypes |= ResultTypeRelevantResults;esultTableCollection resultTbls = kRequest.Execute();
}
- private void keywordQueryExecute(string strQueryText) {
eywordQuery kRequest =
w KeywordQuery(ServerContext.Current);RequestQueryText =
ELECT “ + strQueryText +“ FROM scope()”;Request.ResultTypes |= ResultTypeRelevantResults;
esultTableCollection resultTbls = kRequest.Execute
}
nswer: A
uestion: 52
ou are customizing a Search Center Web site on a Microsoft Office SharePoint Server 2007 sitellection. You add a new column named CompletionDate to your search results. You need to
sure that the search terms entered by users appear highlighted in the CompletionDate column.
hat should you do?
- Create a managed property named CompletionDate in Shared Services Provider (SSP).
- Set the QueryBoxPromptString propertyof the Search BoxWeb Partto CompletionDate.- Add a section in the XSLT style sheet of the Search Core Results Web Part that uses the
tHighlighting template.
- Add an XML node for the CompletionDate column that includes a HitHighlighted attribute ine Selected Columns property of the Search Box Web Part.
nswer: C
8/3/2019 393__70-542 qa55
http://slidepdf.com/reader/full/39370-542-qa55 26/27
Copyrights 2005-2006 TestKingonline All Rights Reserved.
uestion: 53
ou are modifying a Microsoft Office SharePoint Server 2007 Search Center site. You create a
stomized XSLT style sheet to change the appearance of ten Search Core results Web Parts on
parate site tabs. You need to ensure that the Web Parts use the new style sheet. What are twossible ways to achieve this goal? (Each correct answer presents a complete solution. Choose
o.)
- Copy and paste the style sheet in the XSLT editor of each result set for the Web Parts on
ch tab.
- Modify the Theme.css file in the SharePoint Server 2007 Search Center site to refer to thew style sheet.
- Modify the Onet.xml file in the SharePoint Server 2007 Search Center site to refer to the new
yle sheet.- Publish the XSLT style sheet to a shared location. Update the XSLT Link property of the Web
rts to point to the URL of the style sheet document.
nswer: A, D
uestion: 54
ou create a search center site for your Microsoft Office SharePoint Server 2007 portal. You
ed to display a new column named CompletionDate on a Search Core Results Web Part.hich two steps should you perform? (Each correct answer presents part of the solution. Choose
o.)
- Add CompletionDate to the Additional Query Terms property on the Search Box Web Part.
- Add a section in the XSLT style sheet of the Search Core Results Web Part to process the
ompletionDate column.- Add a managed property entry in Enterprise Search Administration for items that have the
ompletedDate property.- Update the Selected Columns property of the Search Core Results Web Part to include thellowing text: <Column Name=”CompletionDate”/>
nswer: B, D
uestion: 55
ou are making changes to a Microsoft Office SharePoint Server 2007 Search Center Web site
at uses a fixed keyword query. You need to make changes to the text that is displayed when aarch fails to return a result. What should you do?
- Moditq the dvt_1 body template to display the new text when the value of the DisplaySize
operty is zero.
- Modify the default text in the dvt_1 empty template to the new text in the Search Core Results
eb Part on the results page.- Modify the default text in the dvt_1 .noKeyword template to the new text in the Search Core
esults Web Part on the results page.
- Modify the Import Error Message property of the Search Core Results Web Part of the resultsge to include the new text when the Web Part does not import any results from the search
8/3/2019 393__70-542 qa55
http://slidepdf.com/reader/full/39370-542-qa55 27/27
rvice.
nswer: B