exam questions

Exam Professional Cloud Developer All Questions

View all questions & answers for the Professional Cloud Developer exam

Exam Professional Cloud Developer topic 1 question 251 discussion

Actual exam question from Google's Professional Cloud Developer
Question #: 251
Topic #: 1
[All Professional Cloud Developer Questions]

You are working on a new application that is deployed on Cloud Run and uses Cloud Functions. Each time new features are added, new Cloud Functions and Cloud Run services are deployed. You use ENV variables to keep track of the services and enable interservice communication, but the maintenance of the ENV variables has become difficult. You want to implement dynamic discovery in a scalable way. What should you do?

  • 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.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
__rajan__
7 months ago
Selected Answer: B
B is correct.
upvoted 1 times
...
purushi
8 months, 3 weeks ago
Selected Answer: B
Creating a service registry is a right choice. B is correct. One more way is to write the new service urls to the config server registry so that other application/services can fetch those urls dynamically as and when required.
upvoted 1 times
purushi
8 months, 3 weeks ago
One example of creating service directory to use in subsequent MS calls is seen in Microservice Orchestration Design principles and patterns.
upvoted 1 times
...
...
Pime13
1 year, 1 month ago
took my exam yesterday (01-03-2023) and this question was there
upvoted 2 times
...
Pime13
1 year, 2 months ago
Selected Answer: B
service directory for egistration and discovery of services
upvoted 2 times
...
mrvergara
1 year, 2 months ago
Selected Answer: B
Service Directory provides a scalable way to manage the registration and discovery of services. By creating a namespace, you can use API calls to register your Cloud Run and Cloud Functions services, and query them during runtime. This allows for dynamic discovery and eliminates the need for manually updating environment variables. Service Directory also provides features such as service health checks and metadata, which can be used to further improve the reliability and scalability of your application.
upvoted 2 times
...
TNT87
1 year, 2 months ago
Selected Answer: B
https://medium.com/google-cloud/fine-grained-cloud-dns-iam-via-service-directory-446058b4362e https://cloud.google.com/service-directory/docs/overview
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago