Results
Sorry, you were so close! Review Your Answers Below!!
Better Luck Next Time!
#1. Which provider configuration syntax is correct in Terraform?
Explanation: Provider blocks define configurations for Terraform providers.
#2. 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.
#3. What is the primary purpose of a Kubernetes Ingress?
Explanation: Ingress manages HTTP and HTTPS traffic routing to Kubernetes services.
#4. 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.
#5. You notice a pod in the CrashLoopBackOff state. What should you check first?
Explanation: Pod logs often provide the root cause of the failure.
#6. Which Terraform command is used to apply changes to infrastructure?
Explanation: terraform apply applies the planned changes to the infrastructure.
#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. You encounter an issue where a container cannot connect to an external API. What should you check first?
Explanation: Networking issues, including DNS, often cause connectivity problems.
#11. What is the primary benefit of using version control systems like Git in DevOps?
Explanation: Version control systems help track and manage code changes, facilitating collaboration and improving code quality.
#12. What happens if a resource is removed from the Terraform configuration?
Explanation: Terraform manages the lifecycle of resources defined in its configuration.
#13. What is the purpose of using Docker in a DevOps environment?
Explanation: Docker is used to containerize applications, ensuring consistency across different environments.
#14. What does the terraform refresh command do?
Explanation: terraform refresh syncs the state file with actual resource statuses.
#15. Which Kubernetes object should you use to maintain a specified number of pod replicas running?
Explanation: ReplicaSet ensures a specified number of pod replicas. Deployments use ReplicaSets under the hood.

