Step 1: Identify the threats to food security mentioned.
The passage says:
\textit{“Extreme weather events, such as droughts and floods, can devastate agricultural areas.”}
Step 2: Compare with answer choices:
(A) Increased crop yields — Incorrect, the passage indicates crop yields are impacted negatively.
(B) Extreme weather events — Correct, explicitly stated as a threat.
(C) Sustainable farming practices — Incorrect, these are strategies to address challenges, not threats.
(D) Resilient crop varieties — Incorrect, also part of adaptation strategies, not a threat.