Categories
70-487 Dumps

70-487 Real Exam Dumps Questions and answers 21-30

Get Full Version of the Exam
http://www.EnsurePass.com/70-487.html

Question No.21

You are developing an order processing application that uses the ADO.NET Entity Framework against a SQL Server database. Lazy loading has been disabled. The application displays orders and their associated order details. Order details are filtered based on the category of the product in each order.

The Order class is shown below.

image

The OrderDetail class is shown below.

image

The Product class is shown below.

image

The Category class is shown below.

image

You need to return orders with their filtered list of order details included in a single round trip to the database.

Which code segment should you use?

image

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Answer: C

Explanation/Reference:

Question No.22

You are developing a .NET application that uses the HttpClient type to call an ASP.NET Web API application. The API call returns a list of customers in JSON format and logs the results. The URI for the API call is in a variable named address. You need to make the API call without blocking. Which code segment should you use?

image

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Answer: A

Explanation/Reference:

Explanation: Example:

// Create an HttpClient instance

11: HttpClient client = new HttpClient(); 12:

13: // Send a request asynchronously continue when complete 14: client.GetAsync(_address).ContinueWith(

15: (requestTask) =gt;

16: {

17: // Get HTTP response from completed task.

18: HttpResponseMessage response = requestTask.Result; 19:

20: // Check that response was successful or throw exception 21: response.EnsureSuccessStatusCode();

22:

23: // Read response asynchronously as JsonValue and write out top facts for each country 24: response.Content.ReadAsAsynclt;JsonArraygt;().ContinueWith(

25: (readTask) =gt;

Question No.23

You are developing an ASP.NET MVC application. The application has a page that updates 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 single database table. You need to run a single query that updates an image and associated metadata in the database while returning only the number of affected rows. Which method of the EntityCommand type should you use?

A.

ExecuteNonQuery()

B.

ExecutcScalar()

C.

ExecuteDbDataReader()

D.

ExecuteReader()

Answer: A

Question No.24

You are developing a new ASP.NET MVC application that does not have an existing database. The requirements for the application are not complete, and the SQL data model will likely change. You need to choose an approach to visually manage a data model. Which approach should you use?

A.

Physical First

B.

Database First

C.

Code First

D.

Model First

Answer: D

Explanation/Reference:

Explanation:

With the model first workflow, you can design a model in a designer.

Question No.25

You are designing an ASP.NET Web API application. You need to select an HTTP verb to allow blog administrators to modify the text of a comment. Which HTTP verb should you use?

A.

GET

B.

DELETE

C.

POST

D.

PUT

Answer: D

Question No.26

You are preparing to develop a set of libraries that uses large data sets. The libraries must be shared across an organization and distributed to several servers. You need to create a remote NuGet feed that exposes the libraries for developer use. What should you do? (Each answer presents part of the solution. Choose all that apply.)

A.

Add packages to the Packages folder.

B.

Create a new Empty Web Application in Visual Studio.

C.

Configure the Packages folder located in the appSettings section of the web application#39;s Web.config.

D.

Install the NuGet.DataFeed Package.

E.

Install the NuGet.Server Package.

F.

Create a new Empty Web Site in Visual Studio.

Answer: ABCE

Explanation/Reference:

Explanation:

Creating Remote Feeds

You can host a remote (or internal) feed on a server that runs IIS. Step 1 (B): Create a new Empty Web Application in Visual Studio Step 2 (E): Install the NuGet.Server Package

Step 3 (C): Configure the Packages folder

Step 4 (A): Add Packages to the Packages folder

Step 5: Deploy and run your brand new Package Feed!

Reference:

Hosting Your Own NuGet Feeds

Question No.27

You are developing an ASP.NET MVC application that reads and writes data from a SQL Server database. You need to maintain data integrity including retrieving identical sets across reads in all situations that use transactions. Which isolation level should you use?

A.

Repeatable

B.

Serializable

C.

ReadUncommitted

D.

ReadCommitted

Answer: A

Explanation/Reference: Explanation: REPEATABLE READ

Specifies that statements cannot read data that has been modified but not yet committed by other transactions and that no other transactions can modify data that has been read by the current transaction until the current transaction completes.

Question No.28

You are developing an ASP.NET MVC application. The application is an order processing system that uses the ADO.NET Entity Framework against a SQL Server database. It has a controller that loads a page that displays customers. Customers are filtered on Country and, if provided, on CompanyName.

You have an Entity Framework context named db. The Customer class is shown below.

image

You need to execute a single deferred query to return the filtered list of customers. Which code segment should you use?

A.

Option A

B.

Option B

C.

Option C

D.

Option D

image

Answer: C

Explanation/Reference:

Question No.29

You are developing a WCF service. You need to create a duplex contract. What should you do? (Each correct answer presents part of the solution. Choose all that apply.)

A.

Apply the MessageContractAttribute attribute to every public method signature included in the appropriate contract.

B.

Create an interface for the client-side duplex contract.

C.

Create an interface for the server-side duplex contract.

D.

Apply the MessageContractAttribute attribute to the appropriate interface.

E.

Apply the ServiceContractAttribute attribute to the appropriate interface. Then, apply the OperationContractAttribute attribute to every public method signature included in that contract.

F.

Set the CallbackContract property to the appropriate interface.

Answer: CEF

Explanation/Reference:

Explanation:

To create a duplex contract

(C) Create the interface that makes up the server side of the duplex contract. (E) Apply the ServiceContractAttribute class to the interface.

Declare the method signatures in the interface.

  1. Apply the OperationContractAttribute class to each method signature that must be part of the public contract.

    Create the callback interface that defines the set of operations that the service can invoke on the client.

    Declare the method signatures in the callback interface. Apply the OperationContractAttribute class to each method signature that must be part of the public contract.

  2. Link the two interfaces into a duplex contract by setting the CallbackContract property in the primary interface to the type of the callback interface.

Reference:

How to: Create a Duplex Contract

Question No.30

You are developing an ASP.NET MVC application. The application is a loan processing system that uses the ADO.NET Entity Framework against a SQL Server database. It has a controller that loads a page that displays all loans along with rate information. Lazy loading has been disabled.

The Loan class is shown below.

image

You need to return the loans and rate information in a single round trip to the database. Which code segment should you use?

image

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Answer: B

Explanation/Reference:

Get Full Version of 70-487 Dumps

Categories
70-487 Dumps

70-487 Real Exam Dumps Questions and answers 31-40

Get Full Version of the Exam
http://www.EnsurePass.com/70-487.html

Question No.31

You are developing a library management application that uses the ADO.NET Entity Framework against a SQL Server database. The application has a method that returns check outs filtered by date.

The Book class is shown below.

image

You must filter the data on the SQL server before it is returned to the application server. You need to return books checked out more recently than the entered date.

Which code segment should you use?

image

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Answer: A

Explanation/Reference:

Explanation:

The difference is that IQueryablelt;Tgt; is the interface that allows LINQ-to-SQL (LINQ.-to- anything really) to work. So if you further refine your query on an IQueryablelt;Tgt;, that query will be executed in the database, if possible.

For the IEnumerablelt;Tgt; case, it will be LINQ-to-object, meaning that all objects matching the original query will have to be loaded into memory from the database.

Question No.32

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

You have developed a .NET Standard Library. You need to produce a NuGet package.

Solution: Run the msbuild command with the publish target specified. Does the solution meet the goal?

A.

Yes

B.

No

Answer: B

Explanation/Reference:

Explanation:

Package the component with the NuGet pack command.

References:

https://docs.microsoft.com/en-us/nuget/guides/create-net-standard-packages-vs2015

Question No.33

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

You are developing a RESTful API that uses ASP.NET Core. You plan to host the API in Azure App Services. You provision a development environment in the application service.

Developers must be able to deploy the API to the development environment. You must not share the Azure account credentials with developers.

You need to ensure that developers can deploy the API to the development environment.

Solution: Download the Publish profile for the application service and share it with the developers. Use Microsoft Visual Studio Publishing.

Does the solution meet the goal?

A.

Yes

B.

No

Answer: A

Explanation/Reference:

Explanation:

To configure deployment for a web project in Visual Studio, you create one or more publish profiles using the Publish Web wizard. A publish profile specifies the server you are deploying to, the credentials needed to log on to the server, the databases to deploy, and other deployment options. When you are ready to publish, you choose the profile you want to use and click the Publish button in the wizard or in the Web One Click Publish toolbar.

References:

https://msdn.microsoft.com/en-us/library/dd465337(v=vs.110).aspx

Question No.34

You have a web server that hosts several web applications.

From Microsoft Visual Studio, you create an assembly that is signed.

You need to make the assembly available to all of the web applications on the web server. The solution must minimize the number of copies of the assembly.

Which tool should you run?

A.

gacutil.exe

B.

sn.exe

C.

tlbImp.exe

D.

regasm.exe

Answer: B

Explanation/Reference:

Explanation:

Strong Name Scenario

The following scenario outlines the process of signing an assembly with a strong name and later referencing it by that name.

Assembly A is created with a strong name using one of the following methods: References:

https://docs.microsoft.com/en-us/dotnet/framework/app-domains/create-and-use-strong-named- assemblies

Question No.35

You deploy a RESTful ASP.NET Web API to manage order processing.

You are developing an Azure App Services Web App to consume the API and allow customers to order products. You use the HttpClient object to process order entries. The API throws SocketException errors when the Web App experiences a high volume of concurrent users.

You need to resolve the errors. What should you do?

A.

Implement a Using statement block when declaring the HttpClient object.

B.

Increase the value of the Timeout property when declaring the HttpClient object.

C.

Use the static modifier to declare the HttpClient object.

D.

Create a new HttpClient instance for each API request and use asynchronous method calls.

Answer: C

Explanation/Reference:

Explanation:

If the class that wraps the external resource is shareable and thread-safe, create a shared singleton instance or a pool of reusable instances of the class.

The following example uses a static HttpClient instance, thus sharing the connection across all requests.

public class SingleHttpClientInstanceController : ApiController

{

private static readonly HttpClient httpClient; static SingleHttpClientInstanceController()

{

httpClient = new HttpClient();

}

// This method uses the shared instance of HttpClient for every call to GetProductAsync. public async Tasklt;Productgt; GetProductAsync(string id)

{

var hostName = HttpContext.Current.Request.Url.Host;

var result = await httpClient.GetStringAsync(string.Format(quot; http://{0}:8080/api/… quot;, hostName)); return new Product { Name = result };

}

}

References:

https://docs.microsoft.com/en-us/azure/architecture/antipatterns/improper-instantiation/

Question No.36

You are developing a web application by using Microsoft .NET Framework 4.5.

You are creating a web client for the application. The web client will make REST calls to several web services.

You need to ensure that the web client meets the following requirements: Uses the Task class to perform asynchronous operations

image

Reuses recently resolved DNS lookups

image

Which object should you include in the solution?

A.

ServiceClient

B.

WebClient

C.

HttpClient

D.

WebRequest

Answer: C

Explanation/Reference:

Explanation:

https://www.c-sharpcorner.com/article/calling-web-api-using-httpclient/

Question No.37

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

You are developing a RESTful API that uses ASP.NET Core. You plan to host the API in Azure App Services. You provision a development environment in the application service.

Developers must be able to deploy the API to the development environment. You must not share the Azure account credentials with developers.

You need to ensure that developers can deploy the API to the development environment.

Solution: Share the Publish profile for the application service with the developers. Use Web Matrix 2 for publishing.

Does the solution meet the goal?

A.

Yes

B.

No

Answer: B

Explanation/Reference:

Explanation:

You should use a Publishing Profile with Microsoft Visual Studio Publishing as WebMatrix enables developers to build websites, while Visual Studio Publishing is used to develop computer programs for Microsoft Windows, as well as web sites, web applications and web services.

References:

https://msdn.microsoft.com/en-us/library/dd465337(v=vs.110).aspx

Question No.38

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

You develop a REST API that uses Node.js. The API will store data in Azure Cosmos DB. You plan to deploy the API to a new Azure App Services Web App. You create a new Web App by using the Azure portal.

The API must be deployed by using SFTP.

You need to provide the proper deployment credentials to deploy the API.

Solution: Download the. PublishSettings file and enter the username and password located in the file.

Does the solution meet the goal?

A.

Yes

B.

No

Answer: A

Explanation/Reference:

Explanation: Example:

# Get FTP publishing profile and query for publish URL and credentials

creds=($(az webapp deployment list-publishing-profiles name $webappname resource-group myResourceGroup \

-query quot;[?contains(publishMethod, #39;FTP#39;)].[publishUrl,userName,userPWD]quot; output tsv)) query quot;[?contains(publishMethod, #39;FTP#39;)].[publishUrl,userName,userPWD]quot; output tsv))

References:

https://docs.microsoft.com/en-us/azure/app-service/scripts/app-service-cli-deploy-ftp

Question No.39

You are developing an ASP.NET Core web application by using an Entity Framework code-first approach.

The application uses a SQLite database.

You make changes to the classes in the model. You must apply the changes to the database. You need to suggest an approach to reliably handle the Entity Framework migrations.

Which three actions should you perform? Each correct answer presents a part of the solution. NOTE: Each correct selection is worth one point.

A.

Modify the scaffolded migration script to drop the modified tables.

B.

Run the following command: dotnet ef database update

C.

Modify the scaffolded migration script to create new tables with the migration changes.

D.

Modify the scaffolded migration script to drop the existing database and create the new database.

E.

Run the following command: dotnet ef migrations add

Answer: CDE

Explanation/Reference:

Explanation:

E: Run dotnet ef migrations add InitialCreate to scaffold a migration and create the initial set of tables for the model.

C: You can workaround some of the SQLite 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.

D: SQLite does not support all migrations (schema changes) due to limitations in SQLite. For new development, consider dropping the database and creating a new one rather than using migrations when your model changes.

References:

https://docs.microsoft.com/en-us/ef/core/get-started/netcore/new-db-sqlite https://docs.microsoft.com/en-us/ef/core/providers/sqlite/limitations

Question No.40

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

You have developed a .NET Standard Library. You need to produce a NuGet package.

Solution: Run the NuGet pack command Does the solution meet the goal?

A.

Yes

B.

No

Answer: A

Explanation/Reference:

Explanation:

Package the component with the NuGet pack command, for example: nuget pack AppLogger.nuspec

This generates AppLogger.YOUR_NAME.1.0.0.nupkg.

References:

https://docs.microsoft.com/en-us/nuget/guides/create-net-standard-packages-vs2015

Get Full Version of 70-487 Dumps

Categories
70-487 Dumps

70-487 Real Exam Dumps Questions and answers 41-50

Get Full Version of the Exam
http://www.EnsurePass.com/70-487.html

Question No.41

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

You deploy an ASP.NET Core web application to Azure App Services. You are using Azure Event Hubs to collect the telemetry data for the application.

You need to configure Event Hubs to automatically deliver the telemetry data stream to a persistent data store.

Solution: Configure Azure Event Hubs Capture to deliver data to Azure File Service. Does the solution meet the goal?

A.

Yes

B.

No

Answer: B

Explanation/Reference:

Explanation:

Use Azure Blob storage to store the telemetry data.

References:

https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-capture-overview

Question No.42

You are developing an ASP.NET Core web application by using an Entity Framework code-first approach. The application uses an Azure SQL Database. The code-first migration is configured to run as part of a continuous integration build.

You must add an Azure MySQL Database. This database must use the same schema as the existing Azure SQL Database instance.

You need to configure the migration to ensure that the existing TFS build definition remains unchanged.

What are two possible ways to achieve this goal? Each correct answer presents a complete solution.

NOTE: Each correct selection is worth one point.

A.

Use the ActiveProvider property to specify the provider to which the migration is applied.

B.

Create a new type that derives from DbContext and override the ActiveProvider object. Then, add

or apply migrations using this type.

C.

Use the Entity Framework Core Fluent API to identify database providers.

D.

Create a separate Migration Assembly than the one containing the DbContext and switch the active provider during build.

Answer: BC

Explanation/Reference:

Explanation:

https://medium.com/@rc_dos_santos/how-configure-asp-net-core-web-api-project-with-mysql- database-b7a64a247a99

Question No.43

You have a web application that was developed by using Microsoft ASP.NET MVC. The application is deployed to an Azure web app and uses an Azure SQL Database.

From a development environment, you use Microsoft Visual Studio to change the application code, and you modify the schema of the database.

You need to deploy the changes to Azure. Which publishing method should you use?

A.

BACPAC

B.

FTP

C.

Msdeploy

D.

Robocopy

Answer: A

Explanation/Reference:

Explanation:

You can deploy a .bacpac file to an Azure SQL Database using an Azure Resource Manager Template. .bacpac contains the schema and data necessary to deploy your database.

Note:

A BACPAC file is a ZIP file with an extension of BACPAC containing the metadata and data from a SQL Server database. A BACPAC file can be stored in Azure blob storage or in local storage in an on-premises location and later imported back into Azure SQL Database or into a SQL Server on-premises installation.

References:

https://docs.microsoft.com/en-us/azure/sql-database/sql-database-export

Question No.44

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these

questions will not appear in the review screen. You have developed a .NET Standard Library. You need to produce a NuGet package.

Solution: Run the dotnet pack command Does the solution meet the goal?

A.

Yes

B.

No

Answer: B

Explanation/Reference:

Explanation:

Package the component with the NuGet pack command. References:

https://docs.microsoft.com/en-us/nuget/guides/create-net-standard-packages-vs2015

Question No.45

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

You are developing a RESTful API that uses ASP.NET Core. You plan to host the API in Azure App Services. You provision a development environment in the application service.

Developers must be able to deploy the API to the development environment. You must not share the Azure account credentials with developers.

You need to ensure that developers can deploy the API to the development environment.

Solution: Add the developers to the same Azure Active Directory (Azure AD) as the Azure subscription in which the App Service is provisioned. Use XCopy to deploy to the App Service.

Does the solution meet the goal?

A.

Yes

B.

No

Answer: B

Explanation/Reference:

Explanation:

You should use a Publishing Profile with Microsoft Visual Studio Publishing.

References:

https://msdn.microsoft.com/en-us/library/dd465337(v=vs.110).aspx

Question No.46

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

You deploy an ASP.NET Core web application to Azure App Services. You are using Azure Event Hubs to collect the telemetry data for the application.

You need to configure Event Hubs to automatically deliver the telemetry data stream to a persistent data store.

Solution: Configure Event Hubs Capture to deliver data to Azure Blob storage. Does the solution meet the goal?

A.

Yes

B.

No

Answer: A

Explanation/Reference:

Explanation:

Azure Event Hubs Capture enables you to automatically deliver the streaming data in Event Hubs to an Azure Blob storage or Azure Data Lake Store account of your choice, with the added flexibility of specifying a time or size interval.

References:

https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-capture-overview

Question No.47

You have a Web.config file that contains the following markup.

image

You need to use an XSLT transformation to remove the add tag for Key3. Which markup should you use?

A.

lt;add key=quot;Key3quot; xdt: Transform=quot;Removequot; /gt;

B.

lt;add key=quot;Key3quot; xdt:Transform=quot;Removequot; xdt:Locator=quot;Match(/configuration/appSettings/add[@key=#39;Key3#39;])quot;/gt;

C.

lt;add xdt:Transform=quot;Removequot; /gt;

D.

lt;add key=quot;Key3quot; xdt:Transform=quot;Removequot; xdt:Locator=quot;Match(key)quot; /gt;

Answer: D

Explanation/Reference:

Explanation:

https://msdn.microsoft.com/en-us/library/dd465326(v=vs.110).aspx

Question No.48

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

You develop a REST API that uses Node.js. The API will store data in Azure Cosmos DB. You plan to deploy the API to a new Azure App Services Web App. You create a new Web App by using the Azure portal.

The API must be deployed by using SFTP.

You need to provide the proper deployment credentials to deploy the API. Solution: Use your assigned Azure Active Directory (Azure AD) credentials. Does the solution meet the goal?

A.

Yes

B.

No

Answer: B

Explanation/Reference:

Explanation:

Get FTP publishing profile and query for publish URL and credentials.

References:

https://docs.microsoft.com/en-us/azure/app-service/scripts/app-service-cli-deploy-ftp

Question No.49

You create a web application.

You deploy the application by using a Web Deploy Package.

You need to identify which setting will be created automatically in the SetParameters.xml file during the package generation.

Which three settings should you identify? Each correct answer presents part of the solution.

A.

the connection strings in the Web.config file

B.

the destination IIS web application path and name

C.

the service endpoints of the Web.config file

D.

the connection strings of any databases you add to the Package/Publish SQL tab on the Properties page of the project

E.

the application settings of the Web.config file

Answer: ABD

Explanation/Reference:

Explanation:

https://docs.microsoft.com/en-us/aspnet/web-forms/overview/deployment/web-deployment-in-the- enterprise/configuring-parameters-for-web-package-deployment

Question No.50

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

You have a web application in a Docker container image. You set the tag for the image as myApp. You plan to deploy the application to Azure Container Services.

You run the following commands. All commands complete successfully.

image

You need to ensure that the image can be run on an Azure Container Service cluster. Solution: You run the following commands:

image

Does the solution meet the goal?

A.

Yes

B.

No

Answer: B

Explanation/Reference:

Explanation:

First tag the image, and the push it into your private registry.

References:

https://medium.com/@pjbgf/azure-kubernetes-service-aks-pulling-private-container-images-from- azure-container-registry-acr-9c3e0a0a13f2

Get Full Version of 70-487 Dumps

Categories
70-487 Dumps

70-487 Real Exam Dumps Questions and answers 51-60

Get Full Version of the Exam
http://www.EnsurePass.com/70-487.html

Question No.51

You have a Microsoft Visual Studio project named Project1 that is deployed as an Azure web app. The Azure web app uses an Azure SQL Database.

You plan to deploy updates to the Azure web app by using a Web Deploy Package.

The password for the Azure SQL Database was changed since you first published the Azure web app.

You need to deploy the package by using Windows PowerShell.

Which file should you modify before running the PowerShell deployment script?

A.

WebApiConfig.cs from the App_Start folder

B.

IdentityConfig.cs from the App_Start folder

C.

App.config from the Web Application folder

D.

Project1-waws-dev.json from the Configurations folder

Answer: A

Question No.52

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

You deploy an ASP.NET Core web application to Azure App Services. You are using Azure Event Hubs to collect the telemetry data for the application.

You need to configure Event Hubs to automatically deliver the telemetry data stream to a persistent data store.

Solution: Configure Azure Event Hubs Capture to deliver data to Azure SQL Database. Does the solution meet the goal?

A.

Yes

B.

No

Answer: B

Explanation/Reference:

Explanation:

Use Azure Blob storage to store the telemetry data.

References:

https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-capture-overview

Question No.53

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

You develop a REST API that uses Node.js. The API will store data in Azure Cosmos DB. You plan to deploy the API to a new Azure App Services Web App. You create a new Web App by using the Azure portal.

The API must be deployed by using SFTP.

You need to provide the proper deployment credentials to deploy the API. Solution: Use your Azure Cosmos DB master key and resource token.

Does the solution meet the goal?

A.

Yes

B.

No

Answer: B

Explanation/Reference:

Explanation:

Get FTP publishing profile and query for publish URL and credentials

References:

https://docs.microsoft.com/en-us/azure/app-service/scripts/app-service-cli-deploy-ftp

Question No.54

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these

questions will not appear in the review screen.

You have a web application in a Docker container image. You set the tag for the image as myApp. You plan to deploy the application to Azure Container Services.

You run the following commands. All commands complete successfully.

image

You need to ensure that the image can be run on an Azure Container Service cluster. Solution: You run the following commands:

image

Does the solution meet the goal?

A.

Yes

B.

No

Answer: B

Explanation/Reference:

Explanation:

You need the push the image into your private registry, not pull it.

References:

https://medium.com/@pjbgf/azure-kubernetes-service-aks-pulling-private-container-images-from- azure-container-registry-acr-9c3e0a0a13f2

Question No.55

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

You have a web application in a Docker container image. You set the tag for the image as myapp. You plan to deploy the application to Azure Container Services.

You run the following commands. All commands complete successfully.

image

You need to ensure that the image can be run on an Azure Container Service cluster.

Solution: You run the following commands:

image

Does the solution meet the goal?

A.

Yes

B.

No

Answer: A

Explanation/Reference:

Explanation:

First tag the image, and the push it into your private registry.

References:

https://medium.com/@pjbgf/azure-kubernetes-service-aks-pulling-private-container-images-from- azure-container-registry-acr-9c3e0a0a13f2

Question No.56

You are developing an application that reads and writes data from a SQL Server database. You need to ensure transactional data integrity.

Which isolation level should you use?

A.

Serializable

B.

ReadCommitted

C.

ReadUncommitted

D.

Normal

Answer: C

Explanation/Reference:

Explanation:

Serializable provides the highest level of data integrity.

References:

https://msdn.microsoft.com/en-us/library/system.data.isolationlevel(v=vs.1 Topic 5, Adventure Works Cycles

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 Cycles 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.

image

The CarBusinessLogic.dll assembly must be strongly-named.

image

Communication between the on-premises WCF service and Azure must be encrypted.

image

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(quot;pre-processing loggingquot;); 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

image

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

image

actions must be synchronous.

When home.aspx is displayed, the rendered page must be cached for 10 minutes.

image

The web application will be deployed to multiple instances.

image

Financial Requirements

ReportApp will shut down every night. However, data from the searches performed during the night must still be collected.

Question No.57

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?

A.

the service definition file (.csdef)

B.

the application configuration file (app.config)

C.

the packages configuration file (packages.config)

D.

the Global.asax file (.asax)

Answer: A

Explanation/Reference:

Explanation:

You use cscfg file to define various settings related to your cloud application (in ConfigurationSettings section). Like app.config file, you get to define other things (e.g.number of instances of your cloud application) in the cscfg file. You could change the settings in a cscfg file on the fly using either the portal or Service Management API without having to repackage and redeploy the application.

Scenario: 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.

Question No.58

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

A.

Azure Automation

B.

Azure RemoteApp

C.

the Service Bus queue

D.

a virtual private network (VPN)

E.

the Service Bus topics

F.

the Service Bus relay

G.

ExpressRoute

Answer: C

Explanation/Reference:

Explanation:

Azure Service Bus Messaging can safely use the QueueClient object for sending messages from concurrent asynchronous operations and multiple threads.

Scenario: The action in the Web API that returns the car brand must be asynchronous, while all other actions must be synchronous.

References:

https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-performance- improvements

Question No.59

You need to implement a solution that meets the logging requirements. Which class should you use?

A.

RouteAttribute

B.

RoutePrefixAttribute

C.

AcceptVerbsAttribute

D.

ActionFilterAttribute

Answer: D

Question No.60

ReportApp will shut down every night. However, data from the searches performed during the night must still be collected.

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

A.

ViewState

B.

MemoryCache

C.

OutputCache

D.

ApplicationCache

Answer: C

Explanation/Reference:

Explanation:

Scenario: When home.aspx is displayed, the rendered page must be cached for 10 minutes. Page output caching

The output of an action method on a controller can be cached using the [OutputCache]attribute on the method. Actions methods that return views will have the rendered page cached, while methods returning JSON data will have that data saved. A number of properties on the OutputCacheAttribute class control how data is cached.

CacheProfile- If a number of methods will have the same cache settings, it makes sense to use the web.config file to create a cache profile that can be used across all these methods.

The Duration attribute of the CacheProfile determines how long, in seconds, the output should be cached. To save an item for 10 minutes, duration would be set to 600.

[OutputCache(Duration=600)] References:

http://failedturing.blogspot.se/2014/10/microsoft-70-486-design-caching-strategy.html

Get Full Version of 70-487 Dumps

Categories
70-487 Dumps

70-487 Real Exam Dumps Questions and answers 1-10

Get Full Version of the Exam
http://www.EnsurePass.com/70-487.html

Question No.1

You are building an ADO.NET Entity Framework application. You need to validate the conceptual schema definition language (CSDL), store schema definition language (SSDL), and mapping specification language (MSL) files. Which Entity Data Model tool can you use? (Each correct answer presents a complete solution. Choose all that apply.)

A.

EDM Generator (EdmGen.exe)

B.

ADO.NET Entity Data Model Designer

C.

Entity Data Model Wizard

D.

Update Model Wizard

Answer: AB

Question No.2

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?

A.

GET

B.

POST

C.

DELETE

D.

PUT

Answer: D

Question No.3

You are developing an ASP.NET MVC web application that contains the following HTML.

lt;table id= quot;customerquot; gt;lt;/tablegt;

You also have an ASP.NET Web API application that contains a call for retrieving customers. You must send and retrieve the data in the most compact format possible.

You need to update the HTML for the customers table to contain data from the Web API application.

Which script segment should you use?

image

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Answer: A

Question No.4

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?

A.

RoboCopy

B.

Web Deploy

C.

Microsoft command-line FTP

D.

xCopy

Answer: B

Question No.5

You are developing an ASP.NET MVC application. Applications can be deployed to remote servers only by administrators who have elevated privileges. The administrators do not have access to Visual Studio 2012. You need to select a deployment tool to deploy the application to remote servers for testing. Which tool should you use?

A.

Copy Web Site Tool

B.

One-Click Publish

C.

Publish Web Site Tool

D.

Web Deployment Package

Answer: D

Question No.6

You are preparing to develop a set of libraries for a company. The libraries must be shared across the company. You need to create a remote NuGet feed that exposes the libraries. What should you do? (Each answer presents part of the solution. Choose all that apply.)

A.

Install the NuGet.Feed Package.

B.

Install the NuGet.Server Package.

C.

Configure the Packages folder located in the system.webserver section of the web application#39;s Web.config.

D.

Create a new Empty Web Site in Visual Studio 2012.

E.

Configure the Packages folder located in the appSettings section of the web application#39;s Web.config.

F.

Add packages to the Packages folder.

G.

Create a new Empty Web Application in Visual Studio 2012.

Answer: BEFG

Explanation/Reference:

Explanation:

image

Question No.7

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?

A.

Create a web publish pipeline target file with a custom web deploy target.

B.

In the Package/Publish settings of the project, select the All Files in this project option.

C.

Extend the CopyAllFilesToSingleFolder target in the project file.

D.

In the Build Events settings of the project, configure a pre-build event to include the SSL certificate.

Answer: A

Question No.8

You are developing a library to support multiple ASP.NET MVC web applications on a shared server. The library provides implementations of security algorithms. If a problem with any of the security algorithms is discovered, a new version of the library must be created and deployed. Application downtime during the update must be minimized. You need to ensure that the new version of the library will be used by all applications as soon as possible. What should you do?

A.

Build the web applications and include the security assembly as an embedded resource. When an update is needed, copy the new assembly to the bin directory for the application.

B.

Sign all assemblies in each application with the same key used to sign the security assembly. When an update is needed, create a new key pair and re-sign all assemblies.

C.

Build the security assembly as a netmodule in a shared location.

Use the assembly linker to merge the netmodule into the assemblies for the application. When an update is needed, update the netmodule in the shared location.

D.

Install the security assembly in the Global Assembly Cache (GAC). When an update is needed, update the assembly in the GAC.

Answer: D

Question No.9

You are developing an application in Visual Studio 2012 to display student information. The application contains the following Entity Framework model.

image

The application contains a WCF data service named DirectoryService.svc.

You need to create a query expression to display all of the grades for students whose first name is quot;Johnquot;

How should you build the expression?

A.

http://localhost:54946/DirectoryService.svc/Students?$filter=FirstName eq #39;John#39;

amp;$expand=Grades

B.

http://localhost:54946/DirectoryService.svc/Students?$filter=FirstName eq #39;John#39;/Grades

C.

http://localhost:54946/DirectoryService.svc/Students?$filter=FirstName = #39;John#39; amp;$expand=Grades

D.

http://localhost:54946/DirectoryService.svc/Grades/Students?$filter=FirstName eq #39;John#39;

Answer: A

Question No.10

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?

A.

ReadCommitted

B.

Serializable

C.

Repeatable

D.

ReadUncommitted

Answer: A

Get Full Version of 70-487 Dumps

Categories
70-487 Dumps

70-487 Real Exam Dumps Questions and answers 11-20

Get Full Version of the Exam
http://www.EnsurePass.com/70-487.html

Question No.11

You are developing a WCF service that compares several data sources. The service takes a long time to complete.

The service must meet the following requirements:

The client must be able to continue processing while the service is running.

image

The service must initiate communication with the client application when processing is

image

complete.

You need to choose a message pattern to meet the requirements. Which message pattern should you choose?

A.

One Way

B.

Streaming

C.

Duplex

D.

Request/Reply

Answer: C

Explanation/Reference:

Question No.12

You are developing a WCF service. A new service instance must be created for each client session. You need to choose an instancing mode. Which instance mode should you use?

A.

PerCall

B.

Single

C.

Multiple

D.

PerSession

E.

PerRequest

Answer: D

Question No.13

You are developing a WCF service. A new service instance must be created for each client request. You need to choose an instancing mode. Which instancing mode should you use?

A.

Single

B.

PerRequest

C.

PerCall

D.

Multiple

E.

PerSession

Answer: C

Explanation/Reference:

Question No.14

You are designing an ASP.NET Web API application. You need to select an HTTP verb to allow blog administrators to remove a comment. Which HTTP verb should you use?

A.

PUT

B.

DELETE

C.

POST

D.

GET

Answer: B

Question No.15

You are developing an ASP.NET MVC application that reads and writes data from a SQL Server database. You need to maintain data integrity in all situations that use transactions.

A.

ReadUncommitted

B.

Repeatable

C.

Serializable

D.

ReadCommitted

Answer: C

Explanation/Reference:

Question No.16

You are developing an ASP.NET MVC application. The application is an order processing system that uses the ADO.NET Entity Framework against a SQL Server database. It has a controller that loads a page that displays all orders along with customer information. Lazy loading has been disabled.

The Order class is shown below.

image

You need to return the orders and customer information in a single round trip to the database. Which code segment should you use?

image

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Answer: A

Explanation/Reference:

Question No.17

You are developing an ASP.NET MVC application. Deployment administrators do not have access to Visual Studio 2102, but will have the elevated permissions required to deploy the application to the servers. You need to select a deployment tool for use by the deployment administrators. Which tool should you use?

A.

Publish Web Site Tool

B.

Web Deployment Package

C.

One-Click Publish

D.

Deployment Package Editor

Answer: B

Explanation/Reference:

Question No.18

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?

A.

1

B.

2

C.

5

D.

10

Answer: B

Explanation/Reference:

Question No.19

You are developing an ASP.NET MVC application that displays a report. The report includes large images that are stored in a database. Members of the EntityClient namespace are used to access the database through the ADO.NET Entity Framework data model. You need to prevent memory exceptions while generating a report using the EntityDataRcader type. Which CommandBehavior type should you use?

A.

FastForwardReadOnly

B.

SequentialAccess

C.

SingleResult

D.

SingleRow

Answer: B

Explanation/Reference: Explanation: SequentialAccess

Provides a way for the DataReader to handle rows that contain columns with large binary values.

Rather than loading the entire row, SequentialAccess enables the DataReader to load data as a stream.

Question No.20

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?

A.

ExecuteScalar

B.

ExecuteDbDataReader

C.

ExecuteReader

D.

ExecuteNonQuery

Answer: A

Explanation/Reference: Explanation: ExecuteScalar

Executes the command, and returns the first column of the first row in the result set. Additional columns or rows are ignored.

Get Full Version of 70-487 Dumps