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. 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.
#3. Which Terraform command is used to apply changes to infrastructure?
Explanation: terraform apply
applies the planned changes to the infrastructure.
#4. 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.
#5. 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.
#6. Which backend is commonly used to store Terraform state in AWS?
Explanation: S3 is the most common backend for storing Terraform state files.
#7. 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.
#8. Which provider configuration syntax is correct in Terraform?
Explanation: Provider blocks define configurations for Terraform providers.
#9. What is Infrastructure as Code (IaC)?
Explanation: IaC involves managing infrastructure through code, making it easier to deploy, manage, and scale environments.
#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. 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.
#12. You notice a pod in the CrashLoopBackOff state. What should you check first?
Explanation: Pod logs often provide the root cause of the failure.
#13. 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.
#14. What type of Kubernetes service is used to expose an application to the internet?
Explanation: A LoadBalancer service routes external traffic to the application.
#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.