What should you create?
You are designing Windows Presentation Foundation (WPF) applications by using Microsoft
.NET Framework 4. You need to maintain a common appearance and behavior across all
applications in your company. You also need to ensure that the look and feel of the
applications can be modified without recompiling them. What should you create?
Which code segment should you use?
You use Microsoft .NET Framework 4.0 to develop an application that connects to a local Microsoft
SQL Server 2008 database. The application can access a high-resolution timer. You need to display
the elapsed time, in sub-milliseconds (<1 millisecond), that a database query takes to execute. Which
code segment should you use?
Which approach should you recommend?
You have a social networking site in SharePoint 2010 that allows users to post content for
all other users to view. Users have read-only access to documents that they did not upload
themselves. You are designing a way for users to easily flag content as objectionable so
that the site administrators can evaluate and remove this content as necessary. You need to
add this objectionable content functionality to all document libraries. Which approach should
you recommend?
You need to ensure that the adatum.com DNS zone is only replicated to DC5 and DC2
Your network contains an Active Directory domain named fabrikam.com. The domain contains five
domain controllers named DC1, DC2, DC3, DC4, and DC5. All domain controllers run Windows Server
2008 R2 and have the DNS server role installed. On DC5, you create a new Active Directoryintegrated DNS zone named adatum.com. You need to ensure that the adatum.com DNS zone is only
replicated to DC5 and DC2. The solution must ensure that all zone replication traffic is encrypted.
What should you do first?
Options are something like:
How do you define a WCF Data Service query to grab the first 10 records. Options are something
like:
Where should you define the workflow action?
Using Microsoft Visual Studio 2010, you create a custom workflow action named WF1 that copies
the content of a document library to another document library. WF1 is used in a Microsoft
SharePoint Designer reusable workflow. You need to ensure that the workflow action can be
deployed to multiple sites. Where should you define the workflow action?
Which of the following?
There are Entities – States Class, Cities class. Deleting of state id raises exception. Which of the
following?
What should you recommend?
You are designing a mission-critical Windows Presentation Foundation (WPF) application
that uses .NET Framework 4. You need to recommend an approach for identifying repair
and recovery time. What should you recommend?
Which approach should you recommend?
You are supporting an ASP.NET Web application. The Web application occasionally shuts
down unexpectedly in the production environment. You cannot reproduce the problem in
your local environment. You need to design a strategy to ensure that you can immediately
diagnose the problem without affecting the performance of the production environment.
Which approach should you recommend?
Which two actions should you perform?
You use Microsoft .NET Framework 4 to develop an application that connects to a Microsoft SQL
Server 2008 database. The database contains a ClassStudent table that contains the StudentID for
students who are enrolled in the classes.
You add the following stored procedure to the database.
CREATE PROCEDURE [dbo].[GetNumEnrolled]
@ClassID INT,
@NumEnrolled INT OUTPUT
AS
BEGIN
SET NOCOUNT ON
SELECT @NumEnrolled = COUNT(StudentID)
FROM ClassStudent
WHERE (ClassID = @ClassID)
END
You write the following code. (Line numbers are included for reference only.)
01 private int GetNumberEnrolled(string classID)
02 {
03 using (SqlConnection conn = new SqlConnection(GetConnectionString())
04 {
05 SqlCommand cmd = new SqlCommand(“GetNumEnrolled”, conn);
06 cmd.CommandType = CommandType.StoredProcedure;
07 SqlParameter parClass = cmd.Parameters.Add(“@ClassID”, SqlDbType.Int, 4,
“classID”);
08 SqlParameter parNum = cmd.Parameters.Add(“@NumEnrolled”, SqlDbType.Int);
09 …
10 conn.Open()
11 …
12 }
13 }
You need to ensure that the GetNumberEnrolled method returns the number of students who are
enrolled for a specific class.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose
two.)