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. Only one operating system is supported
B. Vendor support is automatically included
C. A paid license is always required
D. Source code can be inspected

2 What is Apache JMeter primarily used for?

Introduction to JMeter Easy
A. Operating system installation
B. Performance and load testing
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 is open source
C. It tests hardware manufacturing
D. It only supports manual testing

4 Which prerequisite is commonly required before installing JMeter?

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

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 provide data or settings
B. To compile Java source code
C. To stop the operating system
D. To display only test charts

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

Understanding JMeter GUI Easy
A. The menu tooltip
B. The system tray
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 contain test elements
B. To install Java updates
C. To manage computer passwords
D. To edit website images

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

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

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

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

11 What is a .jmx file in JMeter?

Creating and Running JMX file Easy
A. A saved test plan file
B. A Java image file
C. A browser history 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 computer wallpaper
C. The request details
D. The Java installation path

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

Saving a Test Plan Easy
A. Edit > Find
B. File > Save
C. Help > About
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. Configuration element
C. Timer
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 keyboard layout
B. The screen resolution
C. The test objectives
D. The report color

16 What is the purpose of a timer in JMeter?

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

17 What does an assertion do in JMeter?

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

18 What is the purpose of a controller in JMeter?

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

19 When are JMeter preprocessors generally executed?

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

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

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

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. Built-in proprietary protocol coverage
B. Guaranteed vendor-managed test execution
C. Access to source code and extensibility
D. Bundled enterprise support agreements

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. Thread Group
B. Summary Report listener
C. Response Assertion
D. HTTP Request sampler

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. Built-in network packet capture
B. Non-GUI command-line execution
C. Automatic browser rendering
D. Native mobile device emulation

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. A browser extension is installed
B. The HTTP proxy is recording
C. The JMX file is compiled
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 Controller
B. A Timer
C. A PreProcessor
D. A Listener

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. HTTP Request Defaults
B. HTTP Cookie Manager
C. HTTP Cache Manager
D. CSV Data Set Config

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 toolbar and edit the tree root
B. Select the menu bar and edit the console
C. Select the log viewer and edit the status bar
D. Select the sampler in the tree and edit the right panel

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 is separate from the main Test Plan
B. WorkBench content replaces the root Test Plan when saved
C. WorkBench content automatically becomes a test fragment
D. WorkBench content executes before every Thread Group

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 child of the login sampler
B. As a sibling of the Thread Group
C. As a child of a global listener
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 -n -t checkout.jmx -l results.jtl
B. jmeter -g checkout.jmx -o results.jtl
C. jmeter -t results.jtl -l checkout.jmx
D. jmeter -r -o checkout.jmx -e 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. api.example.com
B. Both servers sequentially
C. No server value
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. Store the CSV path only in GUI preferences
B. Embed the CSV path in the JTL results file
C. Convert the CSV into a listener configuration
D. Keep the CSV in a consistent relative location

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 -l report -e results.jtl
C. jmeter -r results.jtl -o report
D. jmeter -n results.jtl -t 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 600-second ramp-up
C. 600 threads with a 300-second ramp-up
D. 300 threads with a 10-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. Synchronizing Timer set to 2000 users
B. Constant Timer set to 2 milliseconds
C. Gaussian Random Timer set to 2 milliseconds
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. Duration Assertion
B. Response Assertion
C. Size Assertion
D. HTML 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. If Controller
B. Interleave Controller
C. Loop Controller
D. Random 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 JSR223 PreProcessor before the login sampler
D. A Response Assertion before the next 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. Place the CSV file only on the controller
B. Copy the CSV file to every remote engine
C. Enable a listener to transmit the CSV file
D. Store the CSV file inside the results dashboard

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 a commercial tool because commercial licenses inherently produce more accurate measurements
B. Select a commercial tool after validating protocol support, support SLAs, and reporting compliance
C. Select JMeter because licensing cost should outweigh protocol and audit requirements
D. Select JMeter because source-code access guarantees support for every proprietary protocol

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

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. Duplicating each Thread Group and disabling the copies that target other environments
B. Embedding environment-specific hostnames in assertions and replacing them before execution
C. Recording separate JMX files for every environment and combining their result listeners
D. Parameterizing endpoints with properties and supplying values through command-line arguments

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 JMeter bin directory contains a generated dashboard output subdirectory
B. Whether the second machine has write access to the remote server's application deployment directory
C. Whether the second machine has a compatible Java runtime and resolves it through JAVA_HOME or PATH
D. Whether the JMX file contains an HTTP Request Defaults element at the Test Plan level

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 creates the request, the assertion validates its sample result, and the listener observes the result
B. The assertion creates the request, the sampler validates the response, and the listener controls iteration
C. The sampler schedules the threads, the listener validates the response, and the assertion writes the JTL
D. The listener creates the request, the assertion stores variables, and the sampler aggregates the result

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. All threads share one file position and consume exactly 100 credentials without duplication
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. Each iteration creates a new CSV file containing only the current thread's credentials

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

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 may not be persisted because it is intended as a temporary construction area
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 will execute twice because it is automatically copied into every Thread Group

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. Move the assertion under the second HTTP sampler
C. Rename the assertion to match the second 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 -s checkout.jmx -Dhost=test.example -j results.jtl
B. jmeter -r checkout.jmx -Ghost=test.example -e results.jtl
C. jmeter -g checkout.jmx -Jhost=test.example -o results.jtl
D. jmeter -n -t checkout.jmx -Jhost=test.example -l 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://canary.example.com:443
B. http://canary.example.com:80
C. https://api.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 element configuration but does not embed external data files or plugin binaries
B. A JMX file becomes machine-specific whenever any relative path is used in the Test Plan
C. A JMX file embeds external files only when it is saved from JMeter's non-GUI mode
D. A JMX file stores plugin binaries but excludes configuration elements that reference local files

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 -g results.jtl -e -o dashboard
B. jmeter -t plan.jmx -j results.jtl -r -o dashboard
C. jmeter -s -t plan.jmx -l dashboard -e -g results.jtl
D. jmeter -n -t plan.jmx -l results.jtl -e -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. 240 threads
C. 300 threads
D. 120 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 Constant Timer applies, producing an exact delay of 500 ms
B. Only the Random Timer applies, producing a delay from 0 ms to 1,000 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 body contains valid UTF-8 text
B. Assert that the parsed JSON field status equals SUCCESS
C. Assert that the HTTP response code equals 200
D. Assert that the response duration is below the SLA

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 routes 30% of response bytes through the enclosed checkout transaction
C. It guarantees that checkout traffic remains at exactly 30 requests per second
D. It limits each thread to exactly 30 checkout executions during the complete test

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 Post-Processor under login to extract the token, then reference it in the next request
B. Use a Post-Processor under the next request to modify that request before it is sent
C. Use a Pre-Processor under login to extract the token before the login response is received
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. 254 threads because each remote engine contributes one coordination thread
C. 250 threads because the controller divides the Thread Group across all engines
D. 1,000 threads because each remote engine runs the complete Thread Group

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