Microsoft PRO: Designing and Developing Windows Azure Applications Sample Questions:
1. You are designing a Windows Azure application.
The application includes a web role and a worker role that communicate by using a Windows Azure Queue.
The worker role processes each message within 10 seconds of retrieving it from the queue.
The worker role must process each message exactly one time.
If a process does not complete, the worker role must reprocess the message.
You need to recommend an approach for the worker role to manage messages in the queue.
What should you recommend?
A) Set the visibility timeout of the message to 1 when retrieving the message.
B) Process the message and then set the visibility timeout of the message to the maximum value.
C) Delete the message from the queue when retrieving the message.
D) Process the message and then delete it from the queue.
2. You are planning the migration of an existing application to Windows Azure.
The application includes a trace listener that produces log files.
The log files must be transferred to the Windows Azure Storage service each day with the minimum
amount of effort.
You need to recommend an approach for transferring the log files.
What should you recommend?
A) Perform on-demand transfers of Windows Azure logs.
B) Configure scheduled transfers of custom error logs.
C) Perform on-demand transfers of custom error logs.
D) Configure scheduled transfers of Windows event logs.
3. A Windows Azure application is running in the development fabric.
You need to recommend an approach for deploying the application to Windows Azure.
What should you recommend?
A) Use the Windows Azure AppFabric.
B) Use the Windows Azure Storage Services REST API.
C) Use XCopy deployment.
D) Use the Windows Azure Tools for Microsoft Visual Studio 2010.
4. You are designing a Windows Azure application that will store data in two SQL Azure databases.
The application will insert data in both databases as part of a single logical operation.
You need to recommend an approach for maintaining data consistency across the databases.
What should you recommend?
A) Handle errors resulting from the database calls by using compensatory logic.
B) Use Microsoft Distributed Transaction Coordinator (MSDTC).
C) Wrap the database calls in a single transaction scope.
D) Execute database calls on parallel threads.
5. You are designing a Windows Azure application.
The application will store data in Windows Azure Blob storage.
Many of the application services will be interdependent.
You need to recommend an approach for optimizing the performance of the application.
What should you recommend?
A) Create one affinity group. Associate only the compute services with the affinity group.
B) Create one affinity group. Associate the compute services and storage services with the affinity group.
C) Create one affinity group. Associate only the storage services with the affinity group.
D) Create two affinity groups. Associate the compute services with one group and the storage services with the other group.
Solutions:
Question # 1 Answer: D | Question # 2 Answer: B | Question # 3 Answer: D | Question # 4 Answer: A | Question # 5 Answer: B |