Google Cloud Associate Cloud Engineer — Question 233
You need to deploy an application in Google Cloud using serverless technology. You want to test a new version of the application with a small percentage of production traffic. What should you do?
Answer options
- A. Deploy the application to Cloud Run. Use gradual rollouts for traffic splitting.
- B. Deploy the application to Google Kubernetes Engine. Use Anthos Service Mash for traffic splitting.
- C. Deploy the application to Cloud Functions. Specify the version number in the functions name.
- D. Deploy the application to App Engine. For each new version, create a new service.
Correct answer: A
Explanation
The correct choice, A, is appropriate because Cloud Run supports gradual rollouts that allow traffic splitting for testing new versions. Option B is incorrect as Google Kubernetes Engine does not provide built-in traffic splitting in the same way. Option C is not suitable because Cloud Functions does not offer traffic management features for version testing. Option D is also incorrect because App Engine requires creating new services for each version, which does not support traffic splitting effectively.