Courseiva

DA0-002 Data Concepts and Environments Practice Question

A data analyst needs to share a weekly sales report with the marketing team. The report includes aggregated data from the data warehouse. To simplify access, the analyst creates a virtual table that encapsulates the complex query. Which database object should the analyst create?

⚠ Common exam trap

Many candidates confuse a view with a stored procedure, thinking both can encapsulate logic, but only a view behaves as a virtual table that can be directly queried with SELECT, while a stored procedure requires explicit execution and does not return a result set in the same way.

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

✓

View

A view is a virtual table that encapsulates a complex query, allowing users to access aggregated data without needing to understand the underlying SQL. In this scenario, the analyst creates a view to simplify access to the weekly sales report, as it presents pre-defined, aggregated data from the data warehouse as if it were a table.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Trigger

    Why it's wrong here

    A trigger fires automatically in response to INSERT, UPDATE or DELETE events; it cannot encapsulate a query for repeated read access. It is tempting because triggers do execute stored logic, but their purpose is enforcing side effects on data modification, not exposing a reusable virtual table for reporting.

  • ✓

    View

    Why this is correct

    A view is a stored query that presents a virtual table, letting the marketing team select from it without rewriting the underlying aggregation. It satisfies the requirement for simplified, reusable access to the data warehouse's complex query results.

  • ✗

    Stored procedure

    Why it's wrong here

    A stored procedure executes procedural logic and returns result sets, but it is not a virtual table that can be queried directly like a relation. Stored procedures suit encapsulating multi-step business logic, whereas the requirement here is a named query presented as a table.

  • ✗

    Index

    Why it's wrong here

    An index is a physical storage and retrieval structure, not a saved query, so it cannot encapsulate the aggregation logic the marketing team needs. Indexes are the correct choice when the goal is accelerating lookups on specific columns, not sharing a reusable virtual table.

About these practice questions

This DA0-002 question is part of Courseiva's 1,004-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 →

How Courseiva writes practice questions · Editorial policy

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.