Results
Sorry, you were so close! Review Your Answers Below!!
Better Luck Next Time!
#1. 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.
#2. 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.
#3. Which Terraform command is used to apply changes to infrastructure?
Explanation: terraform apply applies the planned changes to the infrastructure.
#4. What type of Kubernetes service is used to expose an application to the internet?
Explanation: A LoadBalancer service routes external traffic to the application.
#5. What is Infrastructure as Code (IaC)?
Explanation: IaC involves managing infrastructure through code, making it easier to deploy, manage, and scale environments.
#6. 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.
#7. You need to securely inject sensitive data into a Kubernetes pod. What should you use?
Explanation: Secrets are used to manage sensitive data securely in Kubernetes.
#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. Which backend is commonly used to store Terraform state in AWS?
Explanation: S3 is the most common backend for storing Terraform state files.
#10. Which provider configuration syntax is correct in Terraform?
Explanation: Provider blocks define configurations for Terraform providers.
#11. 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.
#12. 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.
#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. 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.
#15. 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.

