How should you complete the code segment?

HOTSPOT
You deploy a cloud service that reads and processes orders from a queue by using a worker role. The service
includes a C# class named OrderProcessor.
Your organization is moving all Azure resources to use Azure Resource Manager (ARM) templates. You must
migrate the code to Service Fabric. You establish a new Service Fabric cluster to deploy the updated code. You
migrate all settings from the ServiceConfiguration.cscfg to a new Settings.xml file that each Service Fabric
instance will use.
You need to update the code for the OrderProcessor class.
How should you complete the code segment? To answer, select the appropriate options in the answer area.
Hot Area:

HOTSPOT
You deploy a cloud service that reads and processes orders from a queue by using a worker role. The service
includes a C# class named OrderProcessor.
Your organization is moving all Azure resources to use Azure Resource Manager (ARM) templates. You must
migrate the code to Service Fabric. You establish a new Service Fabric cluster to deploy the updated code. You
migrate all settings from the ServiceConfiguration.cscfg to a new Settings.xml file that each Service Fabric
instance will use.
You need to update the code for the OrderProcessor class.
How should you complete the code segment? To answer, select the appropriate options in the answer area.
Hot Area:

Answer:

Explanation:
https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cloud-services-migration-worker-rolestateless-service



Leave a Reply 2

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


valery

valery

Function doesn’t return any IEnumerable and so will not compile.
So I think first choiсe must be Task RunAsync(CancellationToken cancelServiceInstance()