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

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

You are developing an application using different microservices that must remain internal to the cluster. You want the ability to configure each microservice with a specific number of replicas. You also want the ability to address a specific microservice from any other microservice in a uniform way, regardless of the number of replicas the microservice scales to. You plan to implement this solution on Google Kubernetes Engine. What should you do?

  • A. Deploy each microservice as a Deployment. Expose the Deployment in the cluster using a Service, and use the Service DNS name to address it from other microservices within the cluster.
  • B. Deploy each microservice as a Deployment. Expose the Deployment in the cluster using an Ingress, and use the Ingress IP address to address the Deployment from other microservices within the cluster.
  • C. Deploy each microservice as a Pod. Expose the Pod in the cluster using a Service, and use the Service DNS name to address the microservice from other microservices within the cluster.
  • D. Deploy each microservice as a Pod. Expose the Pod in the cluster using an Ingress, and use the Ingress IP address to address the Pod from other microservices within the cluster.
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
alpha_canary
6 months, 3 weeks ago
Selected Answer: A
"configure each microservice with a specific number of replicas" -- Deployment "address a specific microservice from any other microservice in a uniform way, regardless of the number of replicas the microservice scales to" -- Service
upvoted 2 times
...
JonathanSJ
9 months ago
Selected Answer: A
Answer is A.
upvoted 2 times
...
__rajan__
1 year ago
Selected Answer: A
A is correct.
upvoted 2 times
...
__rajan__
1 year, 1 month ago
Selected Answer: A
A is correct.
upvoted 1 times
...
purushi
1 year, 2 months ago
Selected Answer: A
Option A is very simple and straight forward answer. We need to have deployment descriptor with apiversion, kind, metadata, spec details. We can mention the replica set inside spec. All pods must communicate with each other using service DNS names -> DNS is built in for GKE cluster.
upvoted 3 times
...
telp
1 year, 9 months ago
Selected Answer: A
A Is correct because the Service will have a DNS entry inside the cluster that other microservices can use to address the pods of the Deployment that the Service is targetting. B Is not correct because an Ingress exposes a Service using an external or internal HTTP(s) load balancer, and it does not apply directly to a Deployment. C is not correct because a Pod is a single instance of the microservice, whereas a Deployment can be configured with a number of replicas. D is not correct because it combines the mistakes of options B and C.
upvoted 4 times
...
TNT87
1 year, 10 months ago
Selected Answer: A
Answer A
upvoted 1 times
...
sharath25
1 year, 10 months ago
Selected Answer: A
option A
upvoted 1 times
...
zellck
1 year, 10 months ago
Selected Answer: A
A 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