D4: Optimizing Application Performance
AWS Certified Generative AI Developer – Professional exam practice questions · 11 flashcards
Question
Latency-cost trade-offs?
1 / 11
Tip: Space flips the card, ← / → navigate.
Show all 11 Optimizing Application Performance practice questions and answers
- Latency-cost trade-offs?Pre-compute, smaller/latency-optimized models, parallel calls, streaming.
- Pre-computation?Generate summaries/embeddings ahead of time.
- Parallel requests?Run independent model/retrieval calls concurrently.
- Response streaming benefit?Reduces perceived latency (time to first token).
- Performance benchmarking?Measure p50/p95 latency, tokens/sec under load.
- Retrieval performance tuning?Index optimization, query preprocessing, hybrid search with custom scoring.
- Concurrent invocation management?Limit concurrency to quotas; queue excess; use cross-Region inference.
- Tuning model parameters?Adjust temperature, top-p/top-k, max tokens per task via A/B tests.
- API call profiling?X-Ray/CloudWatch to find slow components.
- Efficient service communication?Keep-alive connections, regional co-location, async messaging.
- Scenario: users wait 8 s before seeing any text. Quick fix?Enable response streaming.