Google Professional Cloud Developer Question 292
Select 3Google Cloud PlatformYou are a developer for an e-commerce application hosted on Google Cloud. During a recent load test, you observed that your application’s performance degrades significantly as the number of concurrent users increases. You need to design a load testing strategy to identify the root cause of the performance issues and validate future optimizations. Which of the following steps should you include in your load testing strategy?
- A
Simulate realistic user traffic patterns with tools like Apache JMeter or Locust.
- B
Run load tests only during off-peak hours to minimize disruption to production systems.
- C
Monitor application metrics such as latency, throughput, and error rates during the test.
- D
Test the system with a single user to ensure functional correctness before proceeding to load testing.
- E
Gradually increase the load during the test to identify the system's breaking point.
Show answer and explanation
Correct answers: A, C, E
Explanation
Effective load testing involves simulating realistic traffic, monitoring key metrics to identify bottlenecks, and gradually increasing the load to determine the system's capacity. These steps enable developers to isolate performance issues and validate optimizations. Options 2 and 4 are incorrect as they don't align with the goals and practices of load testing.
- A. Correct.
Simulating realistic user traffic patterns is a critical step in load testing as it helps identify performance issues under actual usage conditions.
- B. Incorrect.
Running load tests only during off-peak hours is not a best practice as it doesn't reflect the real-world production environment. Load testing is typically done in staging or test environments.
- C. Correct.
Monitoring metrics like latency, throughput, and error rates is essential to diagnose performance bottlenecks during the load test.
- D. Incorrect.
Testing with a single user is part of functional testing, not load testing. It doesn't provide insights into how the system behaves under heavy load.
- E. Correct.
Gradually increasing the load helps determine the system's breaking point and its capacity limits.