PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which code segment should you insert at line 04?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The
application contains the following XML document.
<bib>
<book title=”TCP/IP Illustrated” year=”1994″>
<author> Author1 </author>
</book>
<book title=”Programming in Unix” year=”1992″>

<author> Author1 </author>
<author> Author2 </author>
<author> Author3 </author>
</book>
<book title=”Data on the Web” year=”2000″>
<author> Author4 </author>
<author> Author3 </author>
</book>
</bib>
You add the following code fragment. (Line numbers are included for reference only.)
01 public IEnumerable<XElement> GetBooks(string xml)
02 {
03 XDocument doc = XDocument.Parse(xml);
04
05 }
You need to return a list of book XML elements that are authored by Author1. Which code segment
should you insert at line 04?

You need to deploy the solution to Azure

You are migrating an existing solution to Azure. The solution includes a user interface tier and a database tier.
The user interface tier runs on multiple virtual machines (VMs). The user interface tier has a website that uses
Node.js. The user interface tier has a background process that uses Python. This background process runs as a
scheduled job. The user interface tier is updated frequently. The database tier uses a self-hosted MySQL
database.
The user interface tier requires up to 25 CPU cores. You must be able to revert the user interface tier to a
previous version if updates to the website cause technical problems. The database requires up to 50 GB of
memory. The database must run in a single VM.
You need to deploy the solution to Azure.
What should you do first?

Your company runs existing applications on virtual machines (VMs) that are hosted on Azure.

HOTSPOT
Your company runs existing applications on virtual machines (VMs) that are hosted on Azure.
You are preparing additional Azure services to support the existing applications.
You run the following script. Line numbers are provided for reference only.

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

You need to configure Client1 to use a different DNS server than the other client computers on the network

Your network contains a DHCP server named DHCP1 that runs Windows Server 2008 R2. All client
computers on the network obtain their network configurations from DHCP1. You have a client
computer named Client1 that runs Windows 7 Enterprise. You need to configure Client1 to use a
different DNS server than the other client computers on the network. What should you do?

Which code segment should you use?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The
application connects to a Microsoft SQL Server database. You use the following SQL statement to
retrieve an instance of a DataSet object named ds:
SELECT CustomerID, CompanyName, ContactName, Address, City
FROM dbo.Customers
You need to query the DataSet object to retrieve only the rows where the ContactName field is not
NULL. Which code segment should you use?

Which two approaches will achieve the goal?

You store data in an Azure blob. Data accumulates at a rate of 0.10 GB per day.
You must use storage analytics data to verify that the service level agreement (SLA) has been met and to
analyze the performance of VHDs, including the pattern of usage.
Analytics data must be deleted when it is older than 100 days or when the total amount of data exceeds 10
GB.
You need to configure storage analytics and access the storage analytics data.
Which two approaches will achieve the goal? Each correct answer presents part of the solution.

You need to access the service by using a WCF Data Services client

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to develop an application
that will access a WCF data service. The solution contains the projects shown in the following table.

The WCF data service exposes an Entity Framework model. You need to access the service by using a
WCF Data Services client. What should you do in the Application.Client project?

You need to design the exception handling strategy for the application

You are designing a Windows Presentation Foundation (WPF) application by using
Microsoft .NET Framework 4 and Microsoft Visual Studio 2010. The application will consist
of a user interface (UI) tier and a middle tier. The middle tier will be implemented by using
Windows Communication I Foundation (WCF). Each method in the middle tier will contain
the following catch block. Catch (Argument-NullException e) { thcow e; } When testing the
application, you discover that all ArgumentNullExceptions exceptions that occur in the
middle tier do not contain accurate stack trace information. You need to design the
exception handling strategy for the application. What should you do?