nerdexam
CompTIA

DA0-002 · Question #116

Which of the following best describes an assessment a data analyst would use to validate that the number of records in a dataset matches the expected results?

The correct answer is B. Unit test. A unit test is used to validate that the number of records in a dataset matches the expected results, ensuring data integrity at a granular level.

Data Acquisition and Preparation

Question

Which of the following best describes an assessment a data analyst would use to validate that the number of records in a dataset matches the expected results?

Options

  • ASource control
  • BUnit test
  • CStress test
  • DHealth check

How the community answered

(19 responses)
  • B
    89% (17)
  • C
    5% (1)
  • D
    5% (1)

Why each option

A unit test is used to validate that the number of records in a dataset matches the expected results, ensuring data integrity at a granular level.

ASource control

Source control manages code versions and changes, not data validation.

BUnit testCorrect

A unit test specifically validates individual components or functions, and in a data context, this can include verifying that data operations, like record counts, produce expected outcomes. This helps ensure the accuracy and integrity of data processing steps.

CStress test

A stress test evaluates system performance under extreme loads, not the accuracy of record counts.

DHealth check

A health check assesses the operational status of a system or service, not specific data validation logic.

Concept tested: Data validation testing

Source: https://learn.microsoft.com/en-us/visualstudio/test/unit-test-your-code

Topics

#Data validation#Data quality#Testing methodologies#Unit testing

Community Discussion

No community discussion yet for this question.

Full DA0-002 Practice