You develop a service that runs on a worker role in Azure. The service caches a large amount of data from a
database at startup. The service has a configuration file that includes two settings named ConnectionString
and SleepInterval.
The service must restart when the value of the ConnectionString setting changes. The service must NOT restart
when the value of the SleepInterval setting changes.
You have the following code. Line numbers are for reference only.
You need to configure the service.
Which code segment should you insert at line 21?
A.
Option A
B.
Option B
C.
Option C
D.
Option D
D
nope. A
A
https://alexandrebrisebois.wordpress.com/2013/09/29/handling-cloud-service-role-configuration-changes-in-windows-azure/
A is Correct. Service must shutdown is connection string changes.
from the above link:
“Set the Cancel property of RoleEnvironmentChangingEventArgs to true to take the instance offline, apply the configuration change, and then bring the instance back online.”
A seems to be correct.