PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

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

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The
application connects to a Microsoft SQL Server 2008 database. The application uses a Microsoft
ADO.NET SQL Server managed provider. When a connection fails, the application logs connection
information, including the full connection string. The information is stored as plain text in a .config
file. You need to ensure that the database credentials are secure. Which connection string should
you add to the .config file?

Which class should you use?

You are designing a Windows application by using Microsoft .NET Framework 4 and
Microsoft Visual Studio 2010. You plan to add a feature to the application. The application
will be used in several different locales. The application will send data to a centralized
server and log the date and time information. You need to ensure that the date and time
information includes the local Universal Time Coordinate (UTC) offset value. Which class
should you use?

You need to ensure that all the requested data is retrieved

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The
application connects to a Microsoft SQL Server database. The application uses the ADO.NET LINQ to
SQL model to retrieve data from the database. The application will not modify retrieved data. You
need to ensure that all the requested data is retrieved. You want to achieve this goal using the
minimum amount of resources. What should you do?

You need to determine the correct payload for each stage of the authentication process

DRAG DROP
You are converting an existing ASP.NET web application to use the Azure Active Directory (AD) Access Control
service for authentication. The application will authenticate users by using their Yahoo account credentials.
You need to determine the correct payload for each stage of the authentication process.
What should you do? To answer, drag the appropriate payload format to the correct location on the dialog
box. Each payload format may be used once, more than once, or not at all. You may need to drag the split bar
between panes or scroll to view content.

Which code segment should you insert at line 03?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The
application contains the following XML document.
< feed >
< title > Products < /title >
< entry >
< title > Entry title 1 < /title >
< author > Author1 < /title >
< content >
< properties >
< description > some description < /description >
< n otes > some notes < /notes >
< comments > some comments < /comments >
< /properties >
< /content >

< /entry >

< /feed >
You plan to add localization features to the application.
You add the following code segment. (Line numbers are included for reference only.)
01 public IEnumerable < XNode > GetTextNodesForLocalization(XDocument doc)
02 {
03
04 return from n in nodes
05 where n.NodeType == XmlNodeType.Text
06 select n;
0 7 }
You need to ensure that the GetTextNodesForLocalization method returns all the XML text nodes of
the document. Which code segment should you insert at line 03?

You need to ensure that all API calls perform consistently

A company creates an API and makes it accessible on an Azure website. External partners use the API
occasionally. The website uses the Standard web hosting plan.
Partners report that the first API call in a sequence of API calls occasionally takes longer than expected to run.
Subsequent API calls consistently perform as expected.
You need to ensure that all API calls perform consistently.
What should you do?

Which four actions should you perform in sequence?

DRAG DROP
You create a web application. You publish the source code of the web application to a GitHub repository by
using Microsoft Visual Studio. You create a website by using the Azure management portal.
You must continuously deploy the web application from the GitHub repository website to the Azure website.
You need to deploy the source code of the web application.
Which four actions should you perform in sequence? To answer, move the appropriate actions from the list of
actions to the answer area and arrange them in the correct order.