Difficulty: Easy
Correct Answer: Increased network traffic
Explanation:
Introduction / Context:Stored procedures encapsulate SQL and logic on the server. They are used for performance, security, and maintainability. This question asks you to identify which option is not a benefit.
Given Data / Assumptions:
Concept / Approach:Benefits include reduced round trips (less network traffic), consistent logic reuse (code sharing), improved security (expose only the proc), and plan reuse/optimization. Therefore, “increased network traffic” contradicts the usual effect.
Step-by-Step Solution:
List typical advantages: security, plan optimization, reuse, and less data over the wire.Evaluate each option versus this list.Identify the negative outlier: “Increased network traffic.”Verification / Alternative check:Compare two approaches: sending many individual SQL statements vs. one stored procedure call with parameters. The latter generally reduces bytes and latency.
Why Other Options Are Wrong:
Common Pitfalls:Assuming stored procedures always improve performance. Poorly written procedures or excessive server logic can still perform badly; however, they do not inherently increase network traffic.
Final Answer:Increased network traffic
Discussion & Comments