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. Scenario: Your deployment process is manual and prone to errors, causing downtime. What should you implement to improve this process?
Explanation: Continuous Deployment automates the deployment process, reducing errors and downtime by ensuring that code changes are automatically deployed after passing tests.
#3. 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.
#4. 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.
#5. Which Terraform command is used to apply changes to infrastructure?
Explanation: terraform apply applies the planned changes to the infrastructure.
#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. 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. 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.
#9. 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.
#10. 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.
#11. Which backend is commonly used to store Terraform state in AWS?
Explanation: S3 is the most common backend for storing Terraform state files.
#12. 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.
#13. How can you ensure that a pod is scheduled on a specific node?
Explanation: All listed methods can influence pod scheduling on specific nodes.
#14. 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.
#15. What type of Kubernetes service is used to expose an application to the internet?
Explanation: A LoadBalancer service routes external traffic to the application.

