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.
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?
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.
On a freshly launched virtual machine, what is the primary purpose of installing Docker before deploying an application?
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.
During an automated pipeline, which tool is primarily used to scan container images for security vulnerabilities before they are deployed?
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.
Which tool is designed to automate the deployment of applications to Kubernetes clusters by continuously syncing desired application states?
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.
Which combination of tools is typically used to monitor resource usage and operational metrics in a Kubernetes environment?
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.