Google Cloud Professional Cloud Developer — Question 314

You have an application running in production on Cloud Run. Your team needs to change one of the application’s services to return a new field. You want to test the new revision on 10% of your clients using the least amount of effort. You also need to keep your service backward compatible.

What should you do?

Answer options

Correct answer: C

Explanation

Option C is correct because it allows for the new revision to be deployed without traffic initially, ensuring backward compatibility while gradually introducing the change to 10% of users. Option A incorrectly deploys the new revision before traffic allocation, and option B does not maintain the backward compatibility as it updates the current service directly. Option D adds unnecessary complexity with a load balancer, which is not required for this scenario.