Which code segment should you insert at line 21?

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?

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



Leave a Reply 5

Your email address will not be published. Required fields are marked *


J

J

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

W

W

A seems to be correct.