Topic Name: A STRATEGIC APPROACH TO SOFTWARE TESTING
Question: What is the primary purpose of software testing?
A: To create new features
B: To ensure software produces correct results
C: To write code
D: To release software quickly
Answer: b
Question: What does debugging refer to in the software development process?
A: Finding problems
B: Fixing problems
C: Creating new features
D: Documenting software
Answer: b
Question: Which type of testing focuses on individual components?
A: System Testing
B: Integration Testing
C: Unit Testing
D: Validation Testing
Answer: c
Question: What does Black-Box Testing evaluate?
A: Internal code structure
B: Software functionality
C: Coding standards
D: Design specifications
Answer: b
Question: What type of knowledge is required for White-Box Testing?
A: No knowledge needed
B: User experience knowledge
C: Programming knowledge
D: Design knowledge
Answer: c
Question: Verification in the context of software testing means?
A: Creating new features
B: Ensuring the software matches its design
C: Gathering user feedback
D: Identifying bugs
Answer: b
Question: What is the goal of Integration Testing?
A: To test individual components
B: To ensure different components work together
C: To finalize the software for release
D: To collect user feedback
Answer: b
Question: What do validation tests focus on?
A: Fixing issues in the code
B: Ensuring the software meets user needs
C: Testing internal logic
D: Reviewing design specifications
Answer: b
Topic Name: TESTING STRATEGY AND ART OF DEBUGGING
Question: What is the first step in a software testing strategy?
A: Execute Tests
B: Understand Requirements
C: Create a Test Plan
D: Document Everything
Answer: b
Question: Which of the following is NOT a type of system testing?
A: Functional Testing
B: Performance Testing
C: Static Testing
D: Security Testing
Answer: c
Question: What do drivers do in unit testing?
A: Simulate missing parts of the system
B: Trigger and control testing of specific software parts
C: Create a test environment
D: Document testing results
Answer: b
Question: What is the purpose of stubs in unit testing?
A: To run the complete software
B: To simulate responses from missing components
C: To create documentation
D: To execute user testing
Answer: b
Question: What type of testing involves real users in their own environments?
A: Alpha Testing
B: Beta Testing
C: Integration Testing
D: System Testing
Answer: b
Question: What should a developer do first when debugging an issue?
A: Test the fix
B: Analyze the cause
C: Identify the problem
D: Locate the source
Answer: c
Question: Which debugging strategy involves systematically disabling parts of the code?
A: Backtracking
B: Brute Force Debugging
C: Cause Elimination
D: Print Statement Debugging
Answer: c
Topic Name: INSTALLATION OF DOCKER, MINIKUBE, ACCOUNT CREATION IN DOCK
Question: What is the first step to prepare your computer for Docker installation on Windows?
A: Download Docker from the website
B: Open Task Manager and check for virtualization
C: Install WSL2
D: Restart your computer
Answer: b
Question: Which command is used to verify if Docker is working?
A: docker --check
B: docker --version
C: docker version
D: version docker
Answer: b
Question: How do you start Minikube on Windows?
A: minikube ip
B: minikube init
C: minikube start --driver=docker
D: start minikube
Answer: c
Question: What command is used to check Minikube status information?
A: minikube info
B: minikube status
C: status minikube
D: check minikube
Answer: b
Topic Name: CONTAINERIZATION USING DOCKER AND DOCKER COMPOSE
Question: What is containerization?
A: A method to create virtual machines.
B: A way to package software into a single container.
C: A process to automate software testing.
D: A technique for database management.
Answer: b
Question: Which tool is the most popular for creating and managing containers?
A: Jenkins
B: Kubernetes
C: Docker
D: Podman
Answer: c
Question: What does Docker ensure for applications?
A: They run faster than VMs.
B: They work the same everywhere.
C: They consume more resources.
D: They only work on Linux.
Answer: b
Question: What is the primary function of Docker Compose?
A: To create virtual machines.
B: To manage multiple containers easily.
C: To automate testing processes.
D: To monitor system performance.
Answer: b
Question: What is the role of Docker Daemon?
A: It runs in the background and manages containers.
B: It builds Docker images.
C: It exposes ports for the application.
D: It interacts with the user.
Answer: a
Question: What does Docker Hub provide?
A: A place to host web servers.
B: An online library for Docker images.
C: A tool for monitoring application performance.
D: A database for storing user data.
Answer: b
Question: What is a Docker image?
A: A running instance of an application.
B: A package containing application files and settings.
C: A command-line tool.
D: A library for web development.
Answer: b
Topic Name: LAB EXERCISE - 7 - A - DOCKER CLI COMMANDS-PART-1
Question: What is Docker?
A: A type of operating system
B: A tool that packages applications into containers
C: A programming language
D: A database management system
Answer: b
Question: Which command checks if Docker is installed?
A: docker status
B: docker version
C: docker --version
D: docker info
Answer: c
Question: What command pulls the hello-world image?
A: docker get hello-world
B: docker pull hello-world
C: docker fetch hello-world
D: docker download hello-world
Answer: b
Question: What does the command 'docker run hello-world' do?
A: Creates and runs a new container from the hello-world image
B: Lists all containers
C: Removes the hello-world image
D: Downloads the hello-world image
Answer: a
Question: What command is used to view all containers in Docker?
A: docker list containers
B: docker ps
C: docker ls
D: docker view
Answer: b
Question: What does the command 'docker rm [container-id]' do?
A: Removes a specific container
B: Renames a container
C: Runs a container
D: Stops a container
Answer: a
Question: Which command is used to access the Redis command-line inside the container?
A: docker attach my-redis
B: docker exec -it my-redis redis-cli
C: docker open my-redis
D: docker run redis-cli
Answer: b
Topic Name: LAB EXERCISE - 7 - A - DOCKER CLI COMMANDS-PART-2
Question: What is a Dockerfile?
A: A running container
B: A text file with instructions to create a custom Docker image
C: A command to stop a container
D: A graphical interface for Docker
Answer: b
Question: What command is used to create a Docker image?
A: docker run
B: docker push
C: docker build
D: docker exec
Answer: c
Question: Which command starts a container from an image?
A: docker login
B: docker run
C: docker commit
D: docker stop
Answer: b
Question: What does the command 'docker ps' do?
A: Lists all images on the system
B: Lists all containers including stopped ones
C: Shows a list of currently running containers
D: Logs you into Docker Hub
Answer: c
Question: What does 'docker push' do?
A: Downloads an image from Docker Hub
B: Uploads an image to Docker Hub
C: Deletes an image from the system
D: Stops a running container
Answer: b
Question: What is the purpose of the 'CMD' instruction in a Dockerfile?
A: Defines the image name
B: Specifies the command to run when starting the container
C: Creates a snapshot of a container
D: Builds the Docker image
Answer: b
Question: What does the command 'docker images' do?
A: Shows details about containers
B: Lists all saved images on your system
C: Logs you into Docker Hub
D: Runs a container
Answer: b
Question: Which option is used to run a container in the background?
A: --interactive
B: --name
C: --detach
D: --volumes
Answer: c
Topic Name: LAB EXERCISE - 7 -B - MODIFY AND PUSH DOCKER IMAGE
Question: What does the -it flag do when running a Docker container?
A: Runs in detached mode.
B: Allows interactive terminal access.
C: Pulls the latest image.
D: Installs additional packages.
Answer: b
Question: What command creates a new image with changes from a stopped container?
A: docker create
B: docker commit
C: docker save
D: docker build
Answer: b
Question: Which command would you use to remove a stopped container?
A: docker delete [container_id]
B: docker rm [container_id]
C: docker clear [container_id]
D: docker erase [container_id]
Answer: b
Question: What command uploads a newly created image to Docker Hub?
A: docker submit
B: docker push
C: docker upload
D: docker share
Answer: b
Question: What command would you use to check the version of Git installed in the container?
A: git version
B: check git
C: git --status
D: git --check
Answer: a
Topic Name: LAB EXERCISE - 7 -C - CREATE AND PUSH DOCKER FILE IMAGE
Question: What is the purpose of the CMD instruction in the Dockerfile?
A: It copies the application files.
B: It sets the working directory.
C: It tells Docker how to run the application.
D: It pulls the image from Docker Hub.
Answer: c
Question: Which tag format is used to tag the image for Docker Hub?
A: username/image-name
B: tag/image-name
C: image-name/username
D: image-name:version
Answer: a
Question: What version of Node.js is specified in the Dockerfile?
A: 14
B: 16-alpine
C: 18
D: 12
Answer: b
Question: What is the purpose of the WORKDIR instruction in the Dockerfile?
A: To set environment variables.
B: To specify the working directory within the container.
C: To install necessary packages.
D: To define the command to run.
Answer: b
Question: How can you pull an image from Docker Hub?
A: docker fetch <image-name>
B: docker pull <image-name>
C: docker get <image-name>
D: docker pull
Answer: b
Topic Name: LAB EXERCISE - 7 -D - RUNNING MULTIPLE CONTAINERS USING DOCK
Question: What is the purpose of a docker-compose.yml file?
A: To define user permissions
B: To configure the Docker daemon
C: To define how containers should work together
D: To store logs of container activities
Answer: c
Question: Which command is used to start containers defined in the docker-compose.yml file?
A: docker-compose run
B: docker-compose start
C: docker-compose up
D: docker-compose activate
Answer: c
Question: How can you access the WordPress application after starting the containers?
A: http://localhost:8000
B: http://localhost:8080
C: http://127.0.0.1:8000
D: http://mywordpressapp.local
Answer: a
Question: Which command stops the running containers without removing them?
A: docker-compose stop
B: docker-compose down
C: docker-compose halt
D: docker-compose end
Answer: a
Question: What is stored in the 'db_data' volume?
A: WordPress application files
B: User data
C: MySQL database data
D: Logs of container activities
Answer: c
Topic Name: INTRODUCTION TO ORCHESTRATION USING KUBERNETES
Question: What is orchestration primarily concerned with?
A: Creating applications
B: Organizing and automating tasks
C: Designing user interfaces
D: Database management
Answer: b
Question: What is Kubernetes used for?
A: Creating virtual machines
B: Managing applications inside containers
C: Designing web applications
D: Database hosting
Answer: b
Question: What does the Master Node do in Kubernetes?
A: Runs user applications
B: Acts like the boss managing workers
C: Serves as a database
D: Provides networking services
Answer: b
Question: What is a Pod in Kubernetes?
A: The largest unit of deployment
B: The smallest unit in Kubernetes that holds containers
C: A type of application
D: A command used to start applications
Answer: b
Question: What is Minikube primarily used for?
A: Deploying large applications
B: Creating a local Kubernetes cluster
C: Running a database
D: Managing servers
Answer: b
Question: What does the Kubernetes 'Service' do?
A: Monitors the health of containers
B: Exposes an application to the outside world
C: Stores application logs
D: Creates new containers
Answer: b
Question: What does the Kubelet do in Kubernetes?
A: Directs the overall architecture
B: Reads and writes to the database
C: Ensures that containers run correctly
D: Routes network traffic
Answer: c
Topic Name: LAB EXERCISE - 7 -E - DEPLOYING AND SCALING APPLICATIONS USIN
Question: What is Minikube used for?
A: To create a large production server
B: To set up a mini-Kubernetes system on your computer
C: To run applications in the cloud
D: To manage large databases
Answer: b
Question: Which command is used to create an Nginx Deployment?
A: kubectl create service
B: kubectl create deployment
C: minikube start
D: kubectl expose
Answer: b
Question: How do you run the Nginx deployment on the browser?
A: kubectl scale
B: kubectl expose
C: minikube tunnel
D: kubectl port-forward
Answer: b
Question: What does 'kubectl scale' do?
A: Increases the number of running copies of an app
B: Deletes existing deployments
C: Creates a new service
D: Starts a new Minikube instance
Answer: a
Question: What command do you use to verify if the Nginx deployment was created correctly?
A: kubectl get nodes
B: kubectl get services
C: kubectl get deployments
D: kubectl status
Answer: c
Question: Which command can be used to delete the Nginx Deployment?
A: kubectl remove deployment mynginx
B: kubectl delete deployment mynginx
C: kubectl stop deployment mynginx
D: kubectl destroy deployment mynginx
Answer: b
Question: What does 'minikube stop' do?
A: Deletes the Minikube cluster
B: Starts the Minikube cluster
C: Stops the Minikube cluster to free up resources
D: Exposes services to the internet
Answer: c
Topic Name: CONTINUOUS MONITORING USING NAGIOS
Question: What does Continuous Monitoring primarily involve?
A: Manual checks of software
B: Regularly checking software performance
C: Building new software
D: Only user feedback analysis
Answer: b
Question: What is a primary function of Nagios?
A: To develop software
B: To monitor IT systems
C: To automate user feedback
D: To create logs
Answer: b
Question: What does Nagios Core act as?
A: A web interface
B: A monitoring plugin
C: The brain of the system
D: A log management tool
Answer: c
Question: What type of Nagios is the free version?
A: Nagios XI
B: Nagios Pro
C: Nagios Core
D: Nagios Free
Answer: c
Question: Which of the following is NOT a benefit of Continuous Monitoring?
A: Improving performance over time
B: Catching problems early
C: Replacing the need for testing
D: Quick adaptation to changes
Answer: c
Question: What command is used to run the Nagios container?
A: docker start nagiosdemo
B: docker run -d --name nagiosdemo -p 8888:80 jasonrivers/nagios:latest
C: docker create nagiosdemo
D: docker launch nagiosdemo
Answer: b
Question: What type of information does the Nagios dashboard display?
A: User login details
B: Financial reports
C: System monitoring data
D: Software source code
Answer: c
Topic Name: LAB EXERCISE - 7 -F - DEPLOYING AND MANAGING MONITORING SYS
Question: What command is used to pull the latest Nagios image?
A: docker pull jasonrivers/nagios:latest
B: docker run jasonrivers/nagios:latest
C: docker images
D: docker stop nagiosdemo
Answer: a
Question: In Nagios, what does a green box in the System Status indicate?
A: Warning
B: Critical error
C: Everything is working fine
D: Server is down
Answer: c
Question: What command do you use to stop the Nagios Docker container?
A: docker stop nagiosdemo
B: docker rm nagiosdemo
C: docker pull nagios
D: docker run jasonrivers/nagios:latest
Answer: a
Question: What is indicated by a red circle in the Status Grid?
A: All systems are operational
B: Critical issues detected
C: Warnings only
D: Server is in maintenance
Answer: b
Question: Which command do you use to delete the Nagios container?
A: docker rmi jasonrivers/nagios:latest
B: docker rm nagiosdemo
C: docker ps
D: docker stop nagiosdemo
Answer: b