IT and Technology DevOps & Automation 2 — Questions and Answers
Question 1: Which configuration management tool uses an agentless, SSH-based approach?
- Chef
- Puppet
- Ansible (Correct answer)
- SaltStack
Correct answer: Ansible
Ansible is agentless and communicates with managed nodes over SSH using YAML-based playbooks, requiring no software installed on targets.
Question 2: In Docker, what is the function of a Dockerfile?
- Storing runtime container logs
- Defining the instructions to build a container image (Correct answer)
- Orchestrating multi-container deployments
- Configuring network policies between containers
Correct answer: Defining the instructions to build a container image
A Dockerfile contains a series of instructions that Docker executes in order to build a repeatable, layered container image.
Question 3: What metric best measures the speed of a DevOps team's deployment process?
- Mean Time to Recovery (MTTR)
- Deployment frequency (Correct answer)
- Change failure rate
- Lead time for changes
Correct answer: Deployment frequency
Deployment frequency measures how often code is successfully released to production, directly reflecting pipeline speed and automation maturity.
Question 4: Which practice involves automatically rolling back a deployment when error rates exceed a threshold?
- Blue-green deployment
- Feature flagging
- Canary release
- Automated rollback (Correct answer)
Correct answer: Automated rollback
Automated rollback uses monitoring thresholds to detect failures and revert to the previous stable version without manual intervention.
Question 5: What is the primary benefit of using immutable infrastructure?
- Lower cloud costs
- Servers are never modified after deployment, improving consistency (Correct answer)
- Faster developer onboarding
- Reduced need for version control
Correct answer: Servers are never modified after deployment, improving consistency
Immutable infrastructure replaces servers rather than patching them in place, eliminating configuration drift and ensuring consistent, reproducible environments.
Question 6: Which open-source tool is widely used for monitoring metrics and alerting in DevOps environments?
- Splunk
- Prometheus (Correct answer)
- Datadog
- New Relic
Correct answer: Prometheus
Prometheus is an open-source time-series monitoring system that scrapes metrics from targets and supports alerting via Alertmanager.
Which configuration management tool uses an agentless, SSH-based approach?