PrepAway - Latest Free Exam Questions & Answers

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?

PrepAway - Latest Free Exam Questions & Answers

A.
Option A

B.
Option B

C.
Option C

D.
Option D

5 Comments on “Which code segment should you insert at line 21?

  1. J says:

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




    0



    0

Leave a Reply