Results
Sorry, you were so close! Review Your Answers Below!!
Better Luck Next Time!
#1. 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.
#2. Which provider configuration syntax is correct in Terraform?
Explanation: Provider blocks define configurations for Terraform providers.
#3. What type of Kubernetes service is used to expose an application to the internet?
Explanation: A LoadBalancer service routes external traffic to the application.
#4. 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.
#5. 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.
#6. 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.
#7. Which of the following is a primary goal of DevOps?
Explanation: DevOps aims to speed up software development by fostering collaboration between development and operations teams and automating processes.
#8. You notice a pod in the CrashLoopBackOff state. What should you check first?
Explanation: Pod logs often provide the root cause of the failure.
#9. Which tool is commonly used for continuous integration and continuous delivery (CI/CD)?
Explanation: Jenkins is a popular open-source automation server used to implement CI/CD pipelines.
#10. How do you define a reusable module in Terraform?
Explanation: Modules are created by grouping Terraform configuration files into directories.
#11. Which Terraform command is used to apply changes to infrastructure?
Explanation: terraform apply
applies the planned changes to the infrastructure.
#12. What is the primary purpose of a Kubernetes Ingress?
Explanation: Ingress manages HTTP and HTTPS traffic routing to Kubernetes services.
#13. 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.
#14. Which backend is commonly used to store Terraform state in AWS?
Explanation: S3 is the most common backend for storing Terraform state files.
#15. 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.