The Microsoft 70-494 exam is a very hard exam to successfully pass. Here you will find free GreatExam Microsoft practice sample exam test questions that will help you prepare in passing the 70-494 exam. GreatExam Guarantees you 100% pass exam 70-494.
QUESTION 61
You are developing an ASP.NET MVC application that enables you to edit and save a student object.
The application must not retrieve student objects on an HTTP POST request.
You need to implement the controller.
Which code segment should you use? (Each correct answer presents a complete solution.
Choose all that apply.)
A. Option A
B. Option B
C. Option C
D. Option D
Answer: AC
QUESTION 62
You are developing an ASP.NET MVC application.
The application has a contact view that includes a form for editing the displayed contact.
You need to save the Contact type when the form is posted back to the EditContact method.
Which code segment should you use? (Each correct answer presents a complete solution.
Choose all that apply.)
A. Option A
B. Option B
C. Option D
D. Option E
Answer: CD
QUESTION 63
Drag and Drop Question
You are developing a self-hosted WCF service to display data about books.
The solution contains a service named BookService that implements the IBookService interface.
You need to expose the metadata in the service host programmatically.
You have the following code:
Which code segments should you include in Target 1, Target 2, Target 3, Target 4 and Target 5 to build the service host? (To answer, drag the appropriate code segments to the correct targets in the answer area. 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.)
Answer:
QUESTION 64
You are developing an ASP.NET MVC news aggregation application that will be deployed to servers on multiple networks.
The application must be compatible with multiple browsers.
A user can search the website for news articles.
You must track the page number that the user is viewing in search results.
You need to program the location for storing state information about the user’s search.
What should you do?
A. Store search results and page index in Session.
B. Use Application state to store search terms and page index.
C. Use QueryString to store search terms and page index.
D. Store search results and page index in TempData
Answer: C
QUESTION 65
You are developing a .NET application that uses the HttpClient type to call an ASP.NET Web API application. The API call returns a list of customers in JSON format and logs the results. The URL for the API call is in a variable named address.
You need to make the API call without blocking.
Which code segment should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: A
Explanation:
Example:
// Create an HttpClient instance
11: HttpClient client = new HttpClient();
12:
13: // Send a request asynchronously continue when complete
14: client.GetAsync(_address).ContinueWith(
15: (requestTask) =>
16: {
17: // Get HTTP response from completed task.
18: HttpResponseMessage response = requestTask.Result;
19:
20: // Check that response was successful or throw exception
21: response.EnsureSuccessStatusCode();
22:
23: // Read response asynchronously as JsonValue and write out top facts for each country
24: response.Content.ReadAsAsync<JsonArray>().ContinueWith(
25: (readTask) =>
QUESTION 66
Drag and Drop Question
You are developing a RESTful application by using ASP.NET MVC. The application is a pet management system and implements the following method in a controller for retrieving pet data.
The method must only accept JSON data using the standard MIME type.
You need to implement a controller that saves pet data and return a properly formatted HTTP/1.1 protocol response.
You have the following code:
Which code segments should you include in Target 1, Target 2, Target 3 and Target 4 to complete the code? (To answer, drag the appropriate code segments to the correct targets in the answer area. 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.)
Answer:
QUESTION 67
You are designing an ASP.NET Web API application.
You need to select an HTTP verb to allow blog administrators to modify the text of a comment.
Which HTTP verb should you use?
A. GET
B. PUT
C. DELETE
D. POST
Answer: B
QUESTION 68
Drag and Drop Question
You are developing an ASP.NET Web API application for currency conversion that will be consumed by a web browser by using a composite application that is served from another web domain.
You need to configure the Web API.
What should you do? (To answer, drag the appropriate XML elements to the correct location or locations in the answer area. Each XML 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.)
Answer:
QUESTION 69
Drag and Drop Question
You are developing an ASP.NET MVC Web API image management application.
The application must meet the following requirements:
– It must send or receive image data without the use of a buffer.
– It must allow up to 4 MB of image data to be received.
– It must allow up to 3 MB of image data to be sent.
You need to complete the code to meet the requirements.
What should you do? (To answer, drag the appropriate code segments to the correct location or locations in the answer area. 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.)
Answer:
QUESTION 70
Drag and Drop Question
You are developing an ASP.NET MVC Web API application.
The methods of the Web API must return details about the result of the operation.
You need to create a method to add products.
You have the following code:
Which code segments should you include in Target 1, Target 2, Target 3, Target 4 and Target 5 to complete the code? (To answer, drag the appropriate code segments to the correct targets in the answer area. 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.)
Answer:
QUESTION 71
You are developing an ASP.NET MVC web application that includes the following method.
You need to test the GoldMined method.
Which unit test should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: D
QUESTION 72
Hotspot Question
You are developing an ASP.NET MVC application. It is ready for deployment to the production web server. A local SQL Express .MDF file was used by the application during development, but the application will use an existing SQL server database in production.
There are files required by the application that are not part of the project. You must publish the program database (PDB) files. The application was developed using IIS Express without any special settings to be migrated.
You need to configure the web package settings for deployment.
Which settings should you use? (To answer, select the appropriate setting or settings in the answer area.)
Answer:
QUESTION 73
You are developing an ASP.NET MVC application that uses forms authentication to verify that the user is logged in.
Authentication credentials must be encrypted and secure so no user identity is exposed.
You need to ensure that user credentials are persisted after users log on.
Where should you store the credentials? (Each correct answer presents a complete solution. Choose all that apply.)
A. In TempData on the server
B. In a cookie stored in the browser
C. In ViewData in the application
D. In Session on the server
Answer: BD
QUESTION 74
Drag and Drop Question
You are developing an ASP.NET MVC application that authenticates a user by using claims-based authentication.
The application must:
– Use Windows Identity Foundation 4.5.
– Support the Windows Azure Access Control Service.
You need to implement authentication.
How should you build the class constructor? (To answer, drag the appropriate code segment to the correct location or locations in the answer area. 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.)
Answer:
QUESTION 75
Hotspot Question
You are developing a WCF service.
The service must be interoperable with ASP.NET web service clients.
In addition, it must have a time-out of three hours.
You need to configure the service to meet the requirements.
What should you do? (To answer, select the appropriate code segment from each drop- down list in the answer area.)
Answer:
GreatExam new released premium 70-494 exam dumps guarantee you a 100% exam success or we promise full money back! Download Microsoft 70-494 exam dumps full version from GreatExam instantly!