DevOps

Performance Optimization

Load testing, profiling, caching strategies, CDN, database optimization, autoscaling, troubleshooting performance issues

22 interview questions·
Senior
1

What is a CDN and what is its main advantage?

Answer

A CDN (Content Delivery Network) distributes static assets (images, CSS, JS) across servers geographically close to users. This reduces latency (typically from 500ms to 50ms) and offloads the main server. CloudFront (AWS), Cloudflare, and Fastly are common examples used to improve overall web application performance.

2

What is the main difference between load testing and stress testing?

Answer

Load testing evaluates performance under normal or expected load to verify the system meets SLAs (response time, throughput). Stress testing pushes the system beyond its limits to identify the breaking point and observe behavior under extreme conditions. Stress testing also reveals how the system recovers after overload.

3

Which metric is most important for measuring perceived user performance during a load test?

Answer

Latency at the 95th or 99th percentile (P95/P99) reflects the experience of the most impacted users, unlike average latency which masks spikes. A P99 of 2 seconds means 99% of requests are faster, but 1% experience slowdowns. Monitoring high percentiles helps identify performance issues before they affect a significant portion of users.

4

Which profiling tool visualizes function calls and their execution time as a horizontal graph?

5

What does the acronym RED mean in the context of service monitoring?

+19 interview questions

Master DevOps for your next interview

Access all questions, flashcards, technical tests, code review exercises and interview simulators.

Start for free