You need to ensure that the correct authentication header is present when requests are made by using MyDataSer
You use Microsoft .NET Framework 4 to develop an application that uses WCF Data Services to
retrieve entities. WCF Data Services uses an authentication scheme that requires an HTTP request
that has the following header format.
GET /OData.svc/Products(1)
Authorization: WRAP access_token=”123456789″
The application includes the following code. (Line numbers are included for reference only.)
01 public class Program
02 {
03 public void GetProducts()
04 {
05 var proxy = new MyDataServiceContext();
06
07 …
08 }
09
10 }
You need to ensure that the correct authentication header is present when requests are made by
using MyDataServiceContext. What should you do?
Which two actions will achieve the goal?
You have a website that is hosted on Azure. You connect to the site by using the URI http://www.contoso.com.
You plan to publish a new version of the website.
You need to acquire the publishing profile for the website.
Which two actions will achieve the goal? Each correct answer presents a complete solution.
which three actions should you perform in sequence?
DRAG DROP
You create a new web application by using a single Azure website deployment. The deployment uses the
shared web hosting plan. User activity varies significantly and unpredictably.
The application must automatically scale to a maximum of eight virtual machines based on CPU utilization.
You need to configure the environment.
In the Azure management portal, which three 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.
How should you complete the relevant code?
DRAG DROP
The Azure Queue service hosts a queue named userRegistrationQueue. You are developing a web job to
process messages from the queue. You create a new console application by using Microsoft Visual Studio. You
also create an Azure storage connection string and store the connection string in the application configuration
file.
All trigger listeners and jobs must run on the current thread.
You need to ensure that the web job processes the messages from the queue.
How should you complete the relevant code? To answer, drag the appropriate code segments to the correct
location or locations. Each code segment 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.
You need to update the conceptual model for the application on the production server
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The
application uses the ADO.NET Entity Framework to model entities. You deploy an application to a
production server. The application uses the model and mapping files that are deployed as
application resources. You need to update the conceptual model for the application on the
production server. What should you do?
How should you complete the relevant code?
HOTSPOT
You use the storage client library to develop an application that manages Azure table storage data.
The application reports error codes when it saves data. You must use a custom retry policy to handle the error codes.
The custom retry policy must meet the following requirements:
Retry when a conflict error code is encountered.
Retry when a storage exception is encountered.
Retry until the maximum number of retry attempts is reached.
You create the following code segment. Line numbers are included for reference only.
You need to insert code at line 14 to implement the retry policy.
How should you complete the relevant code? To answer, select the appropriate option or options in the
answer area.
What should you do?
You create a Web Part that takes three values from three text boxes and creates a new
SharePoint site when you click a button named CreateNewSite. The Web Part contains the
following code segment. protected void CreateNewSite_Click(object sender, EventArgs e) {
SPSite site = SPContext.Current.Site; SPWeb web = site.AllWebs.Add(SiteNameTextBox.Text,
SiteTitleTextBox.Text, SiteDescriptionTextBox.Text, 0, SPWebTemplate.WebTemplateSTS, false,
false); } You test the Web Part and it works properly. When another user attempts to use the Web
Part to create a new site, he receives the following error message: “Error: Access Denied.” You
need to ensure that users can use the Web Part to create new sites. What should you do?
Which code segment should you insert at line 11?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. You
use the ADO.NET Entity Framework to model entities. The application connects to a Microsoft SQL
Server database named AdventureWorks. The application includes the following code segment. (Line
numbers are included for reference only.)
01 using (AdventureWorksEntities context = new AdventureWorksEntities()){
02 ObjectQuery<SalesOrderHeader> orders =
03 context.SalesOrderHeader.Where(“it.CreditCardApprovalCode IS NULL”).Top(“100”);
04 foreach (SalesOrderHeader order in orders){
05 order.Status = 4;
06 }
07 try {
08 context.SaveChanges();
09 }
10 catch (OptimisticConcurrencyException){
11
12 }
13 }
You need to resolve any concurrency conflict that can occur. You also need to ensure that local
changes are persisted to the database. Which code segment should you insert at line 11?
Which testing strategy should you recommend?
You are designing a Windows Presentation Foundation (WPF) application by using
Microsoft .NET Framework 4 and Microsoft Visual Studio 2010. During testing of the
application, you identify several bottlenecks by using Windows Task Manager and Windows
Performance Monitor. You need to recommend a system test strategy that will meet the
following requirements: Identify major application workloads. Identify the functions of the
application that are most impacted. Which testing strategy should you recommend?
Which two approaches should you recommend7 (Each correct answer presents part of the solution?
You are designing an ASP.NET Web application for display on desktop computers and on
mobile devices. You have the following requirements: Present a full-featured interface to
users of desktop computers that include many interaction options and graphical buttons.
Present a simple interface to users of mobile devices that do not include bandwidthintensive
elements. You need to design the Web application to meet the requirements. Which two
approaches should you recommend7 (Each correct answer presents part of the solution?
Choose two.)