What should you recommend?
You are an enterprise application developer. You create a Microsoft Windows client application that communicates with a business layer component. The business layer component contains the following class, named Utility.
public class Utility
{
public Utility()
{
}
public void ChangeData()
{
}
}
The application must fulfill the following criteria:
* Instances of the Utility class must be created only within the business component.
* The Windows client application must be able to invoke the functions inside the Utility class.
You review the code for the Utility class and decide it requires modification. You need to recommend modifications for the code.
What should you recommend?
What should you do?
What should you do?
You are creating A5P.NET applications by using the .NET Framework 3.5.
The application uses the DataSet and DataAdapter classes to retrieve and update data. Data can be stored in Microsoft SQL Server 2008 databases or in Microsoft Access databases.
You are designing a strategy that allows the application to function appropriately regardless of the database management systems used.
You need to implement the strategy by using the minimum amount of development effort.
What should you do?
Which approach should you choose?
You are an enterprise application developer. You are creating a component that stores employee details in a Microsoft SQL Server database. The component is implemented as a class. The class includes the public properties ID and Name. The class does not contain static methods. Both the ID field and the Name field are required in the Employee table of the database. Serialized instances of the class can be returned by XML Web services. You need to ensure that the class supports XML serialization. You also need to minimize the possibility of a developer creating a class instance by using partial data.
Which approach should you choose?
What should you do?
You are assigned only the Global Administrator role for the PerformancePoint Server. A user named User1 is assigned a Modeler role for a model. You add a domain user account named User2 to the user list on the PerformancePoint Server. You need to ensure that User2 is a member of an existing business role for the model. What should you do?
Which data source control should you use?
You are creating ASP.NET applications by using the .NET Framework 3.5.
You plan to evaluate an application design that has the following specifications:
– Data is stored in a Microsoft SQL Server 2008 database.
– Data is retrieved by using a DataContext object.
– Data is displayed by using GridView controls.
You need to choose an appropriate data source control that can be used in the design of the application.
Which data source control should you use?
What should you do?
You are an enterprise application developer. You are creating a component that encapsulates database access to an employee table. The component contains a method that retrieves an employee record by using a string input parameter.
You need to respond to error conditions in a way that meets the following requirements:
* If the caller passes a variable that fails to reference a string object, the caller receives an error notice.
* If the caller fails to respond to the error notice, the error condition forcefully alters the flow of execution.
* If the error occurs on the main thread, the application is terminated.
What should you do?
What should you do?
You need to create an assignment business rule that is based on an existing allocation rule. What should you do?
What is the result of the query?
You are creating an ASP.NET application by using Microsoft .NET Framework 3.5.
The application is a library application that catalogs subjects and books. The application contains
“A Composite Solution With Just One Click” – Certification Guaranteed 45 Microsoft 70-564 Exam
a DataContext object named Subjects and a related line of business object named Books.
The Subjects DataContext object is queried by using the following LINQ query.
var query =
Iroro subject in Subjects
where ‘. ( subject.Books
.All(b => b.Price < = 25 && price >= 20))
select subject;
You need to find out the results that will be returned from the query.
What is the result of the query?
Which two actions should you perform?
You are an enterprise application developer. You create a component that uses unmanaged resources. You need to ensure that the component permits client developers to release the unmanaged resources as soon as they are no longer needed. You also need to guarantee that unmanaged resources are always released, even if a client developer fails to release them.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)