Unit 5: Performance Testing Tools - Practice Quiz

CSE377 — Web Automation Testing 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 Which feature is commonly associated with an open-source performance testing tool?

Open-Source versus Commercial Performance Testing Tools Easy
A. A paid license is always required
B. Only one operating system is supported
C. Source code can be inspected
D. Vendor support is automatically included

2 What is Apache JMeter primarily used for?

Introduction to JMeter Easy
A. Performance and load testing
B. Operating system installation
C. Database table creation
D. Image editing and design

3 Which is an advantage of using JMeter?

Advantages of JMeter Easy
A. It requires a special browser
B. It only supports manual testing
C. It tests hardware manufacturing
D. It is open source

4 Which prerequisite is commonly required before installing JMeter?

Download and Installation Process of JMeter Easy
A. A spreadsheet application
B. Java Runtime Environment
C. A mobile device driver
D. A graphics editing suite

5 Which JMeter element is used to define the users or threads in a test?

Elements of JMeter Easy
A. Constant Timer
B. View Results Tree
C. Response Assertion
D. Thread Group

6 What is the purpose of a configuration element in JMeter?

Configuration Elements of JMeter Easy
A. To stop the operating system
B. To compile Java source code
C. To display only test charts
D. To provide data or settings

7 In the JMeter GUI, where are test elements displayed in a hierarchical structure?

Understanding JMeter GUI Easy
A. The system tray
B. The menu tooltip
C. The status bar
D. The test plan tree

8 What is the main purpose of a JMeter Test Plan?

Test Plan and Workbench Easy
A. To install Java updates
B. To edit website images
C. To manage computer passwords
D. To contain test elements

9 Which JMeter component is mainly used as a temporary working area?

Test Plan and Workbench Easy
A. Listener
B. Thread Group
C. Assertion
D. Workbench

10 How can a user commonly add an element in the JMeter test tree?

Adding elements Easy
A. Close the test window
B. Delete the Test Plan
C. Right-click and select Add
D. Restart the computer

11 What is a .jmx file in JMeter?

Creating and Running JMX file Easy
A. A saved test plan file
B. A browser history file
C. A Java image file
D. A system backup file

12 What is configured in a JMeter sampler?

Elements Configuration Easy
A. The test report font only
B. The request details
C. The Java installation path
D. The computer wallpaper

13 Which menu option is commonly used to save a JMeter test plan?

Saving a Test Plan Easy
A. File > Save
B. Help > About
C. Edit > Find
D. Run > Pause

14 Which JMeter element can display results while a test is running?

Creating Test Reports from running test plan Easy
A. Controller
B. Timer
C. Configuration element
D. Listener

15 What should be defined first when creating a basic JMeter performance test plan?

Creation of Performance Test Plan using JMeter Easy
A. The report color
B. The screen resolution
C. The test objectives
D. The keyboard layout

16 What is the purpose of a timer in JMeter?

Understanding JMeter Timers Easy
A. To validate response content
B. To add delays between requests
C. To create virtual machines
D. To display server logs

17 What does an assertion do in JMeter?

Using Assertions in JMeter Easy
A. Saves the test plan automatically
B. Checks whether a response is valid
C. Adds users to a thread group
D. Delays every request

18 What is the purpose of a controller in JMeter?

Using Controllers in JMeter Easy
A. To install the Java runtime
B. To control test execution flow
C. To monitor computer temperature
D. To create a performance report only

19 When are JMeter preprocessors generally executed?

Processors in JMeter Easy
A. Before a sampler runs
B. Only after a report is exported
C. Before JMeter is installed
D. After the test is deleted

20 What is the main purpose of distributed testing in JMeter?

Distributed Testing with JMeter Easy
A. Save files in multiple formats
B. Create several GUI themes
C. Generate load from multiple machines
D. Install JMeter without Java

21 A team needs to customize protocol handling, inspect the tool's source code, and avoid per-user licensing fees. Which tool-selection criterion most strongly favors an open-source performance testing tool?

Open-Source versus Commercial Performance Testing Tools Medium
A. Bundled enterprise support agreements
B. Guaranteed vendor-managed test execution
C. Access to source code and extensibility
D. Built-in proprietary protocol coverage

22 A tester wants to measure an application's behavior when 200 users send HTTP requests concurrently. Which JMeter component should represent the virtual-user population?

Introduction to JMeter Medium
A. HTTP Request sampler
B. Summary Report listener
C. Response Assertion
D. Thread Group

23 A test must generate a heavy load from a server without spending resources rendering result graphs during execution. Which JMeter advantage best supports this requirement?

Advantages of JMeter Medium
A. Non-GUI command-line execution
B. Native mobile device emulation
C. Built-in network packet capture
D. Automatic browser rendering

24 After extracting JMeter, running the startup script immediately reports that Java cannot be found. What should the tester verify first?

Download and Installation Process of JMeter Medium
A. The JMX file is compiled
B. A browser extension is installed
C. The HTTP proxy is recording
D. A supported Java installation is available

25 A test plan contains a Thread Group and an HTTP Request, but the tester also needs to inspect response times and error percentages after a small debugging run. Which element should be added?

Elements of JMeter Medium
A. A Listener
B. A Timer
C. A PreProcessor
D. A Controller

26 Every HTTP request in a Thread Group uses the same server name and port, but each request has a different path. Which configuration element reduces duplication most effectively?

Configuration Elements of JMeter Medium
A. CSV Data Set Config
B. HTTP Cookie Manager
C. HTTP Cache Manager
D. HTTP Request Defaults

27 A tester opens a large JMX file in the JMeter GUI and wants to change the settings of one HTTP Request. What is the correct interaction?

Understanding JMeter GUI Medium
A. Select the sampler in the tree and edit the right panel
B. Select the menu bar and edit the console
C. Select the log viewer and edit the status bar
D. Select the toolbar and edit the tree root

28 In a JMeter version that provides a WorkBench, a tester places a temporary HTTP(S) Test Script Recorder there but expects it to be part of the saved load scenario. What should the tester understand?

Test Plan and Workbench Medium
A. WorkBench content replaces the root Test Plan when saved
B. WorkBench content is separate from the main Test Plan
C. WorkBench content executes before every Thread Group
D. WorkBench content automatically becomes a test fragment

29 A tester needs an assertion to validate only one login request rather than every request in the Thread Group. Where should the assertion be added?

Adding elements Medium
A. As a sibling of the Thread Group
B. As a child of a global listener
C. As a child of the login sampler
D. As a child of the Test Plan

30 Which command correctly runs checkout.jmx in non-GUI mode and writes raw sample results to results.jtl?

Creating and Running JMX file Medium
A. jmeter -t results.jtl -l checkout.jmx
B. jmeter -g checkout.jmx -o results.jtl
C. jmeter -r -o checkout.jmx -e results.jtl
D. jmeter -n -t checkout.jmx -l results.jtl

31 An HTTP Request sampler has an empty server field and is within the scope of HTTP Request Defaults containing api.example.com. Another defaults element outside its scope contains test.example.com. Which server will the sampler use?

Elements Configuration Medium
A. Both servers sequentially
B. No server value
C. api.example.com
D. test.example.com

32 A tester saves a JMeter test plan that references users.csv with a relative path. What practice makes the test plan more portable to another load generator?

Saving a Test Plan Medium
A. Convert the CSV into a listener configuration
B. Keep the CSV in a consistent relative location
C. Store the CSV path only in GUI preferences
D. Embed the CSV path in the JTL results file

33 A non-GUI test has produced results.jtl. Which command generates an HTML dashboard from that existing results file in an empty report directory?

Creating Test Reports from running test plan Medium
A. jmeter -g results.jtl -o report
B. jmeter -n results.jtl -t report
C. jmeter -l report -e results.jtl
D. jmeter -r results.jtl -o report

34 Production traffic is expected to increase gradually from 0 to 300 concurrent users over 10 minutes. Which initial Thread Group setup best models this workload?

Creation of Performance Test Plan using JMeter Medium
A. 10 threads with a 300-second ramp-up
B. 300 threads with a 10-second ramp-up
C. 300 threads with a 600-second ramp-up
D. 600 threads with a 300-second ramp-up

35 A Thread Group has 50 users, and each user should pause for exactly 2 seconds before sending a particular request. Which element should be added as a child of that request?

Understanding JMeter Timers Medium
A. Constant Timer set to 2 milliseconds
B. Gaussian Random Timer set to 2 milliseconds
C. Synchronizing Timer set to 2000 users
D. Constant Timer set to 2000 milliseconds

36 An API can return HTTP 200 with an error object in the response body. The test should fail when the expected field "status":"success" is absent. Which JMeter element is most appropriate?

Using Assertions in JMeter Medium
A. Response Assertion
B. HTML Assertion
C. Size Assertion
D. Duration Assertion

37 A purchase sequence containing three requests must execute only when the JMeter variable eligible equals true. Which controller should contain the sequence?

Using Controllers in JMeter Medium
A. Loop Controller
B. Random Controller
C. If Controller
D. Interleave Controller

38 A login response returns a dynamic token that must be included in the next request. Which placement and processor type should be used to extract it?

Processors in JMeter Medium
A. A Constant Timer after the next sampler
B. A JSON Extractor after the login sampler
C. A Response Assertion before the next sampler
D. A JSR223 PreProcessor before the login sampler

39 A distributed test uses one controller and three remote JMeter engines. The test plan defines 100 threads, and the complete plan runs independently on every engine. Approximately how many total threads are generated?

Distributed Testing with JMeter Medium
A. 300 threads
B. 200 threads
C. 100 threads
D. 400 threads

40 Remote JMeter engines start successfully, but each fails because a CSV data file referenced by the JMX plan is missing. What should the tester do before rerunning the distributed test?

Distributed Testing with JMeter Medium
A. Store the CSV file inside the results dashboard
B. Place the CSV file only on the controller
C. Enable a listener to transmit the CSV file
D. Copy the CSV file to every remote engine

41 A regulated enterprise must performance-test a proprietary desktop protocol, obtain vendor-backed support with contractual response times, and produce audit-ready reports. The team can extend Java-based tools but has only six weeks. Which tool-selection decision is most defensible?

Open-Source versus Commercial Performance Testing Tools Hard
A. Select JMeter because licensing cost should outweigh protocol and audit requirements
B. Select JMeter because source-code access guarantees support for every proprietary protocol
C. Select a commercial tool because commercial licenses inherently produce more accurate measurements
D. Select a commercial tool after validating protocol support, support SLAs, and reporting compliance

42 A JMeter test sends 1,000 HTTP requests successfully, but browser users remain slow because client-side JavaScript performs expensive rendering after each response. Why does the JMeter result not capture the complete user experience?

Introduction to JMeter Hard
A. JMeter executes browser JavaScript only when one thread is mapped to one browser process
B. JMeter executes JavaScript only when the HTTP Cookie Manager is present in the test plan
C. JMeter measures rendering time only when response bodies are stored in the JTL file
D. JMeter measures protocol-level exchanges and does not render pages or execute browser JavaScript

43 Which JMeter capability most directly supports reuse of one performance test across development, staging, and production-like environments without duplicating the test plan?

Advantages of JMeter Hard
A. Parameterizing endpoints with properties and supplying values through command-line arguments
B. Embedding environment-specific hostnames in assertions and replacing them before execution
C. Duplicating each Thread Group and disabling the copies that target other environments
D. Recording separate JMX files for every environment and combining their result listeners

44 JMeter starts on one machine but fails on another with an unsupported class-version error immediately after launch. Both machines use the same JMeter archive. What should be checked first?

Download and Installation Process of JMeter Hard
A. Whether the JMX file contains an HTTP Request Defaults element at the Test Plan level
B. Whether the second machine has a compatible Java runtime and resolves it through JAVA_HOME or PATH
C. Whether the JMeter bin directory contains a generated dashboard output subdirectory
D. Whether the second machine has write access to the remote server's application deployment directory

45 A Thread Group contains an HTTP Request sampler with a Response Assertion and a View Results Tree listener as children. Which statement best describes how these elements participate in execution?

Elements of JMeter Hard
A. The sampler schedules the threads, the listener validates the response, and the assertion writes the JTL
B. The sampler creates the request, the assertion validates its sample result, and the listener observes the result
C. The listener creates the request, the assertion stores variables, and the sampler aggregates the result
D. The assertion creates the request, the sampler validates the response, and the listener controls iteration

46 A CSV Data Set Config uses Sharing mode: Current thread and contains 100 unique credentials. A Thread Group has 20 threads, each performing 10 iterations. What is the most likely consequence?

Configuration Elements of JMeter Hard
A. Each iteration creates a new CSV file containing only the current thread's credentials
B. Each thread maintains its own file position and may reuse the same early credentials
C. All thread groups share one position because CSV sharing mode is ignored during execution
D. All threads share one file position and consume exactly 100 credentials without duplication

47 During a high-load test, the load generator reaches 100% CPU while View Results Tree displays every response. Which change most appropriately protects measurement validity?

Understanding JMeter GUI Hard
A. Run in non-GUI mode and write only required result fields to a JTL file
B. Add more graphical listeners so result processing is distributed across components
C. Store complete response bodies so the listener performs fewer parsing operations
D. Increase GUI refresh frequency so completed samples leave memory more quickly

48 In a legacy JMeter version that provides a WorkBench, a tester places an HTTP Proxy Recorder and several permanent samplers under the WorkBench, then saves the Test Plan without enabling WorkBench saving. What is the key risk?

Test Plan and Workbench Hard
A. The WorkBench content will execute twice because it is automatically copied into every Thread Group
B. The WorkBench content will run before the Test Plan because it has global execution priority
C. The WorkBench content will replace the Test Plan root when the JMX document is reopened
D. The WorkBench content may not be persisted because it is intended as a temporary construction area

49 A tester adds a Response Assertion as a sibling of two HTTP samplers under the same controller, expecting it to validate only the second sampler. What should be done to enforce that scope?

Adding elements Hard
A. Disable the assertion for the first controller iteration
B. Rename the assertion to match the second sampler
C. Move the assertion under the second HTTP sampler
D. Move the assertion above the second HTTP sampler

50 A CI job must run checkout.jmx without the GUI, override the target host, save raw results, and return a failing process status when JMeter itself cannot execute the test. Which command is most appropriate?

Creating and Running JMX file Hard
A. jmeter -g checkout.jmx -Jhost=test.example -o results.jtl
B. jmeter -s checkout.jmx -Dhost=test.example -j results.jtl
C. jmeter -n -t checkout.jmx -Jhost=test.example -l results.jtl
D. jmeter -r checkout.jmx -Ghost=test.example -e results.jtl

51 An HTTP Request Defaults element defines protocol https, host api.example.com, and port 443. A sampler in its scope explicitly defines host canary.example.com but leaves protocol and port empty. Which endpoint configuration is used?

Elements Configuration Hard
A. https://api.example.com:443
B. http://canary.example.com:80
C. https://canary.example.com:443
D. The sampler is invalid because all endpoint fields must be repeated

52 A saved JMX test plan is committed to source control, but it fails on another load generator because a CSV file and a third-party sampler cannot be found. Which statement explains the failure?

Saving a Test Plan Hard
A. A JMX file stores plugin binaries but excludes configuration elements that reference local files
B. A JMX file embeds external files only when it is saved from JMeter's non-GUI mode
C. A JMX file becomes machine-specific whenever any relative path is used in the Test Plan
D. A JMX file stores element configuration but does not embed external data files or plugin binaries

53 A non-GUI test must generate an HTML dashboard immediately after execution. The result file and output directory do not already exist. Which command expresses this workflow?

Creating Test Reports from running test plan Hard
A. jmeter -n -t plan.jmx -l results.jtl -e -o dashboard
B. jmeter -n -t plan.jmx -g results.jtl -e -o dashboard
C. jmeter -s -t plan.jmx -l dashboard -e -g results.jtl
D. jmeter -t plan.jmx -j results.jtl -r -o dashboard

54 A workload must sustain approximately 120 transactions per second. The measured average end-to-end transaction time is 2.5 seconds, with no think time. Using as a lower-bound concurrency estimate, what starting thread count is most appropriate before adding capacity for variability?

Creation of Performance Test Plan using JMeter Hard
A. 48 threads
B. 120 threads
C. 300 threads
D. 240 threads

55 A controller contains two samplers and has both a 500 ms Constant Timer and a Uniform Random Timer configured from 0 to 1,000 ms. Ignoring execution time, what delay behavior should be expected before each sampler?

Understanding JMeter Timers Hard
A. Only the Random Timer applies, producing a delay from 0 ms to 1,000 ms
B. Only the Constant Timer applies, producing an exact delay of 500 ms
C. The timers alternate, so each sampler receives exactly one of the two delays
D. The delays are combined, producing a delay from 500 ms to 1,500 ms

56 An API returns HTTP 200 with the JSON body {"status":"FAILED"} when a business operation fails. Which assertion strategy most directly detects this condition without treating all HTTP 200 responses as successful?

Using Assertions in JMeter Hard
A. Assert that the response duration is below the SLA
B. Assert that the response body contains valid UTF-8 text
C. Assert that the parsed JSON field status equals SUCCESS
D. Assert that the HTTP response code equals 200

57 A Throughput Controller is configured for Percent Executions = 30 with Per User disabled and encloses a checkout transaction. Which interpretation is correct?

Using Controllers in JMeter Hard
A. It targets roughly 30% of eligible controller executions across the participating threads
B. It guarantees that checkout traffic remains at exactly 30 requests per second
C. It limits each thread to exactly 30 checkout executions during the complete test
D. It routes 30% of response bytes through the enclosed checkout transaction

58 A login sampler returns a token that must be added to the next request. Which arrangement correctly respects JMeter processor timing?

Processors in JMeter Hard
A. Use a Pre-Processor under login to extract the token before the login response is received
B. Use a Post-Processor under login to extract the token, then reference it in the next request
C. Use a Post-Processor under the next request to modify that request before it is sent
D. Use a Pre-Processor under the next request to extract the token from its future response

59 A controller starts a remote test on four JMeter engines. The JMX file defines 250 threads, and no engine-specific property changes the thread count. Approximately how many total threads can the system generate?

Distributed Testing with JMeter Hard
A. 62 threads because JMeter rounds the shared thread count down per engine
B. 1,000 threads because each remote engine runs the complete Thread Group
C. 254 threads because each remote engine contributes one coordination thread
D. 250 threads because the controller divides the Thread Group across all engines

60 A distributed test succeeds on the controller but every remote engine reports that users.csv is missing. The JMX and CSV exist only on the controller. What is the correct remediation?

Distributed Testing with JMeter Hard
A. Change CSV sharing mode to All threads so remote engines read the controller's local file
B. Enable remote_hosts so JMeter serializes all referenced files with the JMX test tree
C. Deploy the CSV to every engine at a consistent path or provision it through an external deployment step
D. Add a View Results Tree listener so the controller transfers the CSV during test startup