ExamGecko
Question list
Search
Search

Question 2 - DS0-001 discussion

Report
Export

Which of the following is an advantage of creating indexes?

A.
To help with space allocation
Answers
A.
To help with space allocation
B.
To provide quick and efficient access to data
Answers
B.
To provide quick and efficient access to data
C.
To reduce memory
Answers
C.
To reduce memory
D.
To update the query plan
Answers
D.
To update the query plan
Suggested answer: B

Explanation:

The advantage of creating indexes is to provide quick and efficient access to data. An index is a data structure that stores the values of one or more columns of a table in a sorted order, along with pointers to the corresponding rows in the table. An index helps to speed up queries that search, filter, sort, or join data based on the indexed columns, as it reduces the number of disk accesses or scans required to locate the desired data. An index also helps to enforce uniqueness or referential integrity constraints on the indexed columns. The other options are either not true or not relevant for this purpose. For example, an index does not help with space allocation, as it consumes additional space in the database; an index does not reduce memory, as it may use memory for caching or buffering purposes; an index does not update the query plan, as it is an input or a factor for the query optimizer to generate the query plan.Reference:CompTIA DataSys+ Course Outline, Domain 1.0 Database Fundamentals, Objective 1.2 Given a scenario, execute database tasks using scripting and programming languages.

asked 02/10/2024
Jasper John Cecilio
30 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first