DVA-C03 practice question: Concurrency and performance tuning (1 of 3)
Troubleshooting and Optimization A free question from our original DVA-C03 practice exam. Try it, then open the answer to see why each option is right or wrong.
An online ticketing API runs a Node.js Lambda function behind Amazon API Gateway.
Demand jumps every weekday at 09:00, and users must see consistently low latency from the first request, without paying for that capacity all day. The API calls the function through an alias named live, which points to a published version.
What should the developer configure?
Choose one answer.
AA. Provisioned concurrency set on $LATEST, with a scheduled scaling action that raises it at 08:45 each weekday.
BB. Reserved concurrency set to the expected 09:00 peak, so that enough environments exist for the burst.
CC. Provisioned concurrency on the live alias, raised by a scheduled action before 09:00 and lowered afterwards.
DD. SnapStart turned on for the function, since it removes cold starts for every invocation.
Show the answer and explanation
Answer: C
A. Wrong: Provisioned concurrency cannot be set on $LATEST, only on a published version or an alias. The schedule would never take effect on the function the API calls.
B. Wrong: Reserved concurrency limits how many environments a function can use, and it does not start any in advance. The first requests at 09:00 would still hit cold starts.
D. Wrong: SnapStart supports Java, Python and .NET runtimes, not Node.js. It also reduces startup time without guaranteeing low latency for every request.
Explanation
Provisioned concurrency pre-initializes execution environments for a published version or alias, and a scheduled action can raise it before a predictable peak. Reserved concurrency only limits capacity. SnapStart does not support Node.js, and it is not a guaranteed cold-start fix.
Want more on Concurrency and performance tuning? The 5 full-length practice sets have 13 more Concurrency and performance tuning questions, 390 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets →