Home DevOps Quiz : Questions and Answers 2024 QQUIZ DevOps Quiz : Questions and Answers 2024 byTeckBootcampsOctober 13, 20240 minute read DevOps QUIZ 0 Shares 0 0 0 0 DevOps Quiz A set of 20 DevOps Questions The number of attempts remaining is 5 1 / 20 1. How do you create a new virtual machine in AWS using the AWS CLI? A. aws ec2 run-instances --image-id ami-abc123 --count 1 --instance-type t2.micro B. aws ec2 create-instance --image-id ami-abc123 --count 1 --instance-type t2.micro C. aws ec2 launch-instance --image-id ami-abc123 --count 1 --instance-type t2.micro D. aws ec2 start-instance --image-id ami-abc123 --count 1 --instance-type t2.micro 2 / 20 2. What is the primary difference between Docker and Kubernetes ? A. Docker is a containerization platform, while Kubernetes is a container orchestration platform B. Docker is a container orchestration platform, while Kubernetes is a containerization platform. C. Docker is a cloud service, while Kubernetes is a containerization platform. D. Docker is a containerization platform, and Kubernetes is a cloud service. 3 / 20 3. What is the principle of least privilege in the context of DevOps? A. Users should have the minimum levels of access necessary to perform their job functions. B. Users should have the maximum levels of access necessary to perform their job functions. C. Users should have access to all systems and data. D. Users should have access only to systems and data they are directly responsible for. 4 / 20 4. You're running a database container and need to persist data across container restarts. What is the best way to achieve this? A. Use docker run -v /path/on/host:/path/in/container to mount a host directory as a volume. B. Use docker run --mount type=volume,source=volume_name,target=/path/in/container to create and mount a named volume. C. Use docker run -v volume_name:/path/in/container to mount a named volume. D. Use docker run --volume volume_name:/path/in/container to mount a named volume. 5 / 20 5. You've made changes to some files in your working directory but haven't added them to the staging area. You want to include these changes in your next commit. What is the best way to do this? A. Use git add. to add all changes in the working directory. B. Use git add <file> to add specific files to the staging area. C. Use git commit -a to commit all changes in the working directory. D. Use git add. followed by git commit to commit all changes in the working directory. 6 / 20 6. You're working on a feature branch and want to keep it up to date with the main branch. You've already committed your changes. What is the best way to rebase your feature branch onto the main branch? A. Use git rebase main to rebase your feature branch onto the main branch. B. Use git merge main to merge the main branch into your feature branch. C. Use git checkout main followed by git pull to update your local main branch, then switch back to your feature branch and use git rebase main. D. Use git merge main followed by git rebase to rebase your feature branch onto the main branch. 7 / 20 7. Situation: You're collaborating with a team on a project hosted on GitHub. You need to push your changes to the remote repository but encounter an error. What is the best way to resolve this issue? A. Use git push origin <branch-name> to push your changes. B. Use git push --set-upstream origin <branch-name> to set the upstream branch and push your changes. C. Use git pull origin <branch-name> to fetch and merge changes from the remote branch. D. Use git fetch origin followed by git merge origin/<branch-name> to merge changes from the remote branch. 8 / 20 8. Your team is considering a new branching strategy to improve workflow efficiency. Which of the following strategies is best suited for a team that frequently releases new features and updates? A. Gitflow B. GitHub Flow C. Forking Workflow D. Feature Branch Workflow 9 / 20 9. What is the purpose of a .dockerignore file in a CI/CD pipeline? A. To specify files that should be included in the Docker build B. To specify files that should be excluded from the Docker build C. To specify the version of the Docker image D. To specify the build environment 10 / 20 10. What is the purpose of a log aggregation tool in a DevOps environment? A. To store logs in a central location for easy access B. To analyze logs for patterns and trends C. To generate reports for management D. To manage user permissions 11 / 20 11. What is the purpose of the terraform destroy command? A. To initialize Terraform B. To create or update infrastructure resources C. To destroy the infrastructure D. To validate the Terraform configuration 12 / 20 12. What is the role of a firewall in a DevOps environment? A. To allow all traffic B. To block all traffic C. To control and filter network traffic D. To manage user permissions 13 / 20 13. You've pushed a commit to the main branch that introduces a critical bug. You need to revert this commit without losing the history. What is the best way to do this? A. Use git revert HEAD to create a new commit that undoes the changes. B. Use git reset --hard HEAD~1 to move the HEAD to the previous commit. C. Use git reset --hard HEAD to discard the last commit. D. Use git checkout. to discard all changes in the working directory. 14 / 20 14. Which of the following is NOT a step in a typical CI/CD pipeline ? A. Build B. Test C. Deploy D. Maintain 15 / 20 15. How do you pull an image from a Docker registry? A. docker pull <image-name> B. docker image pull <image-name> C. docker get <image-name> D. docker fetch <image-name> 16 / 20 16. What is the purpose of a .gitignore file in a CI/CD pipeline? A. To specify files that should be included in the build B. To specify files that should be excluded from the build C. To specify the version of the build D. To specify the build environment 17 / 20 17. Which of the following best describes the DevOps philosophy? A. A strict separation between development and operations teams B. A focus on individual achievements and competition C. A collaborative approach to software development and operations, emphasizing communication, integration, and automation D. A focus on minimizing costs at the expense of quality and speed 18 / 20 18. What is the purpose of a load balancer in a DevOps environment? A. To distribute network traffic evenly across multiple servers B. To increase the security of the network C. To manage user permissions D. To monitor network performance 19 / 20 19. Which of the following is NOT a popular tool for Infrastructure as Code ? A. Terraform B. Ansible C. Puppet D. Jenkins 20 / 20 20. What is the purpose of a monitoring tool in a DevOps environment ? A. To track user activity B. To detect and diagnose issues in real-time C. To generate reports for management D. To manage user permissions Your score is The average score is 2% LinkedIn 0% Send feedback Author TeckBootcamps View all posts 0 Shares: Share 0 Tweet 0 Share 0 Share 0 TeckBootcamps
Read More 10 minute read kkubernetes Make Kubernetes simpler! 8 AI Tools You Must KnowbyTeckBootcampsOctober 13, 2024 Table of Contents Hide OverviewK8sGPTInstallPrerequisiteskubectl-aiInstall via Homebrew:Install via Krew:DemoKoPylotFunctionOperating principleKopilotInstallKubectl-GPTInstallPrerequisitesKube-CopilotInstallSet operationKubernetes ChatGPT botDemoAppilotAuthor Overview Kubernetes users inevitably face…
Read More 3 minute read kkubernetes Real World Example: Configuring Redis with ConfigMapbyTeckBootcampsOctober 13, 2024 Table of Contents Hide k8s cluster configurationTargetCreate ResourcesCreate configmapCreate a redis podVerify Redis ConfigurationGet redis configuration informationModify configmapCheck…
Read More 2 minute read TTroubleshooting Troubleshooting 5 Kubernetes Pod IssuesbyTeckBootcampsOctober 13, 2024 Table of Contents Hide ImagePullBackOff ErrorCrashLoopBackOff ErrorOut-of-Memory (OOM) ErrorsBackoffLimitExceeded ErrorProbe Failures ConclusionAuthor In this comprehensive guide, we’ll explore…
Read More 6 minute read TTroubleshooting Troubleshooting the Process of a Kubernetes Pod being killedbyTeckBootcampsOctober 13, 2024 Table of Contents Hide Problem DescriptionTroubleshooting ProcessInitial positioningFurther AnalysisPuzzle SolvedSummarizeConclusionAuthor One eventful day in our company, the operations…
Read More 2 minute read kkubernetes [Solved] Couldn’t get current server API group listbyTeckBootcampsOctober 13, 2024 Table of Contents Hide ProblemCauseSolutionBest PracticesAuthor Problem Error Message: $ kubectl get nodes E0526 10:52:08.347681 96830 memcache.go:265] couldn't…
Read More 2 minute read TTroubleshooting [Solved] ClusterInformation: connection is unauthorized: Unauthorized – Failed to create pod sandbox: rpc errorbyTeckBootcampsOctober 13, 2024 Table of Contents Hide SymptomsProblemTemporary Solution : Redeploy Those Calico PodsPermanent Solution: Give Your Cluster Some Breathing RoomAuthor…