Results
Sorry, you were so close! Review Your Answers Below!!
Better Luck Next Time!
#1. Which command can you use to debug a running Kubernetes pod?
Explanation: Each command provides specific debugging information: logs for output, exec for shell access, and describe for configuration details.
#2. Scenario: Your team needs to develop, test, and deploy applications quickly and reliably. What approach should you adopt?
Explanation: Agile and DevOps practices promote collaboration, automation, and iterative development, enabling faster and more reliable application delivery.
#3. You notice a pod in the CrashLoopBackOff state. What should you check first?
Explanation: Pod logs often provide the root cause of the failure.
#4. You need to deploy an application with a dependency on a specific version of a library. How do you ensure the container uses the correct version?
Explanation: The FROM directive determines the base image version, ensuring consistency.
#5. What does the terraform refresh command do?
Explanation: terraform refresh syncs the state file with actual resource statuses.
#6. You want to run a container in the background and expose a port. Which command should you use?
Explanation: The -d flag runs the container in detached mode, and -p maps ports.
#7. How do you define a reusable module in Terraform?
Explanation: Modules are created by grouping Terraform configuration files into directories.
#8. Which of the following best describes continuous integration?
Explanation: Continuous integration involves frequent integration of code changes into a shared repository, allowing for early detection of integration issues.
#9. What is the role of Kubernetes in a DevOps environment?
Explanation: Kubernetes is a container orchestration platform that automates the deployment, scaling, and management of containerized applications.
#10. What does the term "shift left" refer to in DevOps?
Explanation: “Shift left” means integrating and addressing issues like security and testing earlier in the development cycle to identify and resolve problems sooner.
#11. Which Docker command would you use to view all running and stopped containers on a host?
Explanation: The -a flag shows all containers, including stopped ones.
#12. What is the primary purpose of a Kubernetes Ingress?
Explanation: Ingress manages HTTP and HTTPS traffic routing to Kubernetes services.
#13. How would you prevent sensitive data from being logged in Terraform state files?
Explanation: Marking variables as sensitive ensures they are not logged in plaintext.
#14. How can you reduce the size of a Docker image during the build process?
Explanation: Lightweight base images like alpine reduce the overall image size.
#15. Which backend is commonly used to store Terraform state in AWS?
Explanation: S3 is the most common backend for storing Terraform state files.

