You need to design the application to meet the requirem…
DRAG DROP
You are designed a hybrid application that runs across a Microsoft Azure data center and your company’s onpremise enterprise environment.
You have the following requirements:
Windows Communication Foundation (WCF) services that reside within the corporate enterprise network
must be securely exposed to the public cloud.
A firewall connection and intrusive changes to the corporate network infrastructure are not allowed.
You need to design the application to meet the requirements.How should you design the application? To answer, drag the appropriate item to the correct location or
locations. Each item 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.
Select and Place:
Which three steps should you perform?
You create an ASP.NET MVC application. You host the application by using the Open Web Interface for .NET
(OWIN). You run the following command by using the NuGet Package Manager console:
install-package Microsoft.AspNet.SignalR
You plan to implement real-time push notifications from the server using ASP.NET SignalR.
You need to complete the ASP.NET SignalR implementation.
Which three steps should you perform? Each correct answer presents part of the solution.
How should you complete the relevant code?
HOTSPOT
You are developing an ASP.NET MVC application to display product information. The application has two
views. The first view displays a list of product names. When you select a product name, the second view shows
detailed information for the product that is selected. The product detail view receives a query string value that
contains as identifier for the product that is selected.
The product controller for the application has the following requirements:
The product list and product details must use output caching.
The list of products must be cached daily.
The product details view must cache data for one hour, based on the product that is selected.
You need to implement the product controller.
How should you complete the relevant code? To answer, select the appropriate code from each list in the
answer area.
Hot Area:
Which Visual Studio Unit Test project templates should …
DRAG DROP
You are developing an ASP.NET MVC application.
You need to choose the appropriate Visual Studio templates to use for each test goal.
Which Visual Studio Unit Test project templates should you use? To answer, drag the appropriate Unit Test
project template to the correct test goal or test goals. Each project template 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.
Select and Place:
You need to evaluate the unit test results
HOTSPOT
You are building an ASP.NET application. You develop the following unit test code. Line numbers are included
for reference only.
01 [TestClass]
02 public class UnitTest1
03 {
04 protected string _name;
05 protected float _expenses;
06 protected float _income;
07 protected float _payment;
08 protected float _balance;
09 public void AddCustomer(string name, float income, float payment, float balance)
10 {
11 _name = name;
12 _expenses = expenses;
13 _income = income;
14 _payment = payment;
15 _balance = balance;
16 CheckName();
17 DebRatio();
18 CheckBalance();
19 }
20 [TestMethod]
21 public void CheckName()
22 {
23 Assert.IsNotNull(_name, “CheckName failed unit test”);
24 }
25 [TestMethod]
26 public void DebRatio()
27 {
28 Assert.AreSame(_income, _payment, “DebRatio failed unit test”);
29 }
30 [TestMethod]
31 public void CheckBalance()
32 {
33 Assert.IsTrue(_balance >= 0.0f, Check balance failed unit test.”);
34 }
35}
You run the following line of code:
AddCustomer(“Contoso”, 0, 100, 100, -1);
You need to evaluate the unit test results. For each of the following statements, select Yes if the statement is
true. Otherwise, select No.
Hot Area:
Which five actions should you perform in sequence?
DRAG DROP
You are building an ASP.NET application for a purchasing system.
The application has a method named CalculateBalance in the Purchasing class.
You need to create a unit test for the CalculateBalance method.
Which five 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.
Select and Place:
Which interface should you implement?
You are developing an ASP.NET MVC application. The application uses a set of custom exceptions to log
errors that occur during the execution of an action.
You need to develop a class that implements logging.
Which interface should you implement?
Which code segment should you use?
You are developing an ASP.NET MVC application.
The application has a contact view includes a form for editing the displayed contact.
You need to save the Contact object model when the form is posted back to the EditContact method using a
POST method request.
Which code segment should you use? Each correct answer presents a complete solution. Choose all that
apply.
Which code segment should you use?
You develop an ASP.NET MVC application. The application is configured for claims-based authentication by
using Windows Identity Foundation (WIF).
You need to access the claims in the WIF token.
Which code segment should you use?
You need to use the correct authentication data in the …
DRAG DROP
You are developing an ASP.NET MVC application. You plan to use OAuth to authenticate users to the
application.
You need to use the correct authentication data in the application.
What should you do? To answer, drag the appropriate data element to the correct location or locations. Each
data element 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.
Select and Place:






