What are two possible ways to achieve this goal?
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. You create classes by using LINQ to
SQL based on the records shown in the exhibit. (Click the Exhibit button.)
You need to create a LINQ query to retrieve a list of objects that contains the OrderID and
CustomerID properties. You need to retrieve the total price amount of each Order record. What are
two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose
two.)
Which class should you use?
You are developing a Windows application by using Microsoft .NET Framework 4. You plan
to design a diagnostic logging strategy that will be used in a production environment. You
need to ensure that the strategy meets the following requirements: Enables or disables
diagnostic messages by using an application configuration option. Changes the level of
detail in the diagnostic messages without recompiling the application. Which class should
you use?
what should you do?
You store data by using table storage in Azure.
The storage analytics logs do not contain any data.
You must configure the Azure storage account to retain logs for the maximum length of time that Azure
permits.
In the Azure management portal, what should you do?
Which approach should you recommend?
You are designing an ASP.NET Web application for content management. You have the
following requirements: Support multiple browsers. Display a specific interface for browsers
that have display dimensions of less than 640 x 480 pixels. You need to design a solution
for identifying the display dimensions of the requesting browser. Which approach should
you recommend?
Which code segment should you use?
You create a modal dialog that displays a list of items. You need to capture the items selected by
a user. Which code segment should you use?
Which code segment should you insert at line 10?
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 database includes a database
table named ProductCatalog as shown in the exhibit. (Click the Exhibit button.)
You add the following code segment to query the first row of the ProductCatalog table. (Line
numbers are included for reference only.)
01 using (var cnx = new SqlConnection(connString))
02 {
03 var command = cnx.CreateCommand();
04 command.CommandType = CommandType.Text;
05 command.CommandText =”SELECT TOP 1 * FROM dbo.ProductCatalog”;
06 cnx.Open();
07 var reader = command.ExecuteReader();
08 if (reader.Read()) {
09 var id = reader.GetInt32(0);
10
11 reader.Close();
12 }
13 }
You need to read the values for the Weight, Price, and Status columns. Which code segment should
you insert at line 10?
Which two actions will achieve the goal?
You host an application on an Azure virtual machine (VM) that uses a data disk. The application performs
several input and output operations per second.
You need to disable disk caching for the data disk.
Which two actions will achieve the goal? Each answer presents a complete solution.
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 retrieves data from a Microsoft SQL Server 2008 database named AdventureWorks. The
AdventureWorks.dbo.ProductDetails table contains a column named ProductImages that uses a
varbinary(max) data type. You write the following code segment. (Line numbers are included for
reference only.)
01 SqlDataReader reader =
02 command.ExecuteReader(
03
04 );
05 while (reader.Read())
06 {
07 pubID = reader.GetString(0);
08 stream = new FileStream(
09 …
10 );
11 writer = new BinaryWriter(stream);
12 startIndex = 0;
13 retval = reader.GetBytes(1, startIndex, outByte, 0, bufferSize);
14 while (retval == bufferSize)
15 {
16 …
17 }
18 writer.Write(outByte, 0, (int)retval – 1);
19 writer.Flush();
20 writer.Close();
21 stream.Close();
22 }
You need to ensure that the code supports streaming data from the ProductImages column. Which
code segment should you insert at line 03?
Which type of replication should you choose?
You are developing a REST API service that provides data about products. The service will be hosted in an
Azure virtual machine (VM).
The product data must be stored in Azure tables and replicated to multiple geographic locations.
API calls that use the HTTP GET operation must continue to function when the data tables at the primary Azure
datacenter are not accessible.
You need to configure storage for the service.
Which type of replication should you choose?
Which testing strategy should you recommend?
You are developing a Windows Presentation Foundation (WPF) application by using
Microsoft .NET Framework 4. You need to recommend a testing strategy to identify the
additional hardware resources that are necessary to support future projected growth. Which
testing strategy should you recommend?