nerdexam
GoogleGoogle

PROFESSIONAL-CLOUD-DEVELOPER · Question #211

PROFESSIONAL-CLOUD-DEVELOPER Question #211: Real Exam Question with Answer & Explanation

The correct answer is A: Deploy each microservice as a Deployment. Expose the Deployment in the cluster using a. 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

Deploying applications

Question

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?

Options

  • ADeploy each microservice as a Deployment. Expose the Deployment in the cluster using a
  • BDeploy each microservice as a Deployment. Expose the Deployment in the cluster using an
  • CDeploy each microservice as a Pod. Expose the Pod in the cluster using a Service, and use the
  • DDeploy each microservice as a Pod. Expose the Pod in the cluster using an Ingress, and use the

Explanation

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

Topics

#Kubernetes Deployments#Kubernetes Services#Microservices#GKE

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVELOPER PracticeBrowse All PROFESSIONAL-CLOUD-DEVELOPER Questions