Google Cloud Professional Cloud Developer — Question 225
You need to load-test a set of REST API endpoints that are deployed to Cloud Run. The API responds to HTTP POST requests. Your load tests must meet the following requirements:
• Load is initiated from multiple parallel threads.
• User traffic to the API originates from multiple source IP addresses.
• Load can be scaled up using additional test instances.
You want to follow Google-recommended best practices. How should you configure the load testing?
Answer options
- A. Create an image that has cURL installed, and configure cURL to run a test plan. Deploy the image in a managed instance group, and run one instance of the image for each VM.
- B. Create an image that has cURL installed, and configure cURL to run a test plan. Deploy the image in an unmanaged instance group, and run one instance of the image for each VM.
- C. Deploy a distributed load testing framework on a private Google Kubernetes Engine cluster. Deploy additional Pods as needed to initiate more traffic and support the number of concurrent users.
- D. Download the container image of a distributed load testing framework on Cloud Shell. Sequentially start several instances of the container on Cloud Shell to increase the load on the API.
Correct answer: C
Explanation
Option C is correct because deploying a distributed load testing framework on Google Kubernetes Engine allows for scalability and traffic management from multiple sources. Options A and B are less efficient as they rely on cURL in instance groups, which is not optimal for distributed testing. Option D does not provide true parallel load generation across multiple IPs, as it operates sequentially in Cloud Shell.