⚡️ Pass with Confidence Sale - 40% off ALL packages! ⚡️

1 day, 22 hours remaining!

CompTIA Data+ DA0-002 (V2) Practice Question

A data analyst is tasked with analyzing customer purchase patterns from a SalesHistory table containing over 500 million records. The analysis only needs to consider transactions from the most recent quarter for the 'Electronics' category. The initial query, which includes multiple joins and complex aggregate functions, is running extremely slowly and timing out.

Which of the following is the most effective initial step to optimize the query's performance?

  • Rewrite the query to use parameterized values for the date range and product category.

  • Add a composite index to the TransactionDate and ProductCategory columns of the SalesHistory table.

  • Request that the database administrator increase the memory allocated to the database server.

  • First, filter the SalesHistory table to create a smaller subset of only the necessary records, and then apply the complex joins and aggregations to this subset.

CompTIA Data+ DA0-002 (V2)
Data Acquisition and Preparation
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot