PDF Download Web API
PDF Download Web API
com
Question No. 1
You are designing an application that allows employees to change their human resources
(HR) information, such as next of kin and direct deposit information. The requirements state
that the application should talk directly to the HR systems’ database.
However, at a recent company meeting, the CFO announced that the company will be
converting to a new HR system over the next two years. They will take an additional year to
move employees to the new system, one department at a time. How will this affect your
design?
om
Subject: First Select Exam
It won’t; the requirements state that the application should talk directly to the
HR systems’ database.
.c
You should ensure your naming convention for the database as clearly as
possible so you can rework your data calls with minimal changes.
ck
You should map the model directly to the database calls, anticipating that you
will have to change the model as the new system rolls out.
za
You should implement the Repository pattern with the current HR system
being the first repository that is built. When the second system comes online,
you implement that data access using the same pattern.
ui
Question No. 2
Q
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?
Page 1 of 8
Quizack.com
Question No. 3
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?
om
Create a set of unit tests that repeatedly test certain parts of the application.
Run them continuously over a period of time to ensure that the application
works as expected.
.c
Create a set of web tests that exercise the application. Set a run load of 50
percent of your pilot users and run them in a constant load testing process to
ck
validate the application’s behavior.
Create a set of web tests that exercise the application. Using a step approach,
za
start with a minimal number of users and increase to the total number of
users in the pilot program.
ui
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.
Q
Question No. 4
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?
Page 2 of 8
Quizack.com
In the Package/Publish settings of the project, select the All Files in this project
option.
Create a web publish pipeline target file with a custom web deploy target.
om
Question No. 5
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?
GET
.c
ck
POST
za
DELETE
PUT
ui
Question No. 6
Q
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?
Serializable
Repeatable
Read Committed
Page 3 of 8
Quizack.com
Read Uncommitted
Question No. 7
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?
om
RoboCopy
xCopy
Web Deploy
Question No. 8
How to ensure that ASP.NET Web API returns only JSON data ?
ui
contig.Forniatters.)sonForrnatter.SupportedMediaTypes.Add(new
MediaTypeHeaderValue("application/json"));
Q
config.Formatters.XMLFormatter.SupportedMediaTypes.Add (new
MediaTypeHeaderValue('text/html') );
config.Formatters..JsonFormatter.SupportedMediaTypesAdd (new
MediaTypeHeaderValue('text/xml") );
config.Formatters.XMLFormatter.SupportedMediaTypes.Add (new
MediaTypeHeaderValue("text/xml') );
Page 4 of 8
Quizack.com
Question No. 9
om
aspnet_regiis -pe "Web.Config"-app "/MachineDPAPI" -prov
"RsaProtectedConfigurationProvider"
.c
ck
Question No. 10
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
za
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?
ui
Tracing from the System. Diagnostics namespace that logs the times of web
service call and web service return
Question No. 11
Page 5 of 8
Quizack.com
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?
Create several web tests that exercise all parts of the application, including all
static pages. Run these tests in a constant load at various levels to see the
effect on performance.
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.
om
Create several web tests that exercise all parts of the application, including all
static pages. Run these tests in a goal-based approach in which the percent of
CPU usage and percent of memory usage metrics are set to the company
standard maximums. Evaluate how many users it takes to reach the maximum
levels.
.c
ck
Create several web tests that exercise only the dynamic parts of the
application, ignoring all static content. Run these tests in a goal-based
approach in which the percent of CPU usage and percent of memory usage
metrics are set to the company standard maximums. Evaluate how many
users it takes to reach these maximum levels.
za
Question No. 12
ui
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?
Q
if (Request.Headers["Accept-Encoding"].Contains("gzip"))
{
return new
GZipStream(System.IO.File.OpenRead(videoId),CompressionMode.Compress);
}
Page 6 of 8
Quizack.com
Question No. 13
Which of the following are valid reasons for overriding the Run method?
om
Starting and supporting a logging application for use by the Worker role
Question No. 14
Q
The startup task goes to the lowest security setting and continues to run, if
possible.
The startup role consumes the error during its load; if there is no event
handler configured, it is set to Handled as the task completes.
Page 7 of 8
Quizack.com
Question No. 15
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?
om
A state server
A local database
Profile properties
.c
ck
za
Question No. 16
The code the application software needs in order to interact with the CPU
Page 8 of 8