Microsoft 70-487
Microsoft 70-487
Background
You are in the process of creating a service for consolidating data. The service retrieves and
combines data from various sources into one data set. This consolidated data is then hosted by a
SQL Server database, which can then be queried and retrieved by clients via a REST API
provided by the service.
Furthermore, the service allows for the accessing of historical data. This historical data is filtered
and queried in an ad hoc fashion.
A Windows Azure Web Role has been configured for running the service. Also, the use of Secure
Sockets Layer (SSL) is not configured.
Business Requirements
A developer, situated in a different region, is in the process of creating a new data source for
historical data.
In the event that a time zone is not indicated, it should be construed to be Coordinated Universal
Time (UTC).
Service downtime must be kept to a minimum while upgrading from a staging deployment to a
production deployment.
Technical Requirements
Data from Consolidated Messenger is supplied in a Microsoft Access database, which is uploaded
to the service at noon and midnight on a daily basis, via SECURE FTP (SFTP) over port 22.
ABC Tourism makes use of serialized ADO.NET DataSets to supply and consume data. This data
is synced between the service and ABC Tourism on a regular basis.
Data from various sources, which is serialized in proprietary binary formats, as well as .NET
assemblies for reading the data is supplied by ABC R&D. These assemblies make use of a mutual
collection of dependencies, and are signed with a key pair contained in a file named ABCRD.snk.
Third-party assemblies must have strong names in accordance with the application specification.
You are required to write code to make sure that the Windows Azure service definition allows for
Consolidated Messenger to upload files in accordance with the requirements.
Answer: D
Explanation:
QUESTION NO: 2
You have been instructed to satisfy the business prerequisites for deploying the application.
You have logged into the Management Portal, expanded the subscription that contains the hosted
service to upgrade, and then click the deployment to upgrade.
Answer: C
Explanation:
QUESTION NO: 3
You have been tasked with making sure that the developer creating the new data source for
historical data makes use of a suitable data access technology to facilitate data retrieval.
Answer: D
Explanation:
QUESTION NO: 4
You are writing code to apply the Sync() method. The method should be configured to make sure
that when syncing data supplied by ABC Tourism, the changes are combined. This process should
not result in data being corrupted or lost.
Which of the following is a member that should be used for both the XmlWriteMode and
XmlReadMode enumerations?
A. Auto
B. DiffGram
C. IgnoreSchema
D. InferSchema
Answer: B
Explanation:
References:
http://msdn.microsoft.com/en-us/library/ms135424.aspx
QUESTION NO: 5
Subsequent to the deployment of the service, ABC R&D releases a new version of their assembly.
The new version has been configured to deal with modifications to the serialization format.
To make sure that the service continues to be accessible while converting to the new serialization
format and that the new assembly is used by the service, you have to configure settings in a
specific file.
Answer: B
Explanation:
References:
http://msdn.microsoft.com/en-us/library/7wd6ex19.aspx
QUESTION NO: 6
You have noticed that updates to data are disappearing as a result of errors taking place during
save operations via the ADO.NET Entity Framework context.
You are writing code that allows for the save operation to be retried for a specific number of times.
Answer: A
Explanation:
QUESTION NO: 7
A. You should consider making use of the CacheDependency type that was configured to watch
the HTTP target folder.
B. You should consider making use of the CacheDependency type that was configured to watch
the HTTPS target folder.
C. You should consider making use of the CacheDependency type that was configured to watch
the SSL target folder.
D. You should consider making use of the CacheDependency type that was configured to watch
Answer: D
Explanation:
QUESTION NO: 8
You are preparing to write the necessary code to add Consolidated Messenger data as per the
prerequisites.
Answer: C
Explanation:
QUESTION NO: 9
You are preparing to write the necessary code to add Consolidated Messenger data as per the
prerequisites.
Answer: A
Explanation:
QUESTION NO: 10
You have previously written code that allows for converted historical data to be supplied by a
You are required to write the necessary code that includes a class which represents elements in
an XML tree that supports deferred streaming output.
Answer: C
Explanation:
References:
http://msdn.microsoft.com/en-us/library/system.xml.linq.xstreamingelement.aspx
http://msdn.microsoft.com/en-us/library/bb551307.aspx
QUESTION NO: 11
You have previously written code that allows for converted historical data to be supplied by a
custom method. You are now preparing to make sure that this data is as a series of XML elements
to the response stream within a root element.
You are required to write the necessary code which includes a method of the XStreamingElement
class that allows for the streaming element to be written to an XmlWriter.
Answer: D
Explanation:
References:
http://msdn.microsoft.com/en-us/library/system.xml.linq.xstreamingelement.aspx
Topic 2, Scenario 2
Background
You are making use of Visual Studio 2012 to create an ASP.NET MVC order processing
application.
Business Prerequisites
You have been informed that the application should include a page that queries a peripheral
database for orders that are ready to be processed, as well as a page that displays processed
orders. The application should also include a page that displays supplier details.
The retrieval of peripheral information should require the consumption of three WCF services.
Technical Prerequisites
The Visual Studio solution includes three WCF service projects. One for communicating with the
peripheral order database, one for submitting order data to a peripheral data source, and one to
obtain transport data. The solution should also include an ASP.NET MVC project for processing
orders and logging order metadata.
The three WCF service projects are named PeripheralQueue, OrderUpload, and Transport. The
ASP.NET MVC project is named OrderProcessor.
The PeripheralQueue project makes use of Entity Framework to access data. Entities have been
specified in a file, named PeripheralOrders.edmx. Two services, which are included in the project,
have been specified in the IPeripheralQueueService.es and the PeripheralQueueService.svc files.
A definition for a class, named OrderNotFound Exception, has been included in the
PeripheralQueue.Helpers namespace.
The OrderProcessor project makes use of Entity Framework to access data. Entities have been
specified in a file, named ProcessedOrders.edmx. Two services, which are included in the project,
have been specified in the InboundQueueController.es and the ProcessedOrderController.es files.
You have generated WCF service proxies to the PeripheralQueue, Transport and OrderUpload
services via the command prompt. The PeripheralQueueService.svc file includes the
ExecuteCommandProcedure() method, which should be executed asynchronously.
A 5 minute absolute cache expiration policy should be applied by the GetSupplierPolicy() method.
The last 20 orders that were processed should be presented by the GetProcessedOrders()
method.
Two services, which are included in the OrderUpload project, have been specified in the
IUploadCallbackService.es and the UploadCallbackService.svc files. A file named UploadOrder.es
is configured to handle access to data.
The Transport project makes use of Entity Framework to access data. Entities have been specified
in a file, named PeripheralOrders.edmx. The PeripheralOrders.edmx does not include the Custom
Tool property.
Two services, which are included in the project, have been specified in the ITransportService.es
and the TransportService.svc files.
The TransportAddress.es file is configured to host the POCO classes for the Entity Model. Lazy
loading should be employed to load the POCO entity.
QUESTION NO: 12
You are required to make changes to the previously written code to achieve your goal.
QUESTION NO: 13
Subsequent to creating a class named TransportData, you are required make changes to both the
ITransportService interface and the TransportData class as per the prerequisites.
Answer: C
Explanation:
QUESTION NO: 14
You are preparing to generate the TransportContext class in keeping with the prerequisites.
Which of the following is the class that should be included in your code?
Answer: B
Explanation:
QUESTION NO: 15
You have been instructed to satisfy part of the technical prerequisites by altering the
ExecuteCommandProcedure() method.
A. A lock statement.
B. A fixed statement.
C. An await statement.
D. A yield return statement.
Answer: C
Explanation:
QUESTION NO: 16
You are preparing to write the necessary code to configure the GetProcessedOrders() method in
accordance with the prerequisites for the ProcessedOrderController controller.
Answer: C
Explanation:
QUESTION NO: 17
You are required to make sure that data is presented by the InboundQueueController controller via
the GetQueueItems() method. You are required to make sure that this occurs by calling the
GetExternalOrders() method in the ExternalQueueService service.
Which of the following is the class that you should make use of?
Answer: C
QUESTION NO: 18
You are preparing to make sure that a FaultException exception occurs for the
DeletePeripheralOrder() method in the PeripheralQueueService service.
You are preparing to write the necessary code to make sure that the exception is thrown.
A. You should consider writing code that initializes a new instance of the FaultException class
using the specified reason and SOAP fault code.
B. You should consider writing code that initializes a new instance of the FaultException class
using the specified SOAP fault code.
C. You should consider writing code that initializes a new instance of the FaultException class
using the specified reason.
D. You should consider writing code that initializes a new instance of the FaultException class
using the specified fault code.
Answer: C
Explanation:
QUESTION NO: 19
You have been instructed to make sure that task-based asynchronous method signatures are
added to the service proxies. To achieve this, you are required to make use of a specific tool to
redevelop the service proxies.
A. You should consider making use of the ServiceModel Metadata Utility tool.
B. You should consider making use of the Configuration Editor Tool.
C. You should consider making use of the ServiceModel Registration Tool.
D. You should consider making use of the Service Trace Viewer Tool.
Answer: A
Explanation:
References:
QUESTION NO: 20
You have been tasked with writing code to change the ExecuteCommandProcedure() method to
meet the prerequisites stipulated in the scenario.
Answer: B
Explanation:
QUESTION NO: 21
You are in the process of writing code to make sure that the GetSupplier() method in the
ProcessedOrderController controller only queries the database if the cache is null.
Answer: C
Explanation:
QUESTION NO: 22
You are preparing to alter the entities in the designer to make sure that the QueueDetail entity
type inherits the InboundQueue entity type in the ExternalQueue service project. You want to
make sure that table-per-type inheritance is made use of.
Answer: D
Explanation:
References:
http://www.robbagby.com/entity-framework/entity-framework-modeling-table-per-type-inheritance/
QUESTION NO: 23
You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain,
named ABC.com.
You are in the process of creating an ADO.NET Entity Framework application for ABC.com. You
are preparing to make use of EdmGen.exe from the command line, to authenticate the CSDL,
SSDL, and MSL files. The mode used for this should also allow for errors or warnings to be
shown.
Which of the following is the mode of the EdmGen.exe tool that should be specified?
Answer: A
Explanation:
References:
http://msdn.microsoft.com/en-us/library/bb387165.aspx
QUESTION NO: 24
You are in the process of creating a new application using ASP.NET Web API. You have been
informed that blog administrators should have the ability to regulate blog comments. You,
therefore, have to configure the use of a suitable HTTP verb.
A. GET
B. SET
C. LOCATE
D. PUT
Answer: D
Explanation:
QUESTION NO: 25
You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain,
named ABC.com.
You are in the process of creating an ASP.NET MVC web application for ABC.com. You have
included an HTML for a client table in the application.
You have previously created an ASP.NET Web API application, which is configured to include a
client retrieval request. You have been informed that the format used to send and retrieve client
information, should be in the smallest size it can be.
You then receive instructions to write the necessary code to create a script for making sure that
the HTML is suitably updated to include information from the Web API application.
Which of the following is a data type that should be included in your code?
Answer: C
QUESTION NO: 26
You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain,
named ABC.com.
You are in the process of creating a new application using ASP.NET MVC Web API. You have
been informed that the Web API method names should correspond with the RESTful services
naming recommendations.
Answer: B
Explanation:
References:
http://msdn.microsoft.com/en-us/library/ff478141.aspx
QUESTION NO: 27
You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain,
named ABC.com.
You are in the process of creating ASP.NET MVC Web API application. You are required to write
code that includes a member of the TransferMode Enumeration.
The selected member should allow for the request message to be buffered and the response
message to be streamed.
Answer: D
Explanation:
QUESTION NO: 28
You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain,
named ABC.com.
You have been informed that ABC.com websites must be migrated from IIS 6 to IIS 7.5. You have
been tasked with performing the migration, even though SSH or a VPN is inaccessible to you.
Answer: B
Explanation:
QUESTION NO: 29
You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain,
named ABC.com.
You are in the process of creating a new application using ASP.NET MVC. You have been
informed that a suitable deployment tool should be made available to administrators who have
been assigned the necessary elevated permissions for deploying the application. Visual Studio
2102 is inaccessible to these administrators.
Answer: D
QUESTION NO: 30
You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain,
named ABC.com.
You are in the process of creating a set of libraries for ABC.com. To make sure that the libraries a
shared throughout ABC.com, you have to generate a NuGet feed that exposes the libraries.
Answer: B
Explanation:
QUESTION NO: 31
You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain,
named ABC.com.
You have created a new ASP.NET MVC application for ABC.com. The Secure Sockets Layer
(SSL) protocol has been configured to secure the application.
You are preparing to create a deployment package that should contain the installation of the SSL
certificate.
A. You should consider creating a web publish pipeline target file that includes a custom web
deploy target.
B. You should consider creating a web publish pipeline target file that includes the default web
deploy target.
C. You should consider extending the CopyAllFilesToSharedFolder target in the project file.
D. You should consider extending the CopyAllFilesToSharedFolder target in the target file.
Answer: A
QUESTION NO: 32
You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain,
named ABC.com.
You are in the process of creating a library that should be configured to support numerous
ASP.NET MVC web applications on ABC.com’s shared server. The library will be used to supply
security algorithm applications.
You have been informed that a new version of the library must be generated and installed as soon
as an issue with any of the security algorithms arises. Updating the library should not require the
application to be offline for longer than necessary.
You want to make sure that the new edition of the library is available to application in the least
time required.
A. You should consider installing the security assembly in the Global Catalog.
B. You should consider installing the security assembly in a Global Group.
C. You should consider installing the security assembly in the Global Names Zone.
D. You should consider installing the security assembly in the Global Assembly Cache (GAC).
Answer: D
Explanation:
QUESTION NO: 33
You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain,
named ABC.com.
You are in the process of creating a new application using ASP.NET MVC. The new application
will be configured to read and write information from a ABC.com database.
You have decide to configure the application to make use of an isolation level that holds shared
locks while the information is being read for the purpose of avoiding dirty reads.
Answer: A
Explanation:
QUESTION NO: 34
You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain,
named ABC.com.
You are in the process of creating a new Windows Azure based web application. You are
configuring the use of a storage service that allows for storing large amounts of unstructured data
that can be accessed from anywhere in the world via HTTP or HTTPS.
Which of the following is the storage service you are planning to use?
A. Table storage.
B. Queue storage.
C. Blob storage.
D. SQL Database.
Answer: C
Explanation:
QUESTION NO: 35
You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain,
named ABC.com.
You are in the process of creating a self-hosted WCF service that must be accessible to client
applications. You are preparing to write the necessary code to allow for this.
Answer: C
Explanation:
QUESTION NO: 36
You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain,
named ABC.com.
You are in the process of creating a WCF service. The service is configured to evaluate a number
of information supplies, resulting in extensive processing.
You have been instructed to make sure that, even though the service is active, the client keeps on
running. You also have to make sure that when the service stops running, communication with the
client application is launched.
Which of the following actions should you take to complete your task?
A. You should consider configuring the use of the Send message pattern.
B. You should consider configuring the use of the Return message pattern.
C. You should consider configuring the use of the Duplex message pattern.
D. You should consider configuring the use of the Reaction message pattern.
Answer: C
Explanation:
QUESTION NO: 37
You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain,
named ABC.com.
You are in the process of creating a WCF service that will be configured to make use of
NetTcpBinding in transport security mode. The service will also make use of Ntlm authentication.
You need to write code that includes a binding class that represents an interoperable binding,
which allows for distributed transactions and secure, reliable sessions.
Answer: D
Explanation:
QUESTION NO: 38
You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain,
named ABC.com.
You are in the process of creating a WCF service that makes use of the PerCall instancing mode.
Which of the following suitably describes the reason for using this instancing mode?
A. It allows for a new service instance to be generated for every new client request, and
maintained for as long as the session lasts.
B. It allows for a single instance of the service class to handle multiple client requests.
C. It allows for a new service instance to be generated for every client request.
D. It prevents a new service instance from being generated for every client request.
Answer: C
Explanation:
QUESTION NO: 39
You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain,
named ABC.com.
You are in the process of creating a WCF service that must be able to stream messages to
Intranet clients. You have been informed that all messages should be binary encoded. You have
also been told to make use of Windows Authentication.
You are preparing to write the necessary code to configure the service.
Which of the following is the type of binding that should be included in your code?
A. BasicHttpBinding.
B. HttpBindingBase.
Answer: C
Explanation:
QUESTION NO: 40
You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain,
named ABC.com.
You are in the process of creating a WCF service that makes use of the PerSession instancing
mode.
Which of the following suitably describes the reason for using this instancing mode?
A. It allows for a new service instance to be generated for every new client request, and
maintained for as long as the session lasts.
B. It allows for a single instance of the service class to handle multiple client requests.
C. It allows for a new service instance to be generated for every client request.
D. It prevents a new service instance from being generated for every client request.
Answer: A
Explanation:
QUESTION NO: 41
You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain,
named ABC.com.
You are in the process of creating a WCF service for ABC.com. you have been informed that you
have to make sure that the endpoints of the service is exposed to the Windows Azure Service
Bus.
QUESTION NO: 42
You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain,
named ABC.com.
You are in the process of creating a WCF service that will be configured to make use of
NetTcpBinding in transport security mode.
You need to bind ClientCredentialType property to an authentication type that can be used when
Kerberos authentication cannot be used for whatever reason.
Answer: B
Explanation:
QUESTION NO: 43
You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain,
named ABC.com.
You are in the process of creating ASP.NET MVC Web API application. You are required to write
code that includes a member of the TransferMode Enumeration.
The selected member should allow for the request message to be streamed and the response
message to be buffered.
Answer: C
Explanation:
QUESTION NO: 44
You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain,
named ABC.com.
You are in the process of creating a new application using ASP.NET Web API. You have been
informed that blog administrators should have the ability to remove comments from blogs. You,
therefore, have to configure the use of a suitable HTTP verb.
A. CUT
B. DELETE
C. COPY
D. SEND
Answer: B
Explanation:
QUESTION NO: 45
You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain,
named ABC.com.
You are in the process of creating an ASP.NET Web API application for ABC.com. The application
will be used for various alterations. A composite application from a different web domain will used
to allow a web browser to consume the alterations.
You are preparing to write code to suitably configure the Web API. The code will include the
Access-Control-Allow-Origin header.
Which of the following is the value that should be specified for the Access-Control-Allow-Origin
header?
A. @
Answer: C
Explanation:
QUESTION NO: 46
You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain,
named ABC.com.
You are in the process of creating a new application using ASP.NET MVC. The new application
will be configured to read and write information from a ABC.com database.
You have decide to configure the application to make use of an isolation level that places a range
lock on the data set, thereby preventing other users from updating or inserting rows into the
dataset until the transaction has been completed.
Answer: C
Explanation:
QUESTION NO: 47
You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain,
named ABC.com.
ABC.com has an application that queries and accesses information via the ADO.NET Entity
Framework. You want to update the ADO.NET Entity Framework to the newest addition because it
includes bug fixes to enhance functionality.
Answer: B
Explanation:
QUESTION NO: 48
You are employed as a senior developer at ABC.com. ABC.com has a single Active Directory
domain, named ABC.com.
You are running a training exercise for junior developers. You are currently discussing the Publish
Web Site Tool.
Which of the following suitably describes the Publish Web Site Tool?
A. It is a .zip file that contains all the information needed for deployment.
B. It is a tool that precompiles the files in a Web site project and then writes the output to a folder
that you stipulate.
C. It is a .config file that contains all the information needed for deployment.
D. It is a feature in Visual Studio that lets you deploy directly from the Visual Studio IDE by clicking
a button.
Answer: B
Explanation:
QUESTION NO: 49
You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain,
named ABC.com.
You are running a training exercise for junior developers. You are currently discussing the use of
Table storage.
Answer: A
Explanation:
QUESTION NO: 50
You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain,
named ABC.com.
You are running a training exercise for junior developers. You are currently discussing the one-
way message pattern.
A. Streaming.
B. Request-reply.
C. Callback.
D. Datagram.
Answer: D
Explanation: