Results
Sorry, you were so close! Review Your Answers Below!!
Better Luck Next Time!
#1. Which Terraform command is used to apply changes to infrastructure?
Explanation: terraform apply
applies the planned changes to the infrastructure.
#2. Which provider configuration syntax is correct in Terraform?
Explanation: Provider blocks define configurations for Terraform providers.
#3. 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.
#4. Scenario: You want to ensure that your application can handle a sudden increase in traffic. What should you implement?
Explanation: Load testing helps simulate high traffic conditions and identifies potential bottlenecks, ensuring your application can handle increased loads.
#5. How can you ensure that a pod is scheduled on a specific node?
Explanation: All listed methods can influence pod scheduling on specific nodes.
#6. 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.
#7. What does the terraform refresh command do?
Explanation: terraform refresh
syncs the state file with actual resource statuses.
#8. Scenario: Your application needs to be deployed across multiple environments (development, staging, production) with consistent configurations. What should you use?
Explanation: IaC allows you to manage and provision infrastructure through code, ensuring consistency across different environments.
#9. 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.
#10. 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.
#11. 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.
#12. Scenario: Your team is frequently experiencing merge conflicts when integrating code. What should you implement to mitigate this issue?
Explanation: Continuous Integration helps to frequently merge code changes into a shared repository, reducing the chances of merge conflicts by identifying them early.
#13. 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.
#14. What is the primary purpose of a Kubernetes Ingress?
Explanation: Ingress manages HTTP and HTTPS traffic routing to Kubernetes services.
#15. 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.