
Answer-first summary for fast verification
Answer: Migrate the traffic to the new service by using a feature flag for registered customers.
The correct answer is **C** because feature flags allow enabling specific functionalities for select customers without requiring traffic splitting or separate deployments. The scenario involves a new image in Artifact Registry, which includes the optimizations. By using a feature flag, the application logic can check if a registered customer is accessing the API (e.g., via API keys or headers) and enable the optimization for them. This approach provides granular control, ensuring only registered customers experience the new features while the same service instance handles all traffic. Options A and B rely on traffic percentages or all-or-nothing rollouts, which do not target specific customers. Option D (session affinity) is unrelated to feature targeting and instead manages request routing for stateful sessions.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
As the lead developer for a financial risk calculation API (hosted on Cloud Run with a gRPC interface), you frequently implement optimizations for the risk calculators. You need to enable these optimizations selectively for customers who have opted into early testing before a full rollout. The CI/CD pipeline has already built and stored a new image in Artifact Registry.
Which deployment strategy should you use to achieve this?
A
Migrate the traffic to the new service by setting Cloud Run’s traffic split based on the percentage of registered customers.
B
Migrate the traffic to the new service by using a blue/green deployment approach.
C
Migrate the traffic to the new service by using a feature flag for registered customers.
D
Migrate the traffic to the new service and enable session affinity for Cloud Run.
No comments yet.