Google Associate Cloud Engineer exam dumps

Google Associate Cloud Engineer practice question 121 of 375

Associate Cloud Engineer. Free level, Google Cloud. Free question with the correct answer and a full explanation.

Google Associate Cloud Engineer Question 121

Select 3Google Cloud Platform

You are tasked with deploying a containerized web application on Google Kubernetes Engine (GKE). The application needs to be accessible to users over the internet. Which of the following steps should you perform to expose your application publicly on GKE?

  1. A

    Create a Deployment for your application.

  2. B

    Use a Service of type ClusterIP to expose the Deployment.

  3. C

    Use a Service of type LoadBalancer to expose the Deployment.

  4. D

    Configure a Network Endpoint Group (NEG) for the application.

  5. E

    Ensure the firewall rules allow traffic on the appropriate port.

Show answer and explanation

Correct answers: A, C, E

Explanation

To expose a containerized application on GKE publicly, you start by creating a Deployment to manage your application pods. Then, you need a Service of type LoadBalancer, which assigns an external IP address to your application, making it accessible over the internet. Additionally, you must configure firewall rules to allow traffic on the necessary ports. Using a Service of type ClusterIP would not suffice as it only exposes the application internally within the cluster.

  • A. Correct.

    Creating a Deployment is necessary to manage the application pods and their lifecycle.

  • B. Incorrect.

    A Service of type ClusterIP is only accessible within the cluster, not from the internet.

  • C. Correct.

    A Service of type LoadBalancer provisions an external IP to make the application accessible over the internet.

  • D. Incorrect.

    Configuring a Network Endpoint Group is not necessary for simply exposing a GKE application using Services.

  • E. Correct.

    Firewall rules must allow traffic on the ports used by the application to ensure it is accessible from the internet.

Timed practice exam

Take a Google Associate Cloud Engineer practice test under exam conditions

60 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam