The command requires the policy name, pattern in quotes, and JSON string with keys and values in double quotes.
Step 2: Identify correct JSON format and quoting
rabbitmqctl set_policy ha-all ".*" '{"ha-mode":"all"}' uses correct JSON with double quotes around keys and values and quotes the pattern ".*" properly.
Final Answer:
rabbitmqctl set_policy ha-all ".*" '{"ha-mode":"all"}' -> Option B