The first thing you should do is make sure your question 1) isn't opinion based 2) doesn't have the same problems as opinion based questions, and 3) isn't too broad.
The What types of questions should I avoid asking? page has some guidance that applies here:
To prevent your question from being flagged and possibly removed,
avoid asking subjective questions where …
- every answer is equally valid: “What’s your favorite ______?”
your answer is provided along with the question, and you expect more
answers: “I use ______ for ______, what do you use?”
there is no actual problem to be solved: “I’m curious if other people feel like I do.”
- you are asking an open-ended, hypothetical question: “What
if ______ happened?”
- your question is just a rant in disguise: “______ sucks, am I right?”
I bolded those two items because those are the same problems with questions that are too broad and it's likely that questions that are too broad get closed as primarily opinion-based and vice versa. So you have to check for both.
What you want is for your question to be objective and specific. Remove any subjective criteria and wording. If your question is using words like "best", "proper", "easiest", etc. you need to define what that means in measurable terms. (Those terms should be removed altogether.)
Now you may be wondering about subjective questions that are considered good:
Some subjective questions are allowed, but “subjective” does not mean
“anything goes”. All subjective questions are expected to be
constructive. What does that mean? Constructive subjective questions:
- inspire answers that explain “why” and “how”
- tend to have long, not short, answers
- have a constructive, fair, and impartial tone
- invite sharing experiences over opinions
- insist that opinion be backed up with facts and references
- are more than just mindless social fun
This is harder to pull off and even questions that fit this criteria may get down and close votes from people who think subjective questions are off topic, no exceptions. If you think your question meets this criteria, you should point to this page in the Help Center (same link as above) and explain how your question meets all of these points and none from the first list.