PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

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?

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 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.)