Exam Code: 70-494 (Practice Exam Latest Test Questions VCE PDF)
Exam Name: Recertification for MCSD: Web Applications
Certification Provider: Microsoft
Free Today! Guaranteed Training- Pass 70-494 Exam.

Q1. - (Topic 4) 

You are adding a new REST service endpoint to the FlightDataController controller that 

returns the total number of seats for each airline. 

You need to write a LINQ to Entities query to extract the required data. 

Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:


Q2. - (Topic 5) 

You are developing an ASP.NET MVC application. The application is deployed in a web 

farm and is accessed by many users. 

The application must handle web server failures gracefully. The servers in the farm must 

share the short-term state information. 

You need to persist the application state during the session. What should you implement? 

A. A local database 

B. ASP.NET session state 

C. Profile properties 

D. A state server 

Answer:

Explanation: 

Ref: http://msdn.microsoft.com/en-us/library/vstudio/ms178586(v=vs.100).aspx 


Q3. DRAG DROP - (Topic 5) 

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 methods to update and delete 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: 


Q4. HOTSPOT - (Topic 5) 

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 minutes. 

You need to configure the service to meet the requirements. 

You have the following markup: 

Which markup segments should you include in Target 1, Target 2, Target 3, Target 4, Target 5, Target 6 and Target 7 to complete the markup? (To answer, select the appropriate markup segment from each drop-down list in the answer area.) 

 

Answer: 


Q5. - (Topic 5) 

You are authoring unit tests. 

The unit tests must test code that consumes sealed classes. 

You need to create, maintain, and inject dependencies in the unit tests. 

Which isolation method should you use? 

A. Shim types 

B. Hard-coded implementation 

C. Stub types 

D. T4 text templates and code generation 

Answer:

Explanation: http://msdn.microsoft.com/en-us/library/hh549176.aspx Shim types are one of two technologies that the Microsoft Fakes Framework uses to let you easily isolate components under test from the environment. Shims divert calls to specific methods to code that you write as part of your test. Many methods return different results dependent on external conditions, but a shim is under the control of your test and can return consistent results at every call. This makes your tests much easier to write. 


Q6. - (Topic 3) 

You need to ensure that all the MVC controllers are secure. 

Which code segment should you use as the body for the CreateController method in AdminVerifierFactory.cs? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:


Q7. HOTSPOT - (Topic 5) 

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: 


Q8. - (Topic 5) 

You are developing a Microsoft Azure web application. The application will be deployed to 10 web role instances. A minimum of 8 running instances is needed to meet scaling requirements. 

You need to configure the application so that upgrades are performed as quickly as possible, but do not violate scaling requirements. 

How many upgrade domains should you use? 

A. 1 

B. 2 

C. 5 

D. 10 

Answer:


Q9. DRAG DROP - (Topic 5) 

You are developing an ASP.NET MVC application that allows users to log on by using a third-party authenticator. 

You need to configure Microsoft Azure Access Control Services and the application. 

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.) 

Answer: 


Q10. - (Topic 5) 

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:


Q11. - (Topic 5) 

You are developing an ASP.NET MVC application. 

The application provides a RESTful API for third-party applications. This API updates the 

information for a contact by embedding the information in the URL of an HTTP POST. 

You need to save the Contact type when third-party applications use 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 C 

D. Option D 

Answer: A,B 


Q12. HOTSPOT - (Topic 5) 

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: 


Q13. DRAG DROP - (Topic 5) 

You are developing an ASP.NET MVC Web API application. 

The method names of the Web API must match naming guidelines for RESTful services. 

You need to create methods to support standard insert, select, update, and delete operations in an HTTP service. 

What should you do? (To answer, drag the appropriate HTTP methods to the correct row in the table in the answer area. Each HTTP method 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: 


Q14. - (Topic 5) 

You are developing a library to support multiple ASP.NET MVC web applications on a shared server. The library provides implementations of security algorithms. 

If a problem with any of the security algorithms is discovered, a new version of the library must be created and deployed. Application downtime during the update must be minimized. 

You need to ensure that the new version of the library will be used by all applications as soon as possible. 

What should you do? 

A. Build the web applications and include the security assembly as an embedded resource. 

When an update is needed, copy the new assembly to the bin directory for the application. 

B. Sign all assemblies in each application with the same key used to sign the security 

assembly. 

When an update is needed, create a new key pair and re-sign all assemblies. 

C. Build the security assembly as a netmodule in a shared location. 

Use the assembly linker to merge the netmodule into the assemblies for the application. 

When an update is needed, update the netmodule in the shared location. 

D. Install the security assembly in the Global Assembly Cache (GAC). 

When an update is needed, update the assembly in the GAC. 

Answer:


Q15. - (Topic 5) 

You develop an ASP.NET MVC application that is secured by using SSL. You are ready to 

deploy the application to production. 

The deployment package must include the installation of the SSL certificate. 

You need to configure the deployment package to meet the requirement. 

What should you do? 

A. Create a web publish pipeline target file with a custom web deploy target. 

B. In the Package/Publish settings of the project, select the All Files in this project option. 

C. Extend the CopyAllFilesToSingleFolder target in the project file. 

D. In the Build Events settings of the project, configure a pre-build event to include the SSL certificate. 

Answer:

Explanation: 

Ref: http://msdn.microsoft.com/en-us/library/vstudio/dd394698(v=vs.100).aspx