DA0-002 Data Acquisition and Preparation Practice Question
An analyst is using a CTE to compute hierarchical data. Which TWO statements about recursive CTEs are true?
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 recursive member must reference the CTE name
Recursive CTEs consist of an anchor member (initial SELECT) that does not reference the CTE, making option B correct. The recursive member must reference the CTE name, as stated in option A. While UNION ALL is commonly used, it is not a strict requirement; some implementations allow alternative set operators, so option D is not universally true. Options C and E are false: recursive CTEs handle hierarchies beyond numerical sequences and can be used with GROUP BY.
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 recursive member must reference the CTE name
Why this is correct
Correct. The recursive member must reference the CTE name; this defines the recursion.
- ✓
The anchor member is the first SELECT that does not reference the CTE
Why this is correct
Correct. The anchor member is the initial SELECT that does not reference the CTE, forming the base case.
- ✗
Recursive CTEs can only be used for numerical sequences
Why it's wrong here
Can be used for any hierarchical data.
- ✗
Recursive CTEs must include a UNION ALL operator
Why it's wrong here
Incorrect. Although UNION ALL is typical, some databases permit other set operators, so this statement is not universally true.
- ✗
Recursive CTEs cannot be used with GROUP BY
Why it's wrong here
They can, with limitations.
Go deeper
Related to this question
About these practice questions
This DA0-002 question is part of Courseiva's 986-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This DA0-002 practice question is part of Courseiva's free CompTIA 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 DA0-002 exam.