PrepAway - Latest Free Exam Questions & Answers

Category: 70-487 (v.6)

Exam 70-487: Developing Windows Azure and Web Services (update July 23th, 2017)

What should you identify?

###BeginCaseStudy###

Testlet 1
General Overview
Adventure Works Cycles is a travel agency for cycling enthusiast. In recent years, Adventure Works Cycles has
begun renting exotic cars to its clients.
You are developing a new web application that will provide Adventure Works Cycle customers with the ability to
locate and rent exotic throughout the world.
Application Overview
The web application will be hosted in Azure. The application will provide users with the ability to search for a car
by using advanced filtering options, such as the car brand, model, year, and price. All of this information will be
stored as strings and will be displayed as drop-down lists.
The brand and model lists that will be displayed on the home page of the web application will be retrieved from
Windows Communication Foundation (WCF) services hosted in the on-premises environment.
The home page will be named home.aspx and will be developed by using Microsoft ASP.NET MVC. The
business logic will be developed by using ASP.NET Web API.
The MVC front-end layer and the Web API will communicate by using JSON. The business logic will have a call
to an assembly named CarBusinessLogic.dll.
For responding, you are creating a worker role named ReportApp in Azure that will collect data from all of the
searches made by using the web application. The application will communicate with ReportApp by using
messages.
Requirements
Security Requirements
Adventure Works Cycles identifies the following security requirements for the web application:
The Web API must only accept one data format.
The CarBusinessLogic.dll assembly must be strongly-named.
Communication between the on-premises WCF service and Azure must be encrypted.
Logging Requirements
In the Web API, you plan to create a controller named CarController. Before any action in CarController is
executed, the following line of code must execute first.
Debug.WriteLine(“pre-processing logging”);
Performance Requirements
Adventure Works Cycles identifies the following performance requirements for the web application:
After the initial deployment, any changes to the business logic of the Web API must cause minimal
downtime to the web application in the production environment.
The action in the Web API that returns the car brand must be asynchronous, while all other actions must be
synchronous.
When home.aspx is displayed,the rendered page must be cached for 10 minutes.
The web application will be deployed to multiple instances.
Financial Requirements
ReportApp will shut down every night. However, data from the searches performed during the night must still be
collected.

###EndCaseStudy###

DRAG DROP
You need to identify the return types for the car year, price, brand and model. The solution must minimize the
number of round trips between the clients and the web servers.
What should you identify? To answer, drag the appropriate return types to the correct objects. Each return type
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.
Select and Place:

which line of code should you insert into the WebApiCon…

###BeginCaseStudy###

Testlet 1
General Overview
Adventure Works Cycles is a travel agency for cycling enthusiast. In recent years, Adventure Works Cycles has
begun renting exotic cars to its clients.
You are developing a new web application that will provide Adventure Works Cycle customers with the ability to
locate and rent exotic throughout the world.
Application Overview
The web application will be hosted in Azure. The application will provide users with the ability to search for a car
by using advanced filtering options, such as the car brand, model, year, and price. All of this information will be
stored as strings and will be displayed as drop-down lists.
The brand and model lists that will be displayed on the home page of the web application will be retrieved from
Windows Communication Foundation (WCF) services hosted in the on-premises environment.
The home page will be named home.aspx and will be developed by using Microsoft ASP.NET MVC. The
business logic will be developed by using ASP.NET Web API.
The MVC front-end layer and the Web API will communicate by using JSON. The business logic will have a call
to an assembly named CarBusinessLogic.dll.
For responding, you are creating a worker role named ReportApp in Azure that will collect data from all of the
searches made by using the web application. The application will communicate with ReportApp by using
messages.
Requirements
Security Requirements
Adventure Works Cycles identifies the following security requirements for the web application:
The Web API must only accept one data format.
The CarBusinessLogic.dll assembly must be strongly-named.
Communication between the on-premises WCF service and Azure must be encrypted.
Logging Requirements
In the Web API, you plan to create a controller named CarController. Before any action in CarController is
executed, the following line of code must execute first.
Debug.WriteLine(“pre-processing logging”);
Performance Requirements
Adventure Works Cycles identifies the following performance requirements for the web application:
After the initial deployment, any changes to the business logic of the Web API must cause minimal
downtime to the web application in the production environment.
The action in the Web API that returns the car brand must be asynchronous, while all other actions must be
synchronous.
When home.aspx is displayed,the rendered page must be cached for 10 minutes.
The web application will be deployed to multiple instances.
Financial Requirements
ReportApp will shut down every night. However, data from the searches performed during the night must still be
collected.

###EndCaseStudy###

HOTSPOT
Based on the security requirements, which line of code should you insert into the WebApiConfig file? To
answer, select the appropriate options in the answer area.
Hot Area:

What should you recommend?

###BeginCaseStudy###

Testlet 1
General Overview
Adventure Works Cycles is a travel agency for cycling enthusiast. In recent years, Adventure Works Cycles has
begun renting exotic cars to its clients.
You are developing a new web application that will provide Adventure Works Cycle customers with the ability to
locate and rent exotic throughout the world.
Application Overview
The web application will be hosted in Azure. The application will provide users with the ability to search for a car
by using advanced filtering options, such as the car brand, model, year, and price. All of this information will be
stored as strings and will be displayed as drop-down lists.
The brand and model lists that will be displayed on the home page of the web application will be retrieved from
Windows Communication Foundation (WCF) services hosted in the on-premises environment.
The home page will be named home.aspx and will be developed by using Microsoft ASP.NET MVC. The
business logic will be developed by using ASP.NET Web API.
The MVC front-end layer and the Web API will communicate by using JSON. The business logic will have a call
to an assembly named CarBusinessLogic.dll.
For responding, you are creating a worker role named ReportApp in Azure that will collect data from all of the
searches made by using the web application. The application will communicate with ReportApp by using
messages.
Requirements
Security Requirements
Adventure Works Cycles identifies the following security requirements for the web application:
The Web API must only accept one data format.
The CarBusinessLogic.dll assembly must be strongly-named.
Communication between the on-premises WCF service and Azure must be encrypted.
Logging Requirements
In the Web API, you plan to create a controller named CarController. Before any action in CarController is
executed, the following line of code must execute first.
Debug.WriteLine(“pre-processing logging”);
Performance Requirements
Adventure Works Cycles identifies the following performance requirements for the web application:
After the initial deployment, any changes to the business logic of the Web API must cause minimal
downtime to the web application in the production environment.
The action in the Web API that returns the car brand must be asynchronous, while all other actions must be
synchronous.
When home.aspx is displayed,the rendered page must be cached for 10 minutes.
The web application will be deployed to multiple instances.
Financial Requirements
ReportApp will shut down every night. However, data from the searches performed during the night must still be
collected.

###EndCaseStudy###

You need to recommend a solution to meet the performance requirements for home.aspx.
What should you recommend?

Which file should you modify before you deploy the appl…

###BeginCaseStudy###

Testlet 1
General Overview
Adventure Works Cycles is a travel agency for cycling enthusiast. In recent years, Adventure Works Cycles has
begun renting exotic cars to its clients.
You are developing a new web application that will provide Adventure Works Cycle customers with the ability to
locate and rent exotic throughout the world.
Application Overview
The web application will be hosted in Azure. The application will provide users with the ability to search for a car
by using advanced filtering options, such as the car brand, model, year, and price. All of this information will be
stored as strings and will be displayed as drop-down lists.
The brand and model lists that will be displayed on the home page of the web application will be retrieved from
Windows Communication Foundation (WCF) services hosted in the on-premises environment.
The home page will be named home.aspx and will be developed by using Microsoft ASP.NET MVC. The
business logic will be developed by using ASP.NET Web API.
The MVC front-end layer and the Web API will communicate by using JSON. The business logic will have a call
to an assembly named CarBusinessLogic.dll.
For responding, you are creating a worker role named ReportApp in Azure that will collect data from all of the
searches made by using the web application. The application will communicate with ReportApp by using
messages.
Requirements
Security Requirements
Adventure Works Cycles identifies the following security requirements for the web application:
The Web API must only accept one data format.
The CarBusinessLogic.dll assembly must be strongly-named.
Communication between the on-premises WCF service and Azure must be encrypted.
Logging Requirements
In the Web API, you plan to create a controller named CarController. Before any action in CarController is
executed, the following line of code must execute first.
Debug.WriteLine(“pre-processing logging”);
Performance Requirements
Adventure Works Cycles identifies the following performance requirements for the web application:
After the initial deployment, any changes to the business logic of the Web API must cause minimal
downtime to the web application in the production environment.
The action in the Web API that returns the car brand must be asynchronous, while all other actions must be
synchronous.
When home.aspx is displayed,the rendered page must be cached for 10 minutes.
The web application will be deployed to multiple instances.
Financial Requirements
ReportApp will shut down every night. However, data from the searches performed during the night must still be
collected.

###EndCaseStudy###

You need to perform the initial deployment of the web application. You must ensure that the application meets
the performance requirements.
Which file should you modify before you deploy the application?

What should you include in the solution?

###BeginCaseStudy###

Testlet 1
General Overview
Adventure Works Cycles is a travel agency for cycling enthusiast. In recent years, Adventure Works Cycles has
begun renting exotic cars to its clients.
You are developing a new web application that will provide Adventure Works Cycle customers with the ability to
locate and rent exotic throughout the world.
Application Overview
The web application will be hosted in Azure. The application will provide users with the ability to search for a car
by using advanced filtering options, such as the car brand, model, year, and price. All of this information will be
stored as strings and will be displayed as drop-down lists.
The brand and model lists that will be displayed on the home page of the web application will be retrieved from
Windows Communication Foundation (WCF) services hosted in the on-premises environment.
The home page will be named home.aspx and will be developed by using Microsoft ASP.NET MVC. The
business logic will be developed by using ASP.NET Web API.
The MVC front-end layer and the Web API will communicate by using JSON. The business logic will have a call
to an assembly named CarBusinessLogic.dll.
For responding, you are creating a worker role named ReportApp in Azure that will collect data from all of the
searches made by using the web application. The application will communicate with ReportApp by using
messages.
Requirements
Security Requirements
Adventure Works Cycles identifies the following security requirements for the web application:
The Web API must only accept one data format.
The CarBusinessLogic.dll assembly must be strongly-named.
Communication between the on-premises WCF service and Azure must be encrypted.
Logging Requirements
In the Web API, you plan to create a controller named CarController. Before any action in CarController is
executed, the following line of code must execute first.
Debug.WriteLine(“pre-processing logging”);
Performance Requirements
Adventure Works Cycles identifies the following performance requirements for the web application:
After the initial deployment, any changes to the business logic of the Web API must cause minimal
downtime to the web application in the production environment.
The action in the Web API that returns the car brand must be asynchronous, while all other actions must be
synchronous.
When home.aspx is displayed,the rendered page must be cached for 10 minutes.
The web application will be deployed to multiple instances.
Financial Requirements
ReportApp will shut down every night. However, data from the searches performed during the night must still be
collected.

###EndCaseStudy###

You need to identify a solution to display the car brands.
What should you include in the solution?

Which attribute should you add before you compile the d…

###BeginCaseStudy###

Testlet 1
General Overview
Adventure Works Cycles is a travel agency for cycling enthusiast. In recent years, Adventure Works Cycles has
begun renting exotic cars to its clients.
You are developing a new web application that will provide Adventure Works Cycle customers with the ability to
locate and rent exotic throughout the world.
Application Overview
The web application will be hosted in Azure. The application will provide users with the ability to search for a car
by using advanced filtering options, such as the car brand, model, year, and price. All of this information will be
stored as strings and will be displayed as drop-down lists.
The brand and model lists that will be displayed on the home page of the web application will be retrieved from
Windows Communication Foundation (WCF) services hosted in the on-premises environment.
The home page will be named home.aspx and will be developed by using Microsoft ASP.NET MVC. The
business logic will be developed by using ASP.NET Web API.
The MVC front-end layer and the Web API will communicate by using JSON. The business logic will have a call
to an assembly named CarBusinessLogic.dll.
For responding, you are creating a worker role named ReportApp in Azure that will collect data from all of the
searches made by using the web application. The application will communicate with ReportApp by using
messages.
Requirements
Security Requirements
Adventure Works Cycles identifies the following security requirements for the web application:
The Web API must only accept one data format.
The CarBusinessLogic.dll assembly must be strongly-named.
Communication between the on-premises WCF service and Azure must be encrypted.
Logging Requirements
In the Web API, you plan to create a controller named CarController. Before any action in CarController is
executed, the following line of code must execute first.
Debug.WriteLine(“pre-processing logging”);
Performance Requirements
Adventure Works Cycles identifies the following performance requirements for the web application:
After the initial deployment, any changes to the business logic of the Web API must cause minimal
downtime to the web application in the production environment.
The action in the Web API that returns the car brand must be asynchronous, while all other actions must be
synchronous.
When home.aspx is displayed,the rendered page must be cached for 10 minutes.
The web application will be deployed to multiple instances.
Financial Requirements
ReportApp will shut down every night. However, data from the searches performed during the night must still be
collected.

###EndCaseStudy###

You need to compile CarBusinesLogic.dll by using Microsoft Visual Studio.
Which attribute should you add before you compile the dynamic-link library (DLL)?

Which method should you use?

###BeginCaseStudy###
Testlet 1
Background
You are developing an online bookstore web application that will be used by your company’s customers.
Technical Requirements
General requirements:
The web store application must be an ASP.NET MVC application written in Visual Studio.
The application must connect to a Microsoft SQL database.
TheGetTop100Books()method is mission critical and must return data as quickly as possible. It should take
advantage of fast, forward-only, read-only methods of reading data.
TheImportBooks()method must keep a copy of the data that can be accessed while new books are being
imported without blocking reads.
TheCreateMonthlyTotalsReport()method must lock the data and prevent others from updating or inserting
new rows until complete.
The college textbook area of the web application must get data from a daily updated CSV file.
The children’s book area of the web application must get data directly from a local database. It must use a
connection string. It must also support access to the stored procedures on a database. Further, it is required
to have strongly typed objects. Finally, it will require access to databases from multiple vendors and needs
to support more than one-to-one mapping of database tables.
The cookbook functionality is contained within a client-side application that must connect to the server using
HTTP and requires access to the data using JavaScript.
TheBookApiControllerclass must have a method that is able to perform ad-hoc queries using OData.
The RESTful API of the bookstore must expose the following endpoint.
Action: Get a list of all books
HTTP method: GET
Relative URI: /books
Action: Get a book by id
HTTP method: GET
Relative URI: /books/id
Action: Create a new book
HTTP method: POST
Relative URI: /books
Action: Update a book
HTTP method: PUT
Relative URI: /books/id
Action: Delete a book
HTTP method: DELETE
Relative URI: /books/id

Application Structure

Main

PurchaseOrders.xml

FeaturedBooks.xml

###EndCaseStudy###

You need to implement the Get() method in the bookstore Web API application to be able to find books by
using an ad hoc query.
Which method should you use?

Which query expression should you use?

###BeginCaseStudy###
Testlet 1
Background
You are developing an online bookstore web application that will be used by your company’s customers.
Technical Requirements
General requirements:
The web store application must be an ASP.NET MVC application written in Visual Studio.
The application must connect to a Microsoft SQL database.
TheGetTop100Books()method is mission critical and must return data as quickly as possible. It should take
advantage of fast, forward-only, read-only methods of reading data.
TheImportBooks()method must keep a copy of the data that can be accessed while new books are being
imported without blocking reads.
TheCreateMonthlyTotalsReport()method must lock the data and prevent others from updating or inserting
new rows until complete.
The college textbook area of the web application must get data from a daily updated CSV file.
The children’s book area of the web application must get data directly from a local database. It must use a
connection string. It must also support access to the stored procedures on a database. Further, it is required
to have strongly typed objects. Finally, it will require access to databases from multiple vendors and needs
to support more than one-to-one mapping of database tables.
The cookbook functionality is contained within a client-side application that must connect to the server using
HTTP and requires access to the data using JavaScript.
TheBookApiControllerclass must have a method that is able to perform ad-hoc queries using OData.
The RESTful API of the bookstore must expose the following endpoint.
Action: Get a list of all books
HTTP method: GET
Relative URI: /books
Action: Get a book by id
HTTP method: GET
Relative URI: /books/id
Action: Create a new book
HTTP method: POST
Relative URI: /books
Action: Update a book
HTTP method: PUT
Relative URI: /books/id
Action: Delete a book
HTTP method: DELETE
Relative URI: /books/id

Application Structure

Main

PurchaseOrders.xml

FeaturedBooks.xml

###EndCaseStudy###

You need to create an OData query expression to return the ten books with the largest number of sales.
Which query expression should you use?

You need to review the requirements and identify the ap…

###BeginCaseStudy###
Testlet 1
Background
You are developing an online bookstore web application that will be used by your company’s customers.
Technical Requirements
General requirements:
The web store application must be an ASP.NET MVC application written in Visual Studio.
The application must connect to a Microsoft SQL database.
TheGetTop100Books()method is mission critical and must return data as quickly as possible. It should take
advantage of fast, forward-only, read-only methods of reading data.
TheImportBooks()method must keep a copy of the data that can be accessed while new books are being
imported without blocking reads.
TheCreateMonthlyTotalsReport()method must lock the data and prevent others from updating or inserting
new rows until complete.
The college textbook area of the web application must get data from a daily updated CSV file.
The children’s book area of the web application must get data directly from a local database. It must use a
connection string. It must also support access to the stored procedures on a database. Further, it is required
to have strongly typed objects. Finally, it will require access to databases from multiple vendors and needs
to support more than one-to-one mapping of database tables.
The cookbook functionality is contained within a client-side application that must connect to the server using
HTTP and requires access to the data using JavaScript.
TheBookApiControllerclass must have a method that is able to perform ad-hoc queries using OData.
The RESTful API of the bookstore must expose the following endpoint.
Action: Get a list of all books
HTTP method: GET
Relative URI: /books
Action: Get a book by id
HTTP method: GET
Relative URI: /books/id
Action: Create a new book
HTTP method: POST
Relative URI: /books
Action: Update a book
HTTP method: PUT
Relative URI: /books/id
Action: Delete a book
HTTP method: DELETE
Relative URI: /books/id

Application Structure

Main

PurchaseOrders.xml

FeaturedBooks.xml

###EndCaseStudy###

You are preparing to write the data access code for the children’s book area of the web site.
You need to review the requirements and identify the appropriate data access technology.
What should you do?


Page 7 of 11« First...56789...Last »