What should you recommend?
You are designing an exception-handling strategy for an ASP.NET Web Forms application.
The Web application will use Windows authentication. The Web application must meet the
following requirements: • Display a user-friendly error message to user. • Display a detailed
error message to server administrators. You need to recommend an approach for handling
exceptions. What should you recommend?
Which approach should you recommend?
You are designing a SharePoint 2010 application that connects to an external Microsoft
SQL Server database. You have the following requirements: ·Server administrators can add
and edit connection strings at the Web application level. .SharePoint users must not be able
to view or modify sensitive data in the connection strings. .Server administrators can add or
change the connection strings declaratively with no custom UI required. .The connection
strings can be modified programmatically without redeploying code. You need to create a
plan to store connection strings for the database within the SharePoint system. Which
approach should you recommend?
You need to design the solution according to following requirements:
You are designing a SharePoint 2010 solution. Site administrators do not have direct
access to the file system on the Web servers. You need to design the solution according to
following requirements: ·It must contain a set of Web Parts that receive information from a
common collection of configuration dat a. .Site administrators must be able to modify the
configuration settings for individual sites using the standard SharePoint user interface
You need to ensure that Server1 can communicate with all computers on the network
Your network contains a server named Server1 that runs Windows Server 2008 R2. The network
contains multiple subnets. An administrator reports that Server1 fails to communicate with
computers on remote subnets. You run route.exe print on Server1 as shown in the exhibit. (Click the
Exhibit button.)
You need to ensure that Server1 can communicate with all computers on the network. What should
you do?
You need to ensure that all users can use the Web Part to update the description of the current site
You create a Web Part that programmatically updates the description of the current SharePoint
site. The Web Part contains the following code segment. (Line numbers are included for reference
only.) 01 RunWithElevatedPrivileges(EvelateSub) 02 Private Sub ElevatedSub() 03 Dim currSite
As SPSite = SPContext.Current.Site 04 Dim currWeb As SPWeb = SPContext.Current.Web 05
Using eSite As New SPSite(currSite.ID) 06 Using eWeb As SPWeb =
eSite.OpenWeb(currWeb.ID) 07 eWeb.AllowUnsafeUpdates = True 08 currWeb.Description =
“Test” 09 currWeb.Update() 10 eWeb.AllowUnsafeUpdates = False 11 End Using 12 End Using
Users report that they receive an Access Denied error message when they use the Web Part. You
need to ensure that all users can use the Web Part to update the description of the current site.
What should you do?
What should you recommend?
An existing ASP.NET Web application uses third-party server controls. The third-party
vendor releases a new version of the server controls. You need to recommend an approach
for testing whether the new versions of the server controls break the existing Web
application. What should you recommend?
Which approach should you recommend?
You are designing an application configuration approach for a custom SharePoint 2010
application. You need to design the application configuration to: ·Store and secure custom
configuration settings for the application including connection strings, server names, file
paths, and other miscellaneous settings. .Read and display the settings on the site with an
administrative user interface that can be configured using a custom _layouts page. .Store
configuration settings at the farm, Web application, site collection, and site levels as
needed. You need to design a storage option that is simple and lightweight in structure and
programmatically configurable. Which approach should you recommend?
You need to ensure that you can configure Server1 as a Network Address Translation (NAT) server
Your network contains a server named Server1 that runs Windows Server 2008 R2. Server1 has the
Remote Access Service role service installed. Server1 is configured as a VPN server. You need to
ensure that you can configure Server1 as a Network Address Translation (NAT) server. What should
you do first on Server1?
Which code segment should you add at line 13?
You create a Web Part that queries a list. The Web Part contains the following code segment.
(Line numbers are included for reference only.) 01Protected Overloads Overrides Sub
Render(ByVal writer As HtmlTextWriter) 02 Dim spInToken As SPUserToken =
GetTheContext(SPContext.Current.Site) 03 Using aSite As New SPSite(curSiteCtx.ID,
spInToken) 04 … 05 End Using 06 End Sub 07Private Function GetTheContext(ByVal nWeb As
SPSite) As SPUserToken 08 nWeb.CatchAccessDeniedException = False 09 Dim spToken As
SPUserToken = Nothing 10 Try 11 spToken = nWeb.SystemAccount.UserToken 12 Catch
generatedExceptionName As UnauthorizedAccessException 13 14 End Try 15 Return spToken
16End Function You need to ensure that users without permissions to the list can view the
contents of the list from the Web Part. Which code segment should you add at line 13?
What is the source of the problem?
You are designing a Windows Presentation Foundation (WPF) application by using
Microsoft .NET Framework 4 and Microsoft SQL Server 2008. The application runs
successfully on a local client computer by using your user account. You deploy the
database of the application to the production server. You configure the application
connection string to use the Windows Authentication mode. You deploy the application to
several client computers that use other applications on the network. The client computers
access different databases on the production server by using the Windows Authentication
mode. Users report that the application is not working and that they receive a database
connection exception. You need to identify the source of the problem. What is the source of
the problem?