PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which connection string should you add to the app.config file?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. You
use the ADO.NET Entity Framework to model your entities. The application connects to a Microsoft
SQL Server 2008 database named Adventure Works by using Windows Authentication. Information
about the required Entity Data Model (EDM) is stored in the following files:
• model.csdl
• model.ssdl
• model.msi
These files are embedded as resources in the MyCompanyData.dll file. You need to define the
connection string that is used by the application. Which connection string should you add to the
app.config file?

Where should you install the trusted publisher certificate?

You are developing a Windows Presentation Foundation (WPF) application by using
Microsoft .NET Framework 4 and Microsoft Visual Studio 2010. The application will run in a
partially trusted sandbox. You plan to deploy the application on client computers by using
the ClickOnce deployment technology. You plan to sign the deployment and application
manifest by using a trusted publisher certificate. You need to ensure that the following
requirements are met: • Users are not prompted for elevated permissions during application
deployment. • The application can request elevated permissions at runtime. Where should
you install the trusted publisher certificate?

Which two actions should you perform?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Wmdows
Communication Foundation (WCF) Data Services service. The service connects to a Microsoft SQL
Server 2008 database. The service is hosted by an internet Information Services (IIS) 6.0 server. You
need to ensure that applications authenticate against user information stored in the database
before the application is allowed to use the service. Which two actions should you perform? (Each
correct answer presents part of the solution. Choose two.)

Which code segment should you insert at line 02?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Forms
application. You plan to deploy the application to several shared client computers. You write the
following code segment. (Line numbers are included for reference only.)
01Configuration config = ConfigurationManager.OpenExeConfiguration(exeConfigName);
02
03config.Save();
04…
You need to encrypt the connection string stored in the .config file.
Which code segment should you insert at line 02?

You need to ensure that the Productlmage field is retrieved from the database only when it is needed by the ap

You use Microsoft .NET Framework 4 to develop an application that uses LINQ to SQL. The Product
entity in the LINQ to SQL model contains a field named Productlmage. The Productlmage field holds
a large amount of binary data. You need to ensure that the Productlmage field is retrieved from the
database only when it is needed by the application. What should you do?

You need to design a solution to resolve the problem

You have developed a Windows application by using Microsoft .NET Framework 4,
Windows Presentation Foundation (WPF), and Microsoft SQL Server 2008. The application
is deployed as an XAML Browser Application (XBAP) and executes in the Internet Zone in
Internet Explorer. The application updates data in a SQL Server 2008 database. Users
report that a SecurityException exception occurs when the application attempts to save data
to the database. You need to design a solution to resolve the problem. What should you do?

Which two actions should you recommend?

You are designing an ASP.NET Web application that will queue e-mail messages in a
database. A Windows service will process the queue and send the messages. The Web
application will be hosted on a server that hosts several other applications. The server
cannot support additional processors or memory. You estimate that the Web application
usage will increase by 10 percent every month. You need to ensure that the delivery of
high-priority messages will not be delayed as the Web application usage increases. Which
two actions should you recommend? (Each correct answer presents part of the solution.
Choose two.)

You need to resolve the error

You create a Web Part that contains the following logging code. (Line numbers are included for
reference only.) 01 SPWeb web = SPContext.Current.Web; 02 try 03 { 04 05 } 06 catch
(Exception ex) 07 { 08 09 System.Diagnostics.EventLog.WriteEntry(“WebPart Name”, (“Exception
Information: ” + ex.Message), EventLogEntryType.Error); 10 } You discover that line 09 causes an
error. You need to resolve the error. What should you do?

You need to configure the DNS system in the Contoso forest to provide name resolution for resources in both fo

Contoso Ltd. has a single Active Directory forest that has five domains. Each domain has two DNS
servers. Each DNS server hosts Active Directory-integrated zones for all five domains. All domain
controllers run Windows Server 2008 R2. Contoso acquires a company named Tailspin Toys. Tailspin
Toys has a single Active Directory forest that contains a single domain. You need to configure the
DNS system in the Contoso forest to provide name resolution for resources in both forests. What
should you do?