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:
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 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 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?
Which line of code should you insert at line 05?
The application includes the following method. (Line numbers are included for reference only.)
When users attempt to retrieve a product from the product page, a run-time exception occurs if the product
does not exist.
You need to route the exception to the CustomException.aspx page.
Which line of code should you insert at line 05?
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:
You need to minimize the potential for the password to …
You are developing an ASP.NET MVC application that will run in a shared environment.
The application requests the user’s password, and then uses the password to sign data.
You need to minimize the potential for the password to be discovered by other processes that run in the shared
environment. What should you do?
You need to use the least amount of development effort …
You are developing an ASP.NET MVC application to be used on the Internet. The environment does not use
Active Directory.
Users must be able to log on to the application to maintain their personal preferences.
You need to use the least amount of development effort to enable users to log on.
What should you do?
How should you complete the relevant code?
HOTSPOT
You are developing an ASP.NET MVC application that will be hosted on Microsoft Azure. The application
includes the StackExchange.Redis client package. A variable named CacheConnectionConfiguration stores the
cache endpoint URL and the password to connect to the cache.
The application must store a user’s color selection by using the Azure Redis cache. The cached value must
expire after 90 minutes. You need to cache the user’s color selection.
How should you complete the relevant code? To answer, choose the appropriate code segment from each list
in the answer area.
Hot Area: