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 180 discussion

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

You are designing an application that consists of several microservices. Each microservice has its own RESTful API and will be deployed as a separate Kubernetes Service. You want to ensure that the consumers of these APIs aren't impacted when there is a change to your API, and also ensure that third-party systems aren't interrupted when new versions of the API are released. How should you configure the connection to the application following Google-recommended best practices?

  • A. Use an Ingress that uses the API's URL to route requests to the appropriate backend.
  • B. Leverage a Service Discovery system, and connect to the backend specified by the request.
  • C. Use multiple clusters, and use DNS entries to route requests to separate versioned backends.
  • D. Combine multiple versions in the same service, and then specify the API version in the POST request.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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, 1 week ago
Selected Answer: B
This approach is recommended by Google because it allows you to decouple the consumers of your APIs from the specific backend services that are providing those APIs. This makes it easier to scale your application and to make changes to your APIs without impacting the consumers.
upvoted 1 times
__rajan__
7 months, 1 week ago
Answer will be A.
upvoted 1 times
...
...
purushi
8 months, 3 weeks ago
Selected Answer: A
Ingress or Nginx service that routes ( reverse proxy ) to the appropriate urls is a best solution.
upvoted 2 times
...
TNT87
1 year, 4 months ago
Selected Answer: A
https://cloud.google.com/kubernetes-engine/docs/concepts/ingress#deprecated_annotation https://cloud.google.com/kubernetes-engine/docs/concepts/ingress#features_of_https_load_balancing Answer A
upvoted 3 times
...
micoams
1 year, 4 months ago
Selected Answer: A
B,C, and D can be eliminated B. Service discovery only works within the cluster itself, so external clients can't use it C. Using multiple clusters is an overkill, you can deploy multiple version of the same service within a single cluster D. Passing the API version in the request body is not a REST best practice The best practice is to pass the version of the API in the the URL path, e.g /v1/foo, /v2/foo Using this approach, you can route requests to the appropriate backend service within the GKE cluster using an Ingress resource, which is option A.
upvoted 3 times
...
zellck
1 year, 4 months ago
Selected Answer: D
D is the answer.
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