What should you conclude?
You create Microsoft Windows-based applications. You are creating a sales management application. The application will consume Web services to retrieve and save data to a database server. These Web services will be exposed to a partner extranet so that partners can write applications that will access the same data. The deployment diagram for the entire solution is as shown in the following exhibit. (Refer to the Exhibit.) After deploying the solution, local users and partners report that they are not able to retrieve any data. You find that the client computers are able to access Web applications and Web services hosted by the Web server. You also find that the local applications are able to access other databases on the database server. You need to troubleshoot the issue. What should you conclude?
What is the most likely cause of the problem?
You create Microsoft Windows-based applications. You are creating a sales management application that accesses data from a Microsoft SQL Server 2005 database. The application uses Microsoft Windows Authentication Mode to access SQL Server 2005. After testing, the design team moves the database from the test server to the production server. The design team modifies the connection string on the application. You test the new configuration on your computer and the application runs successfully. You deploy the application to five client computers. The five client computers use other applications on the network that access different databases on the production server by using Windows Authentication Mode. You evaluate the application design and the production configuration. You conclude that the application will not connect to the database. What is the most likely cause of the problem?
What should you conclude?
You create Microsoft Windows-based applications. You are creating an application that is used to run statistical sales models. Users run this application from 09:00 to 17:00 hours every day to run their analysis. The application requirements state that the application must not consume more than 20 percent of the processor time. The network administrator in your company sends you a graph displaying the processor usage for the application on a specific machine. The graph shows the processor usage for an entire day. The graph referenced by the network administrator is shown in the exhibit. (Refer to the Exhibit.) You need to evaluate the design to find whether the application performance is within the requirements. What should you conclude?
Which two actions should you perform?
You create Microsoft Windows-based applications. You are creating a sales management application. The application does not use message queuing technology. The logical datacenter diagram for the current solution is displayed in the exhibit. (Refer to the Exhibit.) Before deploying the application, you verify the list of operational requirements. You decide to meet the following operational requirements: Access to the data must be available even if a database server or a Web server is offline.Access to the database must resume automatically. You need to decide how to implement the solution. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
What should you conclude?
You create Microsoft Windows-based applications. You are creating an application that runs statistical sales models. The application will be used by 400 users on the local network. After the application is deployed, users report that the application stops responding. The application takes more than 10 minutes to resume to normal when a specific action is performed. The performance chart is shown in the Performance exhibit, and the task list of the application that is running on a sample computer is shown in the Processes exhibit. (Refer to the Exhibit.) You need to evaluate the problem by analyzing the monitored data. What should you conclude?
What should you do?
You create Microsoft Windows-based applications. You are developing a component that will be used by multiple Windows-based applications in a bank.
Your specification states the following requirements for the BankAccount class:
Store the balance value.
Implement a public property to contain the value of balance. Implement a Deposit method that receives the amount to be deposited. This method does not return anything.
Implement a Withdraw method that receives the amount to be withdrawn. This method does not return anything.
The withdraw and deposit methods must throw exceptions in the following cases:
o Negative values are used as amounts for withdrawal or deposit. o Amounts larger than the current balance are used for withdrawal. You need to create a unit test for the component. What should you do?
What should you do?
You create Microsoft Windows-based applications. You create an application that requires the user to be authenticated by a domain controller. The application consumes Web services. During acceptance testing, you detect that for some users a security exception is thrown while calling a method. The users should have access to the method. The method contains the following lines of code.
[PrincipalPermission(SecurityAction.Demand,Role=Manager)] public void ApproveOrder(int ordered) {
…
}
You need to resolve this bug. What should you do?
Which additional assertion should you test?
You create Microsoft Windows-based applications. You are designing a unit test class to test the functionality of a component named Calculator. The Calculator must function as a standard nonscientific calculator. A developer on your team writes the following lines of code for the test class. (Line numbers are included for reference only.)
01 [TestClass()]
02 public class CalculatorTest {
03 private TestContext testContextInstance;
04 public TestContext TestContext {
05 get{return testContextInstance;}
06 set{testContextInstance = value;}
07 }
08 [TestMethod()]
09 public void AddTest() {
10 Calculator target = new Calculator();
11 Assert.AreEqual(target.Add(1,1),2);
12 target.Dispose();
13 }
14 [TestMethod()]
15 public void SubtractTest() {
16 Calculator target = new Calculator();
17 Assert.AreEqual(target.Subtract(10,2),8);
18 target.Dispose();
19 }
20 }
You need to ensure that appropriate assertions are tested. Which additional assertion should you test?
Which lines of code should you add to your report?
You create Microsoft Windows-based applications. You are designing the integration test for an application. You write the following lines of code. (Line numbers are included for reference only.)
01 private void cmdCompare_Click(object sender, EventArgs e) { 02 decimal flightFare, carRental, hotelPrice, travelCost; 03 flightFare = wsFlyHigh.GetBestFare(txtOrigin.Text, txtDest.Text, datDateOut, datDateBack); 04 cmdGetRentalPrice.Parameters.Add(“@DAYS”,SqlDbType.Int); 05 cmdGetRentalPrice.Parameters[0].Value=int.Parse(txtDays.Text); 06 carRental = cmdGetRentalPrice.ExecuteScalar();
07 hotelPrice = bigDeal.GetHotelPrice(int.Parse(txtDays.Text)); 08 travelCost = flightFare + carRental + hotelPrice;
09 txtTravelCost.Text = travelCost.ToString(“C”);
10 }
You analyze the code and discover the following features:
wsFlyHigh is a Web service that is hosted on a partners extranet. cmdGetRentalPrice runs a stored procedure on a corporate database server.
bigDeal is a COM component.
You need to create a report that lists the parts of the code to be considered during integration testing.
Which lines of code should you add to your report?
Which two actions should you perform?
You create Microsoft Windows-based applications. You are reviewing code for an application that is created for a bank. You find that a Microsoft Windows Form includes the following code segment.
public partial class ATMDeposit : Form {
private BankAccount account;
public ATMDeposit() {
InitializeComponent();
}
private void ATMDeposit_Load(object sender, EventArgs e) { account = new BankAccount();
}
private void cmdDeposit_Click(object sender, EventArgs e) { account.Deposit(decimal.Parse(txtAmount.Text));
}
}
You analyze the code segment and find that the form handles no other events. You need to suggest changes to improve reliability. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)