Unit 4 - Practice Quiz

CSE121 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What is the primary goal of DevOps?

Introduction to DevOps Easy
A. To focus solely on manual testing and deployment.
B. To increase the separation between Development and Operations teams.
C. To shorten the systems development life cycle and provide continuous delivery with high software quality.
D. To slow down the development process for better quality.

2 How does the DevOps model primarily differ from the traditional Waterfall model?

DevOps Vs Traditional Software Development Models Easy
A. Waterfall uses automation extensively, while DevOps relies on manual processes.
B. DevOps follows a strict, linear sequence of stages, while Waterfall is iterative.
C. DevOps emphasizes collaboration and continuous feedback, while Waterfall has rigid, separate phases.
D. DevOps releases software only once a year, while Waterfall has frequent small releases.

3 What is the main purpose of Git in a DevOps workflow?

DevOps Tools - Git Easy
A. To deploy applications to servers.
B. To automatically test web applications.
C. To manage and track changes in source code.
D. To monitor server performance.

4 Docker is a popular DevOps tool used for what purpose?

DevOps Tools - Docker Easy
A. Writing test cases.
B. Version control.
C. Containerization of applications.
D. Monitoring network traffic.

5 Which of the following is Selenium primarily used for?

DevOps Tools - Selenium Easy
A. Orchestrating containers.
B. Automating web browser interactions for testing purposes.
C. Building Java projects.
D. Managing software configuration.

6 Which of the following represents a key phase in the continuous DevOps life cycle?

DevOps life cycle Easy
A. Annual Review
B. Continuous Integration
C. Marketing Campaign
D. Final Shutdown

7 Why is automation a core principle of DevOps?

role of automation in DevOps Easy
A. It is only used for sending email notifications.
B. It makes processes slower but more secure.
C. It reduces human error and speeds up the delivery pipeline.
D. It increases the amount of manual work required.

8 In the term CI/CD, what does "CI" stand for?

CI/CD Easy
A. Customer Integration
B. Code Inspection
C. Continuous Integration
D. Constant Implementation

9 What is the most basic definition of software testing?

fundamentals of testing Easy
A. The process of marketing the software to customers.
B. The process of writing the final user manual.
C. The process of executing a program with the intent of finding errors.
D. The process of designing the software architecture.

10 Which of the following is a primary objective of software testing?

Objectives of Testing Easy
A. To delay the product release.
B. To identify and report defects in the software.
C. To prove that the software has no bugs.
D. To write the software's code.

11 Testing that focuses on requirements like performance, security, or usability is known as:

Types of Testing Easy
A. Non-Functional Testing
B. Functional Testing
C. Unit Testing
D. Integration Testing

12 What is Unit Testing?

Levels of testing Easy
A. Testing performed by the end-user in a real environment.
B. Testing the entire system as a whole.
C. Testing individual components or functions of the software in isolation.
D. Testing how different modules work together when combined.

13 What is a key characteristic of manual testing?

Manual Vs automation testing Easy
A. It can only be performed by developers.
B. It is performed by a person interacting with the application without using any automation tools.
C. It always requires writing complex code scripts.
D. It is faster than automation testing for large, repetitive tests.

14 What is a test case?

Introduction to test case design (simple example) Easy
A. A bug found in the software.
B. The source code written by a developer.
C. A tool used for automated testing.
D. A set of inputs, execution conditions, and expected results developed for a particular objective.

15 In a typical defect life cycle, what is the initial state of a bug when it is first reported?

defect life cycle Easy
A. Closed
B. New
C. Fixed
D. Reopened

16 A professional who works on implementing and managing the CI/CD pipeline is commonly known as a(n):

Career opportunities in the field of DevOps and software testing with skillset Easy
A. Graphic Designer
B. DevOps Engineer
C. Database Administrator
D. Project Manager

17 What is the primary function of Kubernetes?

DevOps Tools - Kubernetes Easy
A. To write and edit source code.
B. To monitor website uptime.
C. To automate the management of containerized applications.
D. To build Java-based projects.

18 In CI/CD, what does "CD" most commonly stand for?

CI/CD Easy
A. Customer Documentation
B. Continuous Delivery or Continuous Deployment
C. Continuous Design
D. Code Duplication

19 Ansible is a DevOps tool primarily used for:

DevOps Tools - Ansible Easy
A. Version control
B. Configuration Management and Application Deployment
C. Automated browser testing
D. Containerization

20 Why is software testing a critical activity in IT companies?

Applications of software testing in IT companies Easy
A. To make the software development process longer.
B. To increase the number of developers on a project.
C. To ensure the final product is high-quality and meets customer expectations.
D. To find someone to blame when things go wrong.

21 A software team following a traditional Waterfall model struggles with late feedback from clients and a rigid, sequential process. If they transition to a DevOps culture, what is the primary change they will experience in their development workflow?

DevOps Vs Traditional Software Development Models Medium
A. C. A shift towards smaller, more frequent releases with continuous feedback loops integrated throughout the lifecycle.
B. D. The elimination of the Quality Assurance team to make developers solely responsible for testing.
C. B. The introduction of distinct, isolated phases for development, testing, and operations with formal handoffs.
D. A. A significant increase in the amount of upfront documentation required before coding begins.

22 In a mature CI/CD pipeline, a new code commit automatically triggers a sequence of events. If the automated integration tests fail, what is the expected immediate outcome?

CI/CD Medium
A. A. The pipeline automatically reverts the commit and notifies the project manager.
B. D. A QA engineer is manually assigned to debug the failed integration test.
C. C. The pipeline skips the failed tests and proceeds to deploy the build to the staging environment.
D. B. The pipeline halts the process, marks the build as 'failed', and immediately notifies the development team.

23 A company is deploying a microservices-based application. They need a system that can automatically restart failed containers, manage service discovery between microservices, and scale the application horizontally based on CPU load. Which tool is most suitable for these specific requirements?

DevOps Tools - Kubernetes Medium
A. C. Kubernetes
B. A. Docker
C. D. Git
D. B. Jenkins

24 During the testing of an e-commerce application, a team is focused on verifying the interactions between the payment gateway module and the order management module. What level of testing are they performing?

Levels of testing Medium
A. A. Unit Testing
B. D. Acceptance Testing
C. C. System Testing
D. B. Integration Testing

25 Which phase of the DevOps life cycle is primarily concerned with tracking and analyzing application performance, identifying issues in the production environment, and providing feedback for future development cycles?

DevOps life cycle Medium
A. C. Continuous Monitoring
B. A. Continuous Integration
C. B. Continuous Deployment
D. D. Continuous Planning

26 A development team needs to test the visual layout and user-friendliness of a new graphical user interface (GUI) for a mobile app. For this specific task, which approach is generally more suitable and why?

Manual Vs automation testing Medium
A. C. Automation testing, because it is faster and can run on multiple devices simultaneously without human intervention.
B. A. Automation testing, because scripts can precisely measure pixel alignment and color codes.
C. B. Manual testing, because it requires human judgment to assess usability, aesthetics, and overall user experience.
D. D. Manual testing, because it is always cheaper than setting up an automation framework.

27 An online banking application must ensure that it can handle 5,000 concurrent users logging in during peak hours without crashing or experiencing significant slowdowns. What type of non-functional testing should be performed to verify this requirement?

Types of Testing Medium
A. D. Load Testing
B. B. Usability Testing
C. C. Compatibility Testing
D. A. Security Testing

28 Consider a login form with a password field that must be between 8 and 16 characters. Using the Boundary Value Analysis (BVA) technique, which set of values represents the most effective test cases for the password length?

Introduction to test case design (simple example) Medium
A. C. 1, 8, 16, 20
B. D. 7, 9, 15, 17
C. B. 8, 12, 16
D. A. 7, 8, 16, 17

29 A system administrator needs to apply a security patch to a fleet of 100 Linux servers. The process must be repeatable and consistent across all servers. Which DevOps tool is best suited for this configuration management task, given its agentless architecture and use of YAML for playbooks?

DevOps Tools - Ansible Medium
A. B. Git
B. A. Selenium
C. D. Ansible
D. C. Docker

30 A tester reports a bug. The developer analyzes it and marks its status as 'Deferred'. What does this status imply about the bug?

Defect life cycle Medium
A. B. The bug is a duplicate of another reported issue.
B. D. The bug cannot be reproduced by the developer.
C. C. The bug is valid, but its fix is postponed to a future release.
D. A. The bug is invalid and will not be fixed.

31 In the context of DevOps, what is the primary goal of implementing 'Infrastructure as Code' (IaC) using tools like Terraform or Ansible?

role of automation in DevOps Medium
A. B. To manually configure servers one by one for better control.
B. D. To reduce the cost of physical server hardware by using virtualization.
C. A. To eliminate the need for system administrators.
D. C. To manage and provision infrastructure through machine-readable definition files, enabling consistent and repeatable environments.

32 Beyond finding defects, what is a crucial objective of software testing that contributes to the overall quality of the product?

Objectives of Testing Medium
A. A. To prove that the software has no errors.
B. C. To provide confidence to stakeholders by demonstrating that the software meets its requirements.
C. B. To delay the product release until all features are perfect.
D. D. To write as many test cases as possible to achieve 100% test coverage.

33 A QA team wants to automate the testing of their web application's user interface. They need a tool that can interact with web elements like buttons and forms, simulate user actions across different browsers like Chrome and Firefox, and integrate into their CI/CD pipeline. Which tool is the industry standard for this purpose?

DevOps Tools - Selenium Medium
A. C. Selenium
B. B. Docker
C. A. Nagios
D. D. Puppet

34 A developer is working on a new feature on a separate branch called feature-x. Meanwhile, the main branch has been updated with several critical bug fixes by other team members. What Git command should the developer use to incorporate the latest changes from the main branch into their feature-x branch?

DevOps Tools - Git Medium
A. B. git checkout main
B. D. git clone <repository_url>
C. A. git push origin feature-x
D. C. git merge main (while on the feature-x branch)

35 A professional wants to become a DevOps Engineer. Besides proficiency in a scripting language like Python or Bash, which of the following skillsets is most critical for this role?

Career opportunities in the field of DevOps and software testing with skillset Medium
A. B. Deep knowledge of database administration and SQL query optimization.
B. D. Advanced graphic design skills for creating user interfaces.
C. C. Strong understanding of CI/CD principles, containerization (Docker), and orchestration (Kubernetes).
D. A. Expertise in manual testing and creating detailed bug reports.

36 A software product is about to be delivered to a client. The client's employees perform a final round of testing in their own environment to ensure the software meets their business needs and is ready for them to use. This level of testing is known as:

Levels of testing Medium
A. A. System Testing
B. D. Integration Testing
C. C. Unit Testing
D. B. User Acceptance Testing (UAT)

37 A Java project has numerous external libraries (dependencies) that it needs to function correctly. The team wants a tool that can automatically manage these dependencies, compile the source code, and package the output into a runnable format like a JAR or WAR file. Which tool is designed for these build automation tasks?

DevOps Tools - Mavin Medium
A. A. Docker
B. C. Git
C. B. Nagios
D. D. Maven

38 After fixing a bug in the user authentication module, the testing team runs a suite of automated tests covering all major functionalities of the application, such as product search, shopping cart, and checkout, to ensure that the fix did not inadvertently break existing features. This type of testing is called:

Types of Testing Medium
A. A. Sanity Testing
B. D. Ad-hoc Testing
C. B. Regression Testing
D. C. Performance Testing

39 An IT operations team needs to be alerted immediately if the CPU utilization of their production web server exceeds 90% or if the e-commerce website becomes unresponsive. Which DevOps tool is specifically designed for this type of infrastructure and service monitoring?

DevOps Tools - Nagios Medium
A. C. Nagios
B. B. Ansible
C. A. Kubernetes
D. D. Selenium

40 An agile team is developing a mobile banking application. They conduct testing activities in every two-week sprint, including unit tests by developers, integration tests for new features, and regression tests before the sprint demo. How does this continuous testing approach benefit the company?

Applications of software testing in IT companies Medium
A. A. It completely eliminates the need for a dedicated QA team.
B. B. It guarantees that no bugs will ever be found in the production environment.
C. C. It increases development costs and significantly slows down the delivery of new features.
D. D. It allows for early detection of defects, reducing the cost and effort required to fix them, and improves overall product quality.

41 A team has implemented a CI/CD pipeline for a microservices application deployed on Kubernetes. The pipeline successfully builds and tests each service, but during the 'Deploy to Staging' stage, it frequently fails with ImagePullBackOff errors. The container registry is private and requires authentication. Given that the build stage, which pushes the image, is successful, what is the most probable root cause of the deployment failure?

CI/CD Hard
A. The Kubernetes Service Account used by the deployment in the staging namespace lacks the appropriate imagePullSecrets configuration to authenticate with the private container registry.
B. The Dockerfile for the microservice is corrupted, leading to an un-pullable image.
C. The CI runner has cached an old, invalid version of the Docker image.
D. The Kubernetes nodes lack the necessary network access to the public internet.

42 An application is deployed in a Kubernetes cluster using a Deployment resource with 3 replicas. To expose the application, a Service of type LoadBalancer is created. A new version of the application is rolled out using the default RollingUpdate strategy. During the update, a user reports intermittent connection errors. Analysis shows that for a brief period, some traffic is being routed to new pods that are not yet ready to serve requests. What Kubernetes configuration should be tuned to mitigate this issue?

DevOps Tools - Kubernetes Hard
A. Increase the replicas count in the Deployment specification to provide more targets.
B. Switch the Service type from LoadBalancer to NodePort to simplify the network path.
C. Implement a readinessProbe in the Pod specification to ensure pods are only added to the Service's endpoint list when they are truly ready to handle traffic.
D. Decrease the terminationGracePeriodSeconds in the Pod specification to speed up the shutdown of old pods.

43 A financial application calculates compound interest. A tester designs test cases using Boundary Value Analysis (BVA) for an input field that accepts a principal amount from 50,000. Which set of test values represents the most effective application of 3-point BVA, considering both valid and invalid partitions?

Types of Testing Hard
A. $999.99, $1000.00, $50000.00, $50000.01
B. $0, $1000, $50000, $100000
C. $999, $1000, $1001, $49999, $50000, $50001
D. $1000, $25000, $50000

44 An Ansible playbook is written to ensure a specific version of a package is installed. The task uses the yum module: - name: Install httpd yum: name: httpd-2.4.6 state: present. An administrator runs this playbook on a system that already has httpd-2.4.5 installed. The playbook is then run a second time without any changes to the system. What will be the state reported by Ansible for this task on the first and second runs, respectively?

DevOps Tools - Ansible Hard
A. ok, ok
B. failed, failed
C. changed, changed
D. changed, ok

45 A defect is logged by a tester with the status 'New'. The development team analyzes it and marks it as 'Rejected', stating it is a duplicate of an existing, open defect (ID #123). The QA lead reviews this decision and agrees it's a duplicate but insists that the original defect #123 has insufficient information and the new defect report has much better logs and replication steps. What is the most appropriate next step in a mature defect management process?

defect life cycle Hard
A. Re-open the new defect and close the old one, marking it as a duplicate of the new one.
B. Assign both defects to the developer and let them decide which one to work on.
C. Merge the detailed information from the new defect into the original defect (#123), and then close the new defect as 'Duplicate'.
D. Close both defects and create a third, new defect that combines the information from both.

46 A team is developing a highly interactive data visualization application where user experience, look-and-feel, and usability are critical success factors. The application's UI is expected to undergo frequent and radical changes based on user feedback. Which testing strategy provides the best cost-benefit ratio in the early stages of this project?

Manual Vs automation testing Hard
A. Automate 100% of the UI tests using a tool like Selenium to ensure regression-free development.
B. Postpone all testing until the UI design is finalized and stable to avoid rework.
C. Outsource all testing activities to a third-party firm that specializes in automation.
D. Prioritize manual exploratory testing and usability testing, while automating only the stable, underlying API-level business logic.

47 In a traditional Waterfall model, the 'Testing' phase is distinct and sequential, occurring after the 'Development' phase is complete. How does the philosophy of 'Shifting Left' in a DevOps culture fundamentally alter this relationship?

DevOps Vs Traditional Software Development Models Hard
A. It moves the entire testing phase to happen before any development begins, focusing on requirements testing.
B. It focuses testing efforts only on the 'left' side of the CI/CD pipeline (i.e., pre-commit hooks) and automates all production monitoring.
C. It integrates testing activities continuously throughout the development lifecycle, starting from the earliest stages, rather than treating it as a separate, subsequent phase.
D. It eliminates the need for a dedicated QA team by making developers 100% responsible for all testing activities.

48 A developer is working on a feature branch named feature-A. They realize they need to incorporate the latest updates from the main branch into their feature branch to resolve potential conflicts before creating a pull request. They want to maintain a clean, linear history on their feature branch without creating a merge commit. Which sequence of Git commands is the most appropriate to achieve this?

DevOps Tools - Git Hard
A. git fetch origin; git checkout feature-A; git rebase origin/main
B. git checkout feature-A; git cherry-pick main
C. git checkout feature-A; git pull origin main
D. git checkout main; git pull; git checkout feature-A; git merge main

49 Consider a three-tier e-commerce application (Web UI, API Gateway, and multiple microservices). A test plan is designed to verify that a user can add an item to the cart via the UI, and the corresponding call to the API Gateway correctly triggers the 'Cart Service' and 'Inventory Service' microservices, resulting in the correct database updates. This entire end-to-end process is tested as a single transaction. What level of testing does this scenario best describe?

Levels of testing Hard
A. Unit Testing
B. Acceptance Testing
C. Integration Testing
D. System Testing

50 A login form has three fields: Username (must be an email), Password (must be 8-16 characters with at least one number and one special character), and a 'Remember Me' checkbox. A test case is designed with the following inputs: Username=test@example.com, Password=ValidPass!1, 'Remember Me'=unchecked. Its expected result is 'Successful login'. This is an example of a positive test case. Which of the following would be the most effective negative test case based on the principle of testing one condition at a time?

Introduction to test case design (simple example) Hard
A. Username=invalid-email, Password=short, 'Remember Me'=checked
B. Username=test@example.com, Password=passwordwithoutnumber, 'Remember Me'=unchecked
C. Username=<script>alert('xss')</script>, Password=<script>alert('xss')</script>, 'Remember Me'=unchecked
D. Username=test@example.com, Password=ValidPass!1, 'Remember Me'=checked

51 In the context of a mature DevOps practice, what is the primary purpose of 'Infrastructure as Code' (IaC) tools like Terraform or AWS CloudFormation beyond simple server provisioning?

role of automation in DevOps Hard
A. To replace the need for system administrators by fully automating their jobs.
B. To reduce cloud provider costs by automatically selecting the cheapest available resources.
C. To provide a graphical user interface for designing and deploying cloud infrastructure.
D. To enable the versioning, testing, and continuous integration of infrastructure changes, treating infrastructure with the same discipline as application code.

52 A developer creates a Dockerfile for a Python application. To optimize the image build time and size, they use a multi-stage build. The first stage (the 'builder' stage) installs all the dependencies and builds the application. The second, final stage copies only the necessary application artifacts from the 'builder' stage into a minimal base image (like python:3.9-slim). What is the primary benefit of this multi-stage build approach?

DevOps Tools - Docker Hard
A. It creates a final production image that is significantly smaller and has a reduced attack surface because it excludes build-time dependencies, compilers, and source code.
B. It improves the application's runtime performance by pre-compiling the code in the first stage.
C. It allows the application to run in two different environments simultaneously.
D. It automatically creates two Docker images: one for development and one for production.

53 While a primary objective of testing is to find defects, in a mature software development process, what is an equally important, proactive objective?

Objectives of Testing Hard
A. To prove that the software has no defects.
B. To prevent defects by providing feedback on quality issues early in the development lifecycle, such as in requirements and design phases.
C. To generate comprehensive test reports for management auditing purposes.
D. To delay the software release until all testers are 100% confident in the product.

54 In the 'Monitor' phase of the DevOps life cycle, a team implements an alerting system using Nagios. They configure an alert that triggers when CPU utilization on a server exceeds 90% for 5 consecutive minutes. This is an example of what kind of monitoring, and what is its primary limitation?

DevOps life cycle Hard
A. White-box monitoring; its limitation is that it doesn't reflect the actual user experience.
B. Log aggregation; its limitation is the high storage cost of logs.
C. Application Performance Monitoring (APM); its limitation is high implementation complexity.
D. Black-box monitoring; its limitation is the inability to see internal system state.

55 A professional wants to transition into a Site Reliability Engineer (SRE) role, which is closely related to DevOps. Beyond strong skills in CI/CD tools, automation scripting (Python/Go), and cloud platforms (AWS/GCP), which of the following skillsets and mindsets is most critical for a successful SRE?

Career opportunities in the field of DevOps and software testing with skillset Hard
A. Expertise in front-end web development to build better user interfaces for monitoring dashboards.
B. A data-driven approach focused on defining Service Level Objectives (SLOs), measuring reliability with Service Level Indicators (SLIs), and managing an error budget.
C. Deep expertise in manual software testing and test case design.
D. Project management certification like PMP to manage deployment schedules and resources.

56 A Selenium test script consistently fails to find a web element with the locator By.id("submitBtn"). The test fails with a NoSuchElementException. However, when the tester manually inspects the page in their browser, the element is clearly visible with that ID. The element is loaded via an AJAX call after the initial page load. What is the most robust way to fix this flaky test?

DevOps Tools - Selenium Hard
A. Increase the implicit wait timeout for the entire WebDriver session to 10 seconds.
B. Wrap the find element call in a try-catch block and ignore the NoSuchElementException.
C. Use an ExplicitWait with an ExpectedCondition such as visibilityOfElementLocated(By.id("submitBtn")) before interacting with the element.
D. Add a fixed Thread.sleep(5000) before the find element call to wait for the element to appear.

57 A company is considering a 'Canary Release' strategy for deploying a new version of its critical payment service. Which of the following statements most accurately describes the implementation and primary benefit of this strategy?

CI/CD Hard
A. The new version is deployed to all users at once, but with a feature flag that keeps the new functionality disabled until it is manually toggled on.
B. The new version is deployed to an identical, separate environment (the 'blue' environment) and, after testing, the load balancer is switched to route all traffic to it.
C. The new version completely replaces the old version in the production environment, but a rapid rollback plan is kept ready in case of failure.
D. The new version is deployed alongside the old version, and a small percentage of live traffic (e.g., 5%) is routed to the new version while monitoring for errors and performance metrics.

58 A software system is designed to handle 1000 concurrent users with an average response time of 2 seconds. A team conducts a test where they gradually increase the concurrent user load from 0 to 5000 over 30 minutes to identify the point at which response times degrade unacceptably and the system fails. What specific type of non-functional testing is being performed?

Types of Testing Hard
A. Spike Testing
B. Soak Testing (Endurance Testing)
C. Load Testing
D. Stress Testing

59 In a Maven pom.xml file, a developer includes a dependency 'A' which itself has a transitive dependency on 'B' version 1.0. The developer's project also declares an explicit, direct dependency on 'B' but specifies version 2.0. When Maven resolves the dependencies for the project, which version of dependency 'B' will be included in the final classpath, and what is this principle called?

DevOps Tools - Mavin Hard
A. Version 2.0, due to the 'dependency mediation - nearest definition' principle.
B. Both versions will be included, leading to a classpath conflict.
C. Version 1.0, due to the 'first declaration wins' principle.
D. Maven will fail the build with a dependency conflict error.

60 The CALMS framework (Culture, Automation, Lean, Measurement, Sharing) is often used to describe the pillars of DevOps. Which of the following scenarios best exemplifies the 'Sharing' aspect of this framework?

Introduction to DevOps Hard
A. Implementing a CI/CD pipeline to automate the build and deployment process.
B. Tracking metrics like Mean Time To Recovery (MTTR) and deployment frequency.
C. Using value stream mapping to identify and eliminate waste in the delivery process.
D. Developers and operations teams jointly owning the production monitoring dashboards and participating in a blameless post-mortem after a production incident.