Skip to content
Sharp

Reflection API · interview question

Why cache reflective metadata into route registries or handler objects after startup?

Multiple choiceHardchapter-16-curatedpremiumreflection-apimethod-invoke
Choose one answer
Answer and explanation

Correct answer

A. It avoids repeated lookups and keeps the request path simpler and more stable

Why

Scanning and resolving reflective metadata repeatedly adds overhead and complexity. Caching the result in stable handler objects keeps runtime dispatch faster and easier to reason about.

Test yourself on Reflection API

A free test with instant, explained results. No account needed.

Start free test
All Reflection API questions →