Results
Sorry, you were so close! Review Your Answers Below!!
Better Luck Next Time!
#1. 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.
#2. 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.
#3. What does the terraform refresh command do?
Explanation: terraform refresh syncs the state file with actual resource statuses.
#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. 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.
#6. 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.
#7. What is Infrastructure as Code (IaC)?
Explanation: IaC involves managing infrastructure through code, making it easier to deploy, manage, and scale 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. 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.
#10. 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.
#11. 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.
#12. 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.
#13. 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.
#14. 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.
#15. How can you ensure that a pod is scheduled on a specific node?
Explanation: All listed methods can influence pod scheduling on specific nodes.

