โ† All LCA Flashcard Decks

Cloud Integration & Deployment Flashcards

7 cards from real LCA practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 7 Cloud Integration & Deployment flashcards as text
  1. What command exports a Docker image as a tar archive that can be transferred to another host?

    Answer: docker save myimage -o image.tar

    'docker save' exports one or more images to a tar archive, preserving layers and metadata for later import with 'docker load'.

  2. In Terraform, what is the purpose of the 'terraform.tfstate' file?

    Answer: It records the current state of managed infrastructure resources

    The terraform.tfstate file records the current state of all resources managed by Terraform, enabling it to detect drift and plan incremental changes.

  3. Which cloud-init directive is used to run shell commands during the first boot of a cloud instance?

    Answer: #cloud-config with 'runcmd'

    The 'runcmd' directive in cloud-init user data runs a list of commands once during the final stage of the first boot.

  4. What does the 'kubectl get pods -n kube-system' command do?

    Answer: Lists pods running in the kube-system namespace

    The '-n kube-system' flag scopes the query to the kube-system namespace, which contains core cluster components like CoreDNS and kube-proxy.

  5. Which Docker networking driver allows containers on different hosts to communicate as if on the same network?

    Answer: overlay

    The overlay network driver creates a distributed network spanning multiple Docker daemons, enabling containers on different hosts to communicate securely.

  6. What is the purpose of a Kubernetes Namespace?

    Answer: To partition cluster resources among multiple users or teams

    Namespaces provide a mechanism to partition a single Kubernetes cluster into multiple virtual clusters, enabling resource isolation between teams or environments.

  7. Which command shows the logs of a container running in a Kubernetes pod named 'webserver'?

    Answer: kubectl logs pod/webserver

    'kubectl logs pod/webserver' streams the stdout/stderr of the container running in the specified pod.