PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

What are two possible ways to achieve this goal?

Your company has a Microsoft Office SharePoint Server 2007 farm. The farm contains two site collections named Draft and ProductionReady. You configure the farm to deploy content incrementally from the Draft site collection to the ProductionReady site collection. You need to ensure that the content authors have a higher priority for pages that they deploy to the ProductionReady site collection. What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)

Which code segment should you use?

You are using the Microsoft Visual Studio 2005 IDE to examine the output of a method that returns a string. You assign the output of the method to a string variable named fName.

You need to write a code segment that prints the following on a single line

The message: “Test Failed: “
The value of fName if the value of fName does not equal “John”

You also need to ensure that the code segment simultaneously facilitates uninterrupted execution of the application. Which code segment should you use?

Which component type should you choose?

You are an enterprise application developer. A Web-based application manages the employee information in your company. A rapid increase in the number of employees renders scalability difficult. You must suggest a component strategy that permits the application to scale as the number of employees grows.
The component must implement the following application features:

It resides completely behind a company firewall.
It has complex transactional and auditing requirements. It operates across multiple servers within the company. It provides runtime identity services for each employee.

You need to choose a component type that implements these features in a scalable manner. You need to achieve this goal by using the least coding effort. Which component type should you choose?

What should you do?

You create an audience named “Sales” that contains one rule. You plan to add a second rule that contains an “or” condition. You write the following code segment.

01: Using objSite as SPWeb = New SPSite(“http://internet”).OpenWeb()
02:
03: Dim AM as New
AudienceManager(Microsoft.Office.Server.ServerContext.GetContext(objSite.site())
04: Dim Sales as Audience = AM.GetAudiences(“Sales”)
05:
06: Dim R1 as New AudienceRulesComponent(Nothing, “OR”, Nothing)
07: Sales.AudienceRules.Add(R1)
08: Dim R2 as New AudienceRulesComponent(“AccountName”, “Contains”, “Sales”)
09: Sales.AudienceRules.Add(R2)
10: Sales.Commit()
11:
12: End Using

You run the code in your development environment. You notice that the second rule is not created. You need to ensure that both rules are created when you run the code in the production environment.

What should you do?

Which code segment should you use?

You are creating a class that performs complex financial calculations. The class contains a method named GetCurrentRate that retrieves the current interest rate and a variable named currRate that stores the current interest rate. You write serialized representations of the class. You need to write a code segment that updates the currRate variable with the current interest rate when an instance of the class is deserialized.
Which code segment should you use?

What should you choose?

You are an enterprise application developer. You are developing several Web services that are accessed by smart client applications. The Web services might be installed on different Web servers. The smart client applications must authenticate users by using credentials issued by a single sign-on service. The single sign-on service was developed by a different group in your organization.
The security policy of the application includes the following requirements:

User identity must be transmitted across application boundaries. User identity must be logged for auditing purposes.

You need to choose a strategy to propagate user information securely across the application boundaries.
What should you choose?

Which code segment should you use?

You have an SQL query that takes one minute to execute. You use the following code segment to execute the SQL query asynchronously.

IAsyncResult ar = cmd.BeginExecuteReader();

You need to execute a method named DoWork() that takes one second to run while the SQL query is executing. DoWork() must run as many times as possible while the SQL query is executing.
Which code segment should you use?