1Which of the following best describes the DevSecOps trend?
A.Adding security checks only at the end of the development lifecycle
B.Integrating security practices within the DevOps process from the start
C.Separating the security team from the development and operations teams completely
D.Replacing the operations team with security engineers
Correct Answer: Integrating security practices within the DevOps process from the start
Explanation:DevSecOps stands for Development, Security, and Operations. It emphasizes the integration of security initiatives at every stage of the software development lifecycle to deliver robust and secure applications (Shift Left).
Incorrect! Try again.
2In the context of DevOps market trends, what does the concept of 'NoOps' imply?
A.The total elimination of software developers
B.An environment where operations are completely manual
C.An IT environment so automated that the underlying infrastructure is abstracted from developers
D.A strategy where no operational tools are used
Correct Answer: An IT environment so automated that the underlying infrastructure is abstracted from developers
Explanation:NoOps (No Operations) describes a trend where an IT environment is automated and abstracted to the point that there is no need for a dedicated team to manage software in-house, often relying on Serverless computing.
Incorrect! Try again.
3Which skill is NOT typically considered a core technical skill for a DevOps Engineer?
A.Understanding of Containerization (Docker/Kubernetes)
B.Proficiency in Scripting languages (Python/Bash)
C.Deep expertise in graphic design and UI/UX prototyping
D.Knowledge of CI/CD pipelines
Correct Answer: Deep expertise in graphic design and UI/UX prototyping
Explanation:While soft skills and collaboration are key, graphic design is generally a function of the Design/Frontend team. DevOps engineers focus on infrastructure, automation, CI/CD, and monitoring.
Incorrect! Try again.
4What is the primary goal of the DevOps Delivery Pipeline?
A.To slow down development to ensure 100% bug-free code
B.To enable continuous delivery of value to the end user through automation
C.To increase the number of manual approval gates
D.To strictly separate development and operations tasks
Correct Answer: To enable continuous delivery of value to the end user through automation
Explanation:The delivery pipeline consists of automated processes (build, test, deploy) that allow code to move from version control to production quickly and reliably.
Incorrect! Try again.
5In the DevOps ecosystem, which tool is primarily associated with Source Code Management (SCM)?
A.Jenkins
B.Git
C.Nagios
D.Docker
Correct Answer: Git
Explanation:Git is a distributed version control system used to track changes in source code during software development.
Incorrect! Try again.
6Which command is used in Git to download a repository from a remote source to your local machine for the first time?
A.git push
B.git commit
C.git clone
D.git fork
Correct Answer: git clone
Explanation:The git clone command is used to create a copy of a specific repository or branch within a repository.
Incorrect! Try again.
7What is the function of git staging area (index)?
A.It permanently deletes files
B.It stores the commit history
C.It is an intermediate area where commits can be formatted and reviewed before completing the commit
D.It pushes code to the remote server
Correct Answer: It is an intermediate area where commits can be formatted and reviewed before completing the commit
Explanation:The staging area allows developers to curate exactly what changes they want to include in the next commit.
Incorrect! Try again.
8Which of the following is an XML file used by Maven to manage project dependencies and build configuration?
A.build.xml
B.pom.xml
C.package.json
D.maven.yaml
Correct Answer: pom.xml
Explanation:POM stands for Project Object Model. The pom.xml file contains information about the project and configuration details used by Maven to build the project.
Incorrect! Try again.
9In Maven, what does the command mvn clean install do?
A.Cleans the project and installs the Maven software
B.Removes the target directory, compiles, tests, packages, and installs the artifact into the local repository
C.Installs the application on a remote server
D.Cleans the code syntax only
Correct Answer: Removes the target directory, compiles, tests, packages, and installs the artifact into the local repository
Explanation:clean removes the build directory (target), and install runs the lifecycle up to the install phase, placing the package in the local .m2 repository.
Incorrect! Try again.
10Which of the following best describes Jenkins?
A.A configuration management tool
B.A container orchestration platform
C.An open-source automation server used for Continuous Integration and Continuous Delivery
D.A virtualization hypervisor
Correct Answer: An open-source automation server used for Continuous Integration and Continuous Delivery
Explanation:Jenkins is the leading open-source automation server, allowing developers to reliably build, test, and deploy their software.
Incorrect! Try again.
11In Jenkins, what is a 'Pipeline'?
A.A physical cable connecting servers
B.A suite of plugins which supports implementing and integrating continuous delivery pipelines
C.A database for storing user credentials
D.The graphical user interface for administration
Correct Answer: A suite of plugins which supports implementing and integrating continuous delivery pipelines
Explanation:Jenkins Pipeline is a suite of plugins that supports implementing and integrating continuous delivery pipelines into Jenkins.
Incorrect! Try again.
12Which file is typically used to define a Jenkins Pipeline as code?
A.Jenkinsfile
B.Dockerfile
C.Playbook.yaml
D.Pipeline.xml
Correct Answer: Jenkinsfile
Explanation:A Jenkinsfile is a text file that contains the definition of a Jenkins Pipeline and is checked into source control.
Incorrect! Try again.
13What is the primary function of Selenium in the DevOps toolchain?
A.Infrastructure provisioning
B.Container management
C.Automated web browser testing
D.Log monitoring
Correct Answer: Automated web browser testing
Explanation:Selenium is a portable framework for testing web applications. It provides a playback tool for authoring tests without the need to learn a test scripting language.
Incorrect! Try again.
14Which component of Selenium is responsible for executing tests against different browsers?
A.Selenium IDE
B.Selenium WebDriver
C.Selenium Grid
D.Selenium Server
Correct Answer: Selenium WebDriver
Explanation:WebDriver is a collection of language-specific bindings to drive a browser natively, as a user would.
Incorrect! Try again.
15What is the core difference between a Virtual Machine (VM) and a Docker Container?
A.Containers require a full OS per instance; VMs share the host OS kernel
B.VMs are faster to boot than containers
C.Containers share the host OS kernel and are lightweight; VMs include a full Guest OS
D.Docker cannot run on Linux
Correct Answer: Containers share the host OS kernel and are lightweight; VMs include a full Guest OS
Explanation:Containers abstract the application layer and share the OS kernel, making them much lighter and faster than VMs, which abstract hardware.
Incorrect! Try again.
16Which file is used to assemble a Docker image?
A.docker-compose.yml
B.Dockerfile
C.Imagefile
D.Container.txt
Correct Answer: Dockerfile
Explanation:A Dockerfile is a text document that contains all the commands a user could call on the command line to assemble an image.
Incorrect! Try again.
17Which command starts a container from a Docker image?
A.docker build
B.docker pull
C.docker run
D.docker commit
Correct Answer: docker run
Explanation:The docker run command first creates a writeable container layer over the specified image, and then starts it.
Incorrect! Try again.
18What is Kubernetes primarily used for?
A.Writing source code
B.Automating deployment, scaling, and management of containerized applications
C.Scanning code for security vulnerabilities
D.Managing physical hardware racks
Correct Answer: Automating deployment, scaling, and management of containerized applications
Explanation:Kubernetes (K8s) is an open-source container orchestration system for automating software deployment, scaling, and management.
Incorrect! Try again.
19In Kubernetes, what is the smallest deployable unit of computing that can be created and managed?
A.Node
B.Cluster
C.Pod
D.Namespace
Correct Answer: Pod
Explanation:A Pod is the smallest execution unit in Kubernetes. It encapsulates one or more applications/containers.
Incorrect! Try again.
20What is the role of the Kubelet in Kubernetes?
A.It is the command line tool for users
B.It is the database storing cluster state
C.It is an agent that runs on each node to ensure containers are running in a Pod
D.It balances load across the internet
Correct Answer: It is an agent that runs on each node to ensure containers are running in a Pod
Explanation:The kubelet is the primary 'node agent' that runs on each node and ensures that containers are running and healthy.
Incorrect! Try again.
21Which tool is known as an 'Agentless' configuration management tool?
A.Puppet
B.Chef
C.Ansible
D.Nagios
Correct Answer: Ansible
Explanation:Ansible is agentless; it uses SSH to connect to nodes and execute tasks, whereas Puppet and Chef typically require an agent installed on the target nodes.
Incorrect! Try again.
22What format does Ansible use for its Playbooks?
A.XML
B.JSON
C.YAML
D.HTML
Correct Answer: YAML
Explanation:Ansible Playbooks are written in YAML (Yet Another Markup Language), which is easy for humans to read and write.
Incorrect! Try again.
23Which term describes the architecture of Puppet?
A.Master-Slave (or Server-Agent)
B.Peer-to-Peer
C.Agentless
D.Monolithic
Correct Answer: Master-Slave (or Server-Agent)
Explanation:Puppet usually follows a client-server architecture where the Puppet Master controls the configuration information and the Puppet Agent runs on the client nodes.
Incorrect! Try again.
24In Puppet, the files containing the configuration details for a specific node or class of nodes are called:
A.Playbooks
B.Recipes
C.Manifests
D.Blueprints
Correct Answer: Manifests
Explanation:Puppet code is composed mostly of resource declarations, organized in files called manifests (typically with a .pp extension).
Incorrect! Try again.
25What is Nagios primarily used for?
A.Continuous Integration
B.Continuous Monitoring of Infrastructure
C.Source Code Management
D.Container Orchestration
Correct Answer: Continuous Monitoring of Infrastructure
Explanation:Nagios is a monitoring system that enables organizations to identify and resolve IT infrastructure problems (servers, networks, apps) before they affect business processes.
Incorrect! Try again.
26In Nagios, what is NRPE?
A.Nagios Remote Plugin Executor
B.Network Routing Protocol Engine
C.New Relic Process Engine
D.Nagios Real-time Processing Event
Correct Answer: Nagios Remote Plugin Executor
Explanation:NRPE allows the Nagios server to remotely execute plugins on other Linux/Unix machines to monitor local resources like disk usage or CPU load.
Incorrect! Try again.
27Which of the following describes the 'Shift Left' strategy in testing?
A.Testing is performed only after deployment to production
B.Testing is moved to the left side of the screen
C.Testing is performed earlier in the software development lifecycle
D.Developers write code with their left hand
Correct Answer: Testing is performed earlier in the software development lifecycle
Explanation:Shift Left testing means testing starts as early as possible in the lifecycle to catch bugs when they are cheaper to fix.
Incorrect! Try again.
28What is Infrastructure as Code (IaC)?
A.Managing and provisioning infrastructure through machine-readable definition files
B.Physically building servers using code
C.Writing code to document hardware inventory manually
D.Installing operating systems via CD-ROM
Correct Answer: Managing and provisioning infrastructure through machine-readable definition files
Explanation:IaC is the process of managing and provisioning computer data centers through machine-readable definition files, rather than physical hardware configuration or interactive configuration tools. Tools like Ansible and Terraform are examples.
Incorrect! Try again.
29Which Git command is used to combine changes from one branch into the current branch?
A.git merge
B.git tag
C.git status
D.git config
Correct Answer: git merge
Explanation:git merge is used to join two or more development histories together.
Incorrect! Try again.
30In the context of Maven, what are 'Transitive Dependencies'?
A.Dependencies that are removed during the build
B.Dependencies of your direct dependencies that are automatically included
C.Dependencies that must be manually downloaded
D.Dependencies used only for testing
Correct Answer: Dependencies of your direct dependencies that are automatically included
Explanation:Maven avoids the need to discover and specify the libraries that your own dependencies require by including them automatically.
Incorrect! Try again.
31Which Jenkins feature allows it to distribute loads across multiple computers?
A.Master/Agent (Slave) architecture
B.Pipeline syntax
C.Blue Ocean
D.Plugin Manager
Correct Answer: Master/Agent (Slave) architecture
Explanation:The Jenkins master delegates the work (builds/tests) to agents (slaves) to distribute the load and run builds on different OS environments.
Incorrect! Try again.
32What is Docker Hub?
A.A local storage for containers
B.A cloud-based registry service for sharing and storing Docker images
C.A networking tool for Docker
D.The kernel of the Docker engine
Correct Answer: A cloud-based registry service for sharing and storing Docker images
Explanation:Docker Hub is the world's largest library and community for container images.
Incorrect! Try again.
33In Kubernetes, what is a Service?
A.A physical server
B.A background process in Linux
C.An abstraction which defines a logical set of Pods and a policy by which to access them
D.The billing component of K8s
Correct Answer: An abstraction which defines a logical set of Pods and a policy by which to access them
Explanation:A Service enables network access to a set of Pods, often providing load balancing and a stable IP address.
Incorrect! Try again.
34Which concept in Ansible describes the list of managed nodes (servers)?
A.Library
B.Inventory
C.Manifest
D.Catalog
Correct Answer: Inventory
Explanation:The Inventory is a file (often /etc/ansible/hosts) that lists the hosts and groups of hosts upon which Ansible commands, modules, and playbooks operate.
Incorrect! Try again.
35Puppet uses a Declarative language. What does this mean?
A.You describe the steps to achieve a state
B.You describe the desired final state, and the tool figures out how to achieve it
C.You must write raw shell scripts
D.You must manually compile the code
Correct Answer: You describe the desired final state, and the tool figures out how to achieve it
Explanation:In a declarative approach (like Puppet), the user defines what the configuration should be (e.g., 'ensure service apache is running'), rather than how to do it.
Incorrect! Try again.
36Which monitoring state in Nagios indicates a critical problem?
A.OK
B.WARNING
C.CRITICAL
D.UNKNOWN
Correct Answer: CRITICAL
Explanation:Nagios standard exit codes are: 0 (OK), 1 (WARNING), 2 (CRITICAL), and 3 (UNKNOWN).
Incorrect! Try again.
37What is the role of 'Headless Mode' in Selenium testing?
A.Running tests without a monitor attached to the server
B.Running tests without a visible browser UI
C.Running tests without a hard drive
D.Running tests without an internet connection
Correct Answer: Running tests without a visible browser UI
Explanation:Headless mode runs the browser in the background without a graphical user interface, which is faster and essential for CI/CD environments on servers without displays.
Incorrect! Try again.
38Which of the following is a key cultural aspect of DevOps?
A.Silos between teams
B.Blame culture
C.Shared responsibility and collaboration
D.Manual handoffs
Correct Answer: Shared responsibility and collaboration
Explanation:DevOps culture stresses breaking down silos and fostering collaboration and shared responsibility for the product between Dev and Ops.
Incorrect! Try again.
39What is a 'Commit Hash' in Git?
A.A password to login to GitHub
B.A unique SHA-1 checksum that identifies a specific commit
C.The size of the repository
D.A command to delete a file
Correct Answer: A unique SHA-1 checksum that identifies a specific commit
Explanation:Every commit in Git is identified by a unique SHA-1 hash (a 40-character string).
Incorrect! Try again.
40In Maven, the standard directory layout places source code in:
A.src/main/java
B.code/source
C.app/src
D.root/java
Correct Answer: src/main/java
Explanation:Maven relies on 'Convention over Configuration'. The standard location for application source code is src/main/java.
Incorrect! Try again.
41Which command allows you to view the logs of a Docker container?
A.docker history
B.docker logs [container_id]
C.docker trace
D.docker view
Correct Answer: docker logs [container_id]
Explanation:The docker logs command fetches the logs of a container.
Incorrect! Try again.
42What is the 'kubectl' command?
A.A database tool
B.The Kubernetes command-line tool for communicating with the cluster API
C.A specialized Linux kernel
D.A Docker image builder
Correct Answer: The Kubernetes command-line tool for communicating with the cluster API
Explanation:kubectl is the CLI tool used to run commands against Kubernetes clusters.
Incorrect! Try again.
43In Ansible, what is a Module?
A.A hardware component
B.A unit of code that Ansible executes on the target node
C.A distinct server in the inventory
D.The main configuration file
Correct Answer: A unit of code that Ansible executes on the target node
Explanation:Modules (also referred to as 'task plugins' or 'library plugins') are the discrete units of code that allow Ansible to perform specific tasks (e.g., managing files, services, or packages).
Incorrect! Try again.
44What is the primary function of a Version Control System?
A.To compiling code
B.To deploy code to production
C.To track changes to files over time
D.To monitor server health
Correct Answer: To track changes to files over time
Explanation:VCS records changes to a file or set of files over time so that you can recall specific versions later.
Incorrect! Try again.
45Which of the following is a benefit of Microservices architecture in DevOps?
A.Increased coupling between components
B.Single point of failure
C.Independent deployment and scaling of services
D.Easier management of monolithic codebases
Correct Answer: Independent deployment and scaling of services
Explanation:Microservices allow teams to develop, deploy, and scale small, independent services separately, aligning perfectly with DevOps agility.
Incorrect! Try again.
46What does CI stand for in CI/CD?
A.Continuous Improvement
B.Continuous Integration
C.Code Inspection
D.Cloud Infrastructure
Correct Answer: Continuous Integration
Explanation:CI stands for Continuous Integration, the practice of merging all developers' working copies to a shared mainline several times a day.
Incorrect! Try again.
47If a Jenkins build fails, what is the most appropriate immediate action for a DevOps engineer?
A.Ignore it and wait for the next build
B.Deploy the failed build to production
C.Investigate the console output/logs to identify the error
D.Restart the Jenkins server immediately
Correct Answer: Investigate the console output/logs to identify the error
Explanation:The console output contains the logs and error messages detailing why the build steps failed.
Incorrect! Try again.
48Which Puppet component is responsible for collecting details about a node (OS, IP address, uptime)?
A.Hiera
B.Facter
C.Mcollective
D.Catalog
Correct Answer: Facter
Explanation:Facter is Puppet's cross-platform system profiling library. It discovers and reports per-node facts.
Incorrect! Try again.
49In a Dockerfile, which instruction specifies the base image?
A.RUN
B.CMD
C.FROM
D.COPY
Correct Answer: FROM
Explanation:The FROM instruction initializes a new build stage and sets the Base Image for subsequent instructions.
Incorrect! Try again.
50What is the difference between git pull and git fetch?
A.git fetch downloads changes and merges them; git pull only downloads
B.git pull downloads changes and merges them; git fetch only downloads changes