Results
Sorry, you were so close! Review Your Answers Below!!
Better Luck Next Time!
#1. 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.
#2. 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.
#3. 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.
#4. Which practice involves automated testing, building, and deployment of code?
Explanation: Continuous Deployment involves the automatic deployment of code to production environments following successful automated tests.
#5. What is Infrastructure as Code (IaC)?
Explanation: IaC involves managing infrastructure through code, making it easier to deploy, manage, and scale environments.
#6. You notice a pod in the CrashLoopBackOff state. What should you check first?
Explanation: Pod logs often provide the root cause of the failure.
#7. 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.
#8. Which of the following best describes a microservices architecture?
Explanation: Microservices architecture breaks down applications into smaller, loosely coupled services that can be developed, deployed, and scaled independently.
#9. 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.
#10. How can you ensure that a pod is scheduled on a specific node?
Explanation: All listed methods can influence pod scheduling on specific nodes.
#11. What happens if a resource is removed from the Terraform configuration?
Explanation: Terraform manages the lifecycle of resources defined in its configuration.
#12. 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.
#13. 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.
#14. 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.
#15. How do you define a reusable module in Terraform?
Explanation: Modules are created by grouping Terraform configuration files into directories.

