Correct Answer:
The code the application software needs in order to interact with the CPU
Note: This Question is unanswered, help us to find answer for this one
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?
Correct Answer:
A state server
Note: This Question is unanswered, help us to find answer for this one
What occurs if an unhandled error is fired on a startup task?
Correct Answer:
The startup is cancelled and the role does not start.
Note: This Question is unanswered, help us to find answer for this one
Which of the following are valid reasons for overriding the Run method?
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
You need to maximize performance of video delivery. Which code segment should you use as the body of the GetVideoStream function in the VideoController class?
Correct Answer:
if (Request.Headers["Accept-Encoding"].Contains("gzip")) { return new GZipStream(System.IO.File.OpenRead(videoId),CompressionMode.Compress); }
Note: This Question is unanswered, help us to find answer for this one
You support hardware purchasing for an ASP.NET MVC application in your company. The application is finished, and the development team knows the number of intended users. Which approach will give the team the best understanding of the application’s hardware needs?
Correct Answer:
Create several web tests that exercise all parts of the application, including all static pages. Run these tests in a step approach up to the maximum expected number of users. This will give you an idea of the load one server can handle.
Note: This Question is unanswered, help us to find answer for this one
Your application has an intermittent issue, based on the user’s path through the application, in which the application seems to stop running. Even when running in debug mode, the application calls a web service and then stops. The application locks and the call never returns, thus the user’s request is never completed and eventually times out.
What performance or profiling tool will provide the most pertinent information about your application?
Correct Answer:
Memory allocation in the Performance Wizard
Note: This Question is unanswered, help us to find answer for this one
How do you encrypt the <connectionstrings> section of the Web.config file?
Correct Answer:
aspnet_regiis -pe "ConnectionStrings" -app "/MachineDPAPI" -prov "RsaProtectedConfigurationProvider"
Note: This Question is unanswered, help us to find answer for this one
How to ensure that ASP.NET Web API returns only JSON data ?
Correct Answer:
config.Formatters..JsonFormatter.SupportedMediaTypesAdd (new MediaTypeHeaderValue('text/xml") );
Note: This Question is unanswered, help us to find answer for this one
You are planning to migrate websites from IIS 6 to IIS 7.5. You do not have access to SSH or a VPN. You need to select a deployment tool to securely migrate the websites. Which tool should you use?
Correct Answer:
Web Deploy
Note: This Question is unanswered, help us to find answer for this one
You are developing an ASP.NET MVC application that reads and writes data from a SQL Server database. You need to prevent the application from reading data that is locked by other transactions. You also need to prevent exclusive range locks. Which isolation level should you use?
Correct Answer:
Read Uncommitted
Note: This Question is unanswered, help us to find answer for this one
You are designing an ASP.NET Web API application. You need to select an HTTP verb to allow blog administrators to moderate a comment. Which HTTP verb should you use?
Correct Answer:
PUT
Note: This Question is unanswered, help us to find answer for this one
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?
Correct Answer:
Create a web publish pipeline target file with a custom web deploy target.
Note: This Question is unanswered, help us to find answer for this one
Your ASP.NET MVC web application has just been released to a group of pilot users. The users are reporting periods of extreme performance degradation. You did not encounter performance issues during development or the quality assurance phase. What can you do in your development environment to understand what is occurring in the production environment?
Correct Answer:
Create a set of web tests that exercise the application. Using a goal-based approach, set the process to run to 75 percent CPU utilization. When you reach that point, compare the results with the number of users in the pilot program.
Note: This Question is unanswered, help us to find answer for this one
You are developing an ASP.NET MVC web application in Visual Studio 2012. The application requires several thousand content files. All content is hosted on the same IIS instance as the application. You detect performance issues when the application starts. You need to resolve the performance issues. What should you do?
Correct Answer:
Combine the content files by using ASP.NET MVC bundling.
Note: This Question is unanswered, help us to find answer for this one
Web API MCQs | Topic-wise