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?
Answer & Explanation
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
An application programming interface (api) is ________.
Answer & Explanation
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
What occurs if an unhandled error is fired on a startup task?
Answer & Explanation
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
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?
Answer & Explanation
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
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?
Answer & Explanation
Correct Answer:
Web Deploy
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?
Answer & Explanation
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 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?
Answer & Explanation
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 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?
Answer & Explanation
Correct Answer:
Read Uncommitted
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?
Answer & Explanation
Correct Answer:
All of the above
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 ?
Answer & Explanation
Correct Answer:
config.Formatters..JsonFormatter.SupportedMediaTypesAdd (new MediaTypeHeaderValue('text/xml") );
Note: This Question is unanswered, help us to find answer for this one