AWS Certified Developer - Associate (DVA-C03) Practice Questions

AWS Certified Developer - Associate (DVA-C03) exam preparation

AWS Certified Developer - Associate (DVA-C03) practice questions in English: 180 questions with explanations. The mock exam has 65 questions and 130 minutes.

AWS Certified Developer - Associate (DVA-C03) free question 9 / 10 · Domain 4: Troubleshooting and Optimization

A service runs on many instances. The X-Ray SDK reads sampling rules from a local JSON document in the code. The share of sampled requests is higher than the configured rate, and each change of the rules needs a new deployment. What should the team do?

  1. Lower the fixed rate in the local JSON document and deploy the code to the instances again
  2. Increase the reservoir in the local JSON document to have the instances record a trace per second
  3. Define the sampling rules in the X-Ray console and let the SDK read them from the service
  4. Remove the reservoir from the local rules and keep the fixed rate for the additional requests
Show the answer and explanation

Answer: C

Why this is correct
By default the SDK records the first request each second, which is the reservoir, and five percent of the additional requests. When the rules come from a local JSON document, each instance samples independently, so the reservoirs of all instances are added together and the overall sampled share rises, and a change of the rules needs a deployment. When the rules are defined in the X-Ray console and the SDK reads them from the service, the service manages the reservoir for each rule and divides it among the running instances, and the team changes the rules without a deployment.

Why the other options are wrong
"Lower the fixed rate in the local JSON document and deploy the code to the instances again" … With local rules the instances sample independently, and their reservoirs add up. A lower rate still needs a deployment for every later change and leaves the instances independent.
"Increase the reservoir in the local JSON document to have the instances record a trace per second" … The reservoir of one request per second is applied by every instance, so a larger value adds to the total. Rules in the service distribute the reservoir over the instances.
"Remove the reservoir from the local rules and keep the fixed rate for the additional requests" … The reservoir guarantees at least one trace per second. Removing it does not change that the instances sample independently, and the rules stay in the code.

Key points
X-Ray sampling rules: define them in the service (console), not in local JSON; the service shares the reservoir across instances.

Go to the AWS Certified Developer - Associate (DVA-C03) practice app (10 free questions; purchase unlocks all questions)

See the full practice set