End-to-End Deployment of an application on Kubernetes — Devops Guide 2025 Quiz

Explore the essential steps and best practices for deploying cloud-native applications on Kubernetes using CI/CD, security scanning, and automation tools. This quiz helps reinforce key DevOps concepts for building infrastructure, deploying apps, and ensuring reliability in cloud environments.

  1. Provisioning AWS Infrastructure

    When starting an end-to-end application deployment on Kubernetes, which tool is commonly used to automate the creation of cloud infrastructure resources such as clusters and EC2 instances?

    1. Trivy
    2. Helm
    3. Terraform
    4. Prometheus

    Explanation: Terraform is used for infrastructure as code, enabling automated and repeatable deployment of cloud resources like EC2 instances and Kubernetes clusters. Helm is for managing Kubernetes applications, Trivy scans container images for vulnerabilities, and Prometheus is a monitoring tool rather than for infrastructure provisioning.

  2. Local Testing and Docker

    On a freshly launched virtual machine, what is the primary purpose of installing Docker before deploying an application?

    1. To create and run application containers locally
    2. To manage Kubernetes Helm charts
    3. To provision cloud resources
    4. To configure CI/CD pipelines

    Explanation: Installing Docker allows applications to run as containers for local testing and development. Provisioning resources is not handled by Docker. CI/CD pipelines are created using separate tools, while Helm charts manage Kubernetes applications but do not run containers directly.

  3. Integrating Security in Deployment

    During an automated pipeline, which tool is primarily used to scan container images for security vulnerabilities before they are deployed?

    1. ArgoCD
    2. Trivy
    3. Jenkins
    4. Grafana

    Explanation: Trivy is a vulnerability scanner for container images, helping identify security risks before deployment. ArgoCD manages Kubernetes configurations, Grafana provides visualization and monitoring, and Jenkins orchestrates the overall CI/CD process without scanning images itself.

  4. Continuous Deployment Automation

    Which tool is designed to automate the deployment of applications to Kubernetes clusters by continuously syncing desired application states?

    1. Terraform
    2. ArgoCD
    3. Docker Hub
    4. SonarQube

    Explanation: ArgoCD performs continuous deployment by syncing application manifests to match the desired state in a Kubernetes cluster. SonarQube focuses on code quality, Terraform manages infrastructure, and Docker Hub is a container registry.

  5. Monitoring the Deployment

    Which combination of tools is typically used to monitor resource usage and operational metrics in a Kubernetes environment?

    1. Helm and Jenkins
    2. ArgoCD and Trivy
    3. Prometheus and Grafana
    4. SonarQube and Docker

    Explanation: Prometheus collects real-time metrics from applications and infrastructure, while Grafana visualizes these metrics in dashboards. Helm and Jenkins serve different roles in deployment and automation, ArgoCD and Trivy handle deployment and security, and SonarQube with Docker are unrelated to monitoring.