
Ultimate access to all questions.
You are developing an application deployed on Cloud Run that utilizes Cloud Functions. With each new feature addition, new Cloud Functions and Cloud Run services are deployed. Environment variables are currently used to track services and enable interservice communication, but maintaining these variables has become cumbersome. How can you implement a scalable dynamic discovery mechanism to address this issue?
A
Configure your microservices to use the Cloud Run Admin and Cloud Functions APIs to query for deployed Cloud Run services and Cloud Functions in the Google Cloud project.
B
Create a Service Directory namespace. Use API calls to register the services during deployment, and query during runtime.
C
Rename the Cloud Functions and Cloud Run services endpoint is using a well-documented naming convention.
D
Deploy Hashicorp Consul on a single Compute Engine instance. Register the services with Consul during deployment, and query during runtime.