Which approach should you recommend?
You are designing a SharePoint 2010 application to manage projects. The application has
the following requirements: ·Users must have access to the CreateProject.aspx page. .All
changes to the CreateProject.aspx page must be reflected on all project sites. You need to
design a page that can be accessed from each project site. Which approach should you
recommend?
Which line of code should you insert at line 10?
You use Microsoft .NET Framework 4 to develop an application that connects to a Microsoft SQL
Server 2008 database. You add the following table to the database.
CREATE TABLE ObjectCache (
Id INT IDENTITY PRIMARY KEY,
SerializedObjectData XML )
You write the following code segment to retrieve records from the ObjectCache table. (Line numbers
are included for reference only.)
01string s = GetConnectStringFromConfigFile(“xmldb”);
02using (SqlConnection conn = new SqlConnection(s))
03using (SqlCommand cmd = new SqlCommand(
04″select * from ObjectCache”, conn))
05{
06conn.Open();
07SqlDataReader rdr = cmd.ExecuteReader();
08while(rdr.Read())
09{
10
11DeserializeObject(obj);
12}
13}
You need to retrieve the data from the SerializedObjectData column and pass it to a method named
DeserializeObject. Which line of code should you insert at line 10?
Which two actions should you recommend?
You are designing a Windows Presentation Foundation (WPF) application that will be used
to display real-time data from a Microsoft SQL Server 2008 database. You need to
recommend an approach for displaying the data. Which two actions should you
recommend? (Each correct answer presents part of the solution. Choose two.)
Which node should you use to achieve this task?
HOTSPOT
Your network contains a server named Server1 that runs Windows Server 2008 R2. You configure
IPSec on Server1. You need to identify the total number of encrypted bytes sent and received by
Server1. Which node should you use to achieve this task? To answer, select the appropriate node in
the answer area.
Which code segment should you insert at line 06?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to develop an application
that uses the Entity Framework. You create the following Entity Data Model.
You write the following code. (Line numbers are included for reference only.)
01using (var context = new AdventureWorksLTEntities())
02{
03Customer cust = context.Customers.First();
04cust.CompanyName = “Contoso”;
05int count = 0;
06
07}
The changes to the cust entity must be saved. If an exception is thrown, the application must retry
the save 3 times. You need to add a code segment to meet the requirements. Which code segment
should you insert at line 06?
Which object should you use?
You plan to create a custom approval workflow. The workflow approvers will enter their employee
number in the edit task form. You need to ensure that the onTaskChangedl_Invoked method of
the workflow retrieves the value of the employee number. Which object should you use?
Which code segment should you use?
You use Microsoft .NET Framework 4 to develop an application that connects to a Microsoft SQL
Server 2008 database. The application contains the following code segment.
stringSQL=string.Format
(“SELECT*FROMCustomerWHERECompanyNameLIKE’%{0}%'”,
companyName);
varcmd=newSqlCommand(SQL,con);
You need to reduce the vulnerability to SQL injection attacks. Which code segment should you use?
Which technology should you recommend?
You are designing a Windows application. The application must meet the following
requirements: Provide three-dimensional views of data. Display images, text, graphs, and
videos. Support porting to a browser-based application. You need to recommend a
technology that meets the requirements. Which technology should you recommend?
You need to ensure that the Storage Schema Definition Language (SSDL) of the EDM can be modified without rebui
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to develop an application
that uses the Entity Framework. You create an Entity Data Model (EDM) named Model. You need to
ensure that the Storage Schema Definition Language (SSDL) of the EDM can be modified without
rebuilding the application. What should you do?
Which two actions should you recommend?
You are redesigning an existing three-tier ASP.NET Web application that is deployed to a
Web server, an application server, and a database server that runs Microsoft SQL Server
2008. Usage has increased significantly. The application has become slow and occasionally
times out. Health monitoring logs indicate that the data access logic on the application
server is consuming the majority of the CPU resources. You need to recommend an
approach for addressing the scalability and reliability issues. Which two actions should you
recommend? (Each correct answer presents part of the solution. Choose two.)