Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Configure lease containers

A worked example

Multiple answers

Contoso runs a .NET change feed processor against the productMeta container in an Azure Cosmos DB account replicated to West Europe and North Europe. One Azure Kubernetes Service (AKS) pod in West Europe runs today with the configuration shown in the exhibit. The lease container currently holds eight leases.

You will add two more pods that run the same container image in the same AKS cluster. The processor name is hard-coded in the image. The instance name, lease container and client endpoint are read from per-pod configuration.

Requirements:

  1. The three pods must divide the leases, with one owner per lease at a time.
  2. The new pods must resume from the workload's existing checkpoints rather than initialize independent processing state. Duplicate delivery after a failure is acceptable.
  3. Every pod must read from the West Europe region while that region is available.
SettingValue
processorNamecategoryNameSync (hard-coded in the image)
Instance namecatalog-worker-1
Lease containerleases (partition key /id)
Client endpointhttps://contoso-catalog.documents.azure.com:443/
ApplicationPreferredRegionsWest Europe

Which three settings should you configure for the two new pods? Each correct answer presents part of the solution. Select three.

Choose 3 answers.
Why

Instances divide the workload when they share a lease container and processor name and have distinct instance names. Each lease has one owner at a time, but processing remains at least once, so failures can cause duplicate delivery. Using the existing global endpoint preserves the lease namespace, while ApplicationPreferredRegions selects West Europe for reads. A regional endpoint creates independent lease state instead of continuing from the existing checkpoints.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free