最新的Microsoft Developing Microsoft Azure and Web Services - 70-487免費考試真題
問題1
You are developing a WCF service. The service will stream messages to clients on the internal network.
You must use Windows Authentication, and all messages must be binary encoded.
You need to configure the service.
What should you do? (To answer, drag the appropriate elements to the correct location or locations in the
answer area. Each element 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.)

You must use Windows Authentication, and all messages must be binary encoded.
You need to configure the service.
What should you do? (To answer, drag the appropriate elements to the correct location or locations in the
answer area. Each element 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.)

正確答案:

Explanation

問題2
You need to configure DNS for the Event service.
How many DNS entries should you create?
How many DNS entries should you create?
正確答案: C
說明:(僅 VCESoft 成員可見)
問題3
The GetExternalOrder() method in the ExternalQueueService service is throwing a runtime error. The method
must query the database for a record that matches the orderNum parameter passed to the method.
You need to modify the queryString string to retrieve the record.
With which code segment should you replace line EQ64?

must query the database for a record that matches the orderNum parameter passed to the method.
You need to modify the queryString string to retrieve the record.
With which code segment should you replace line EQ64?

正確答案: C
問題4
You are developing an ASP.NET MVC application. The application has a page that searches for and displays
an image stored in a database. Members of the EntityClient namespace are used to access an ADO.NET Entity
Framework data model. Images and associated metadata are stored in a database table.
You need to run a query that returns only the image while minimizing the amount of data that is transmitted.
Which method of the EntityCommand type should you use?
an image stored in a database. Members of the EntityClient namespace are used to access an ADO.NET Entity
Framework data model. Images and associated metadata are stored in a database table.
You need to run a query that returns only the image while minimizing the amount of data that is transmitted.
Which method of the EntityCommand type should you use?
正確答案: A
說明:(僅 VCESoft 成員可見)
問題5
You need to parse flight information from Blue Yonder Airlines. The content of the XML file is shown below.

Some airlines do not specify the timezone of the arrival time. If the timezone is not specified, then it should be
interpreted per the business requirements.
You need to implement the LoadFlights() and Parse() methods of the BlueYonderLoader class.
What should you do? (To answer, drag the appropriate code segments to the correct location in the answer
area. Each 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.)


Some airlines do not specify the timezone of the arrival time. If the timezone is not specified, then it should be
interpreted per the business requirements.
You need to implement the LoadFlights() and Parse() methods of the BlueYonderLoader class.
What should you do? (To answer, drag the appropriate code segments to the correct location in the answer
area. Each 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.)

正確答案:

Explanation

Topic 3, Online Bookstore
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.
* The GetTop100Books() 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.
* The ImportBooks() method must keep a copy of the data that can be accessed while new books are
being imported without blocking reads.
* The Create MonthlyTotalsReport() 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 the 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.
* The BookApiController class must have a method that is able to perform ad-hoc queries using OData.
The RESTful API of the bookstore must expose the following endpoints.

Application Structure



PurchaseOrders.xml

FeaturedBooks.xml

問題6
Flight information data provided by Margie's Travel is updated both locally and remotely. When the data is
synced, all changes need to be merged together without causing any data loss or corruption.
You need to implement the Sync() method in the MargiesTravelSync.es file.
What should you do? (To answer, drag the appropriate code segments to the correct location or locations 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.)

synced, all changes need to be merged together without causing any data loss or corruption.
You need to implement the Sync() method in the MargiesTravelSync.es file.
What should you do? (To answer, drag the appropriate code segments to the correct location or locations 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.)

正確答案:

Explanation

http://msdn.microsoft.com/en-us/library/ms135424.aspx
問題7
You need to update the ImportBooks() method to use database transactions.
Which code segment should you use?
Which code segment should you use?
正確答案: B
說明:(僅 VCESoft 成員可見)
問題8
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?
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?
正確答案: D
說明:(僅 VCESoft 成員可見)
問題9
The DeleteExternalOrder() method in the ExternalQueueService service is not throwing a FaultException
exception as defined by the FaultContractAttribute attribute in the IExternatQueueService.cs file.
You need to throw the FaultException exception.
Which code segment can you insert at line EQ45 to achieve this goal? (Each correct answer presents a
complete solution. Chose all that apply.)

exception as defined by the FaultContractAttribute attribute in the IExternatQueueService.cs file.
You need to throw the FaultException exception.
Which code segment can you insert at line EQ45 to achieve this goal? (Each correct answer presents a
complete solution. Chose all that apply.)

正確答案: C
問題10
You have table named Employee that has two columns named firstName and lastName.
You need to insert synchronously the first and last name of an employee into the Employee table.
Which five code segments should you use? Develop the solution by selecting and arranging the required code
segments in the correct order.
NOTE: You will not need all of the code segments.

You need to insert synchronously the first and last name of an employee into the Employee table.
Which five code segments should you use? Develop the solution by selecting and arranging the required code
segments in the correct order.
NOTE: You will not need all of the code segments.

正確答案:

Explanation

問題11
You are developing a web application that uses an assembly named MyAssembly.
You need to ensure that when MyAssembly version 1.0.0.0 is requested, version 2.0.0.0 is used.
How should you complete the markup in the Web.config file? To answer, drag the appropriate elements to the
correct locations. Each element 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.
NOTE: Each correct selection is worth one point.

You need to ensure that when MyAssembly version 1.0.0.0 is requested, version 2.0.0.0 is used.
How should you complete the markup in the Web.config file? To answer, drag the appropriate elements to the
correct locations. Each element 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.
NOTE: Each correct selection is worth one point.

正確答案:

Explanation

Box 1: assemblyBinding
Box 2: bindingRedirect
To redirect one assembly version to another, use the <bindingRedirect> element.
Box 3: OldVersion
Box 4: NewVersion
The newVersion attribute should specify a single version. For example, <bindingRedirect
oldVersion="1.1.0.0-1.2.0.0" newVersion="2.0.0.0"/> specifies that the runtime should use version 2.0.0.0
instead of the assembly versions between 1.1.0.0 and 1.2.0.0.
Box 5: assemblyBinding
The following code example demonstrates a variety of binding redirect scenarios. The example specifies a
redirect for a range of versions for myAssembly, and a single binding redirect for mySecondAssembly.
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="mySecondAssembly"
publicKeyToken="32ab4ba45e0a69a1"
culture="en-us" />
<bindingRedirect oldVersion="1.0.0.0" newVersion="2.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
References: https://docs.microsoft.com/en-us/dotnet/framework/configure-apps/redirect-assembly-versions
問題12
You are developing a WCF service application.
The application must meet the following requirements:
* Operations must have 30 second timeouts.
* The service must have a transaction scope.
* Transactions must flow from the client to the server.
You need to write a transactional service contract and implementation class to meet the requirements.
You have the following code:

Which code segments should you include in Target 1, Target 2, Target 3 and Target 4 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.)

The application must meet the following requirements:
* Operations must have 30 second timeouts.
* The service must have a transaction scope.
* Transactions must flow from the client to the server.
You need to write a transactional service contract and implementation class to meet the requirements.
You have the following code:

Which code segments should you include in Target 1, Target 2, Target 3 and Target 4 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.)

正確答案:

Explanation

問題13
You are developing an ASP.NET Core MVC web application. The application will use Entity Framework
Core and a SQLite database.
You rename a property in the Customer data model. You attempt to apply the migration to the SQLite database
and receive a NotSupportedException error that includes a table named Customer.
You need to resolve the migration error.
Which four 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.

Core and a SQLite database.
You rename a property in the Customer data model. You attempt to apply the migration to the SQLite database
and receive a NotSupportedException error that includes a table named Customer.
You need to resolve the migration error.
Which four 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.

正確答案:

Explanation

The SQLite provider has a number of migrations limitations. You can workaround some of these limitations
by manually writing code in your migrations to perform a table rebuild. A table rebuild involves renaming the
existing table, creating a new table, copying data to the new table, and dropping the old table.
References: https://docs.microsoft.com/en-us/ef/core/providers/sqlite/limitations
問題14
You are deploying an Internet of Things (IoT) environment. You plan to collect data from various sources on
irregular intervals.
You need to implement a solution that meets the requirements of the following groups of users:

What should you implement? To answer, drag the appropriate products to the correct groups. Each product
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.
NOTE: Each correct selection is worth one point.

irregular intervals.
You need to implement a solution that meets the requirements of the following groups of users:

What should you implement? To answer, drag the appropriate products to the correct groups. Each product
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.
NOTE: Each correct selection is worth one point.

正確答案:

Explanation

References:
https://docs.microsoft.com/en-us/azure/machine-learning/studio/what-is-ml-studio
https://docs.microsoft.com/en-us/azure/iot-hub/
https://docs.microsoft.com/en-us/azure/stream-analytics/stream-analytics-introduction
問題15
You are configuring a web application for deployment.
You need to create a SetParameters.xml file to configure the IIS application pool.
You have the following markup:

Which configuration values should you include in Target 1 and Target 2 to complete the markup? (To answer,
drag the appropriate configuration values to the correct targets in the answer area. Each configuration value
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.)

You need to create a SetParameters.xml file to configure the IIS application pool.
You have the following markup:

Which configuration values should you include in Target 1 and Target 2 to complete the markup? (To answer,
drag the appropriate configuration values to the correct targets in the answer area. Each configuration value
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.)

正確答案:

Explanation


