You need to ensure that both applications can use the common utility assembly without any security-related exc
You are upgrading a stand-alone Windows Presentation Foundation (WPF) application and
an XAML browser application (XBAP) to Microsoft .NET Framework 4. You plan to add
.NET 4 types and members to both applications. Both applications consume a common
utility assembly that modifies files on a local file system. The utility assembly requires full
trust. You need to ensure that both applications can use the common utility assembly
without any security-related exceptions. What should you do?
Which approach should you recommend?
You are designing an ASP.NET MVC 2 Web application for a customer’s extranet site. You
need to allow only requests that originate from the customers intranet IP address range to
access the application, and you must redirect other access requests to the customers Web
site. Which approach should you recommend?
Which approach should you recommend?
You are designing a SharePoint 2010 solution to manage statements of work. You need to
design the solution according to the following requirements: ·Store the customer ID,
purchase order number, estimated completion date, and other fields associated with specific
documents as they are uploaded. .The information must be created so that it can be set
within the Microsoft Word document information panel. .Programmatically execute a series
of tasks, including assigning tasks to validate the information and creating team sites, based
on information related to each document. .These tasks must run to completion, even if the
server is rebooted. Which approach should you recommend?
Which two XML element types should you use?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The
application connects to a Microsoft SQL Server database. You use Entity SQL of the ADO .NET Entity
Framework to retrieve data from the database. You need to define a custom function in the
conceptual model. You also need to ensure that the function calculates a value based on properties
of the object. Which two XML element types should you use? (Each correct answer presents part of
the solution Choose two.)
You need to ensure that all Contractors are bound to the Contractor class
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The
application connects to a Microsoft SQL Sever 2008 database. The database includes a table that
contains information about all the employees. The database table has a field named EmployeeType
that identifies whether an employee is a Contractor or a Permanent employee. You declare the
employee entity base type. Yo create a new Association entity named Contractor that inherits the
Employee base type. You need to ensure that all Contractors are bound to the Contractor class.
What should you do?
What should you create?
You are designing a Windows client application by using Microsoft .NET Framework 4 and
Microsoft Visual Studio 2010. The application will read and write data that is stored in a
mainframe application. A hardware device that is located between the application and the
mainframe removes all XMLformatted messages. You need to ensure that the application
can request and receive data from the mainframe application. What should you create?
You need to provide the site administrator with the ability to change the out-of- the-box search control to My
You create a user control named MySearch.ascx. You plan to change the native search control in
SharePoint to MySearch.ascx. You need to provide the site administrator with the ability to
change the out-of- the-box search control to MySearch.ascx. What should you do?
Which method should you call before persisting changes?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application.
Theapplication uses the ADO.NET Entity Framework to model persistence-ignorant entities. The
applicationoperates in a disconnected mode. You need to ensure that changes made to local entities
while the application is in the disconnected mode are correctly persisted. Which method should you
call before persisting changes?
Which type of resource record should you create?
You need to create a sender policy framework (SPF) record for the e-mail servers on your network.
Which type of resource record should you create?
Which code segment should you insert at line 11?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The
application connects to a Microsoft SQL Server database. You write the following code segment that
executes two commands against the database within a transaction. (Line numbers are included for
reference only.)
01 using (SqlConnection connection = new SqlConnection(cnnStr)) {
02 connection.Open();
03 SqlTransaction sqlTran = connection.BeginTransaction();
04 SqlCommand command = connection.CreateCommand();
05 command.Transaction = sqlTran;
06 try {
07 command.CommandText = “INSERT INTO Production.ScrapReason(Name) VALUES(‘Wrong
size’)”;
08 command.ExecuteNonQuery();
09 command.CommandText = “INSERT INTO Production.ScrapReason(Name) VALUES(‘Wrong
color’)”;
10 command.ExecuteNonQuery();
11
12 }
You need to log error information if the transaction fails to commit or roll back. Which code segment
should you insert at line 11?