↑ ↓ to move, Enter to open, Esc to close

    GCP-ACEAssociate Cloud Engineer

    Switch exam

    Microsoft Azure

    aws Amazon Web Services

    Google Cloud

    ServiceNow

    Databricks

    Cisco

    Salesforce

    All exams and search

    GCP-ACE · Practice

    Question 5 of 31

    Question GCP-ACE-016

    Single choiceChoose one answer.

    You deployed a new application inside your Google Kubernetes Engine cluster using the YAML file specified below.

    You check the status of the deployed pods and notice that one of them is still in PENDING status:

    You want to find out why the pod is stuck in pending status. What should you do?

    Exhibit 1Code
    Exhibit 1. Its content is given in the text version below.
    Text version
    apiVersion: apps/v1
    kind: Deployment
    metadata:
      name: myapp-deployment
    spec:
      selector:
        matchLabels:
          app: myapp
      replicas: 2
      template:
        metadata:
          labels:
            app: myapp
        spec:
          containers:
          - name: myapp
            image: myapp:1.1
            ports:
            - containerPort: 80
    
    apiVersion: v1
    kind: Service
    metadata:
      name: myapp-service
    spec:
      ports:
      - port: 8000
        targetPort: 80
        protocol: TCP
      selector:
        app: myapp
    
    Exhibit 2Table
    Exhibit 2. Its content is given in the text version below.
    Text version

    Command: kubectl get pods -l app=myapp

    NAME READY STATUS RESTART AGE
    myapp-deployment-58ddbbb995-lp86m 0/1 Pending 0 9m
    myapp-deployment-58ddbbb995-qjpkg 1/1 Running 0 9m
    A–D selectEnter check answerF flag←→ move