Courseiva
Test Tools →hardMultiple Choice

CTFL-v4 Test Tools Practice Question

Exhibit

JSON policy: { 'coverage_threshold': 85, 'report_format': 'JUnit', 'strict_mode': true }

Refer to the exhibit. What is the expected behavior when the code coverage of the test suite is 80%?

⚠ Common exam trap

Candidates often misinterpret the threshold logic, assuming that 80% coverage is 'good enough' or successful. They overlook that the configuration explicitly enforces a strict 85% minimum, causing a failure.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

The build will fail because the coverage is below the defined threshold.

The 'coverage_threshold' is set to 85, and 'strict_mode' is enabled. This means the test runner will enforce the quality requirement by failing the build if the threshold is not met. By requiring 85% coverage, the organization ensures a minimum level of structural validation. This is a common practice in highly regulated industries to maintain software reliability, forcing developers to write enough tests to cover the codebase before a release can proceed.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    The build will succeed because 80% is considered acceptable coverage.

    Why it's wrong here

    The coverage threshold is set to 85, which is a hard requirement in 'strict_mode'. Since 80% is lower than the required 85%, the build must fail. This is the intended behavior of such policies—to prevent code that does not meet quality standards from progressing through the deployment pipeline.

  • ✓

    The build will fail because the coverage is below the defined threshold.

    Why this is correct

    With 'strict_mode' enabled, the tool treats the threshold as a mandatory pass/fail criterion. Since the measured coverage (80%) is below the configured threshold (85%), the runner will report a failure, thereby preventing sub-optimal code from being merged or deployed into the higher-level integration environments.

  • ✗

    The tool will automatically increase the threshold to match the coverage.

    Why it's wrong here

    The tool configuration is static and controlled by the policy. It does not dynamically adapt thresholds based on test outcomes. This would be a dangerous practice, as it would effectively disable the quality check by lowering the bar whenever the tests fail to meet the original, required standards of quality.

  • ✗

    The report will be generated in JSON format.

    Why it's wrong here

    The exhibit explicitly states the 'report_format' is 'JUnit'. The tool will generate an XML file compliant with the JUnit format, not a JSON file. Misinterpreting the configuration settings leads to pipeline errors, as CI servers expect the report in the specific format defined in the configuration policy.

About these practice questions

Courseiva writes every CTFL-v4 question from scratch — 144 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official ISTQB exam blueprint

This CTFL-v4 practice question is part of Courseiva's free ISTQB certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CTFL-v4 exam.