Practice Questions for 70-583: Plan, collect, and interpret diagnostics and instrumentation data

By jwmiller5 at October 22, 2010 13:22
Filed Under: Azure, certification, Articles
I'll be posting practice questions for the 70-583: PRO: Designing and Developing Windows Azure Applications certification all week. I haven't seen the test, and I apologize if these questions aren't representative of the actual exam, however, they focus on the topics outlined by Microsoft.


You are creating your team's first Windows Azure application. You plan an using this application as an example for your teammates, so you enable Diagnostics and log transfer to Azure storage. You add the following code to all of your roles



public override bool OnStart()
{
DiagnosticMonitor.Start("DiagnosticsConnectionString");
}



What debugging data will be available to your application. Assume that your DiagnosticMonitor is collecting default information only.
  1. Crash dumps
  2. IIS 7.0 log files
  3. Performance monitors
  4. Windows Event logs

Practice Questions for 70-583: Choose an appropriate upgrade strategy.

By jwmiller5 at October 22, 2010 10:42
Filed Under: Azure, certification, Articles
I'll be posting practice questions for the 70-583: PRO: Designing and Developing Windows Azure Applications certification all week. I haven't seen the test, and I apologize if these questions aren't representative of the actual exam, however, they focus on the topics outlined by Microsoft.


Your company has been working on a new analytics website hosted on Windows Azure. For the past three months, the site has been a single web role with a splash page touting the new features. Your team has finished development on the website, and the data analytics will be powerful. This requires your web application to use 4 web roles and two worker roles at launch. What is the best way to deploy the new version of this analytics website?

  1. Delete the existing Azure Application and deploy the new application with the same VIP Name
  2. Choose Upgrade on the existing application and upgrade your application in place.
  3. Create a second Azure application and deploy the new version of the application to the new Azure application. Update the original application to redirect to the new application
  4. Upload the new version to the staging configuration of the existing Azure application and perform a VIP swap.

Practice Questions for 70-583: Design a queue strategy that guarantees idempotency.

By jwmiller5 at October 19, 2010 06:08
Filed Under: Azure, certification, Articles
I'll be posting practice questions for the 70-583: PRO: Designing and Developing Windows Azure Applications certification all week. I haven't seen the test, and I apologize if these questions aren't representative of the actual exam, however, they focus on the topics outlined by Microsoft.

You are creating a Windows Azure Worker role that contains the following code

while (true)
{
taskMessage = TaskQueue.GetMessage(QueueTimeout);

if (taskMessage != null)
{
task = new Task(taskMessage);
DoTask(task);
TaskQueue.DeleteMessage(taskMessage);
}
else
Thread.Sleep(SleepInterval * 1000);
}

The role has crashed repeatedly and when you review the logs you see a ClientStorageException with the following ErrorCode: MessageNotFound and an HTTP Status 404. The StackTrace shows the TaskQueue.DeleteMessage call is causing the exception. What should you do to fix the application?


  1. Remove the offending line from the application. Once an item has been dequeued, there is no need to delete the item from the queue.
  2. Wrap the while block in a Try-Catch block and retry the operation.
  3. Increase the QueueTimeout value so the message remains invisible longer.
  4. Decrease the QueueTimeout value so the message becomes visible and can be deleted.