← All CAD Flashcard Decks

Continuous Integration and Testing Flashcards

7 cards from real CAD practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.

Read the first 7 Continuous Integration and Testing flashcards as text
  1. What distinguishes Behavior-Driven Development (BDD) from Test-Driven Development (TDD)?

    Answer: BDD uses natural language specifications shared with stakeholders; TDD uses code-level tests written by developers

    BDD extends TDD by expressing tests in human-readable language (e.g., Gherkin) to align developers, testers, and business stakeholders.

  2. In contract testing for microservices, what does the 'consumer' define?

    Answer: The expectations about the provider's responses that it relies on

    Consumer-driven contract testing lets each consumer specify exactly what it needs from a provider, enabling independent deployability.

  3. What is 'shift-left testing' in Agile development?

    Answer: Moving testing activities earlier in the development lifecycle

    Shift-left means catching defects as early as possible—during design and coding—rather than in late-stage QA phases.

  4. Which type of test verifies that independently developed modules work correctly together?

    Answer: Integration test

    Integration tests validate the interactions and data flow between two or more components or services.

  5. A CI pipeline runs static code analysis. What is the primary benefit?

    Answer: It catches code quality issues, security vulnerabilities, and style violations automatically before merge

    Static analysis tools scan code without executing it, catching bugs, code smells, and security issues early in the pipeline.

  6. What is 'trunk-based development' and how does it relate to CI?

    Answer: Developing features directly on a single main branch with very short-lived feature branches, enabling true CI

    Trunk-based development maximizes integration frequency by keeping branches short-lived or absent, which is a prerequisite for genuine CI.

  7. When should acceptance tests be automated in an Agile CI pipeline?

    Answer: As part of the Definition of Done, so they run on every build

    Automating acceptance tests as part of the DoD ensures every build is verified against business requirements without manual intervention.