ExamGecko
Question list
Search
Search

Question 52 - DS0-001 discussion

Report
Export

Which of the following is a reason to create a stored procedure?

A.
To minimize storage space
Answers
A.
To minimize storage space
B.
To improve performance
Answers
B.
To improve performance
C.
To bypass case sensitivity requirements
Answers
C.
To bypass case sensitivity requirements
D.
To give control of the query logic to the user
Answers
D.
To give control of the query logic to the user
Suggested answer: B

Explanation:

A reason to create a stored procedure is to improve performance. A stored procedure is a set of SQL statements or commands that are stored and compiled in the database server, and can be executed by name or by a trigger. A stored procedure can improve performance by reducing the network traffic between the client and the server, as only the name or the parameters of the stored procedure need to be sent, rather than the entire SQL code. A stored procedure can also improve performance by reusing the same execution plan, as the stored procedure is compiled only once and cached in the server memory. The other options are either not true or not relevant for this purpose. For example, a stored procedure does not necessarily minimize storage space, as it still occupies space in the database server; a stored procedure does not bypass case sensitivity requirements, as it still follows the rules of the database system; a stored procedure does not give control of the query logic to the user, as it is defined and maintained by the database administrator or developer.Reference:CompTIA DataSys+ Course Outline, Domain 2.0 Database Deployment, Objective 2.2 Given a scenario, create database objects using scripting and programming languages.

asked 02/10/2024
Pineda Jerson
30 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first