best way to understand it is:
OSPF External Networks are Layer 3.
Prefix filter strictly on Layer 3.
ACLs can filter on layer 3 , 4 +.
Thats why the anser is B, because OSPF is layer 3. It can be ACL but the more “strict” answer is more likely. I hope this helps