Main and the most important human attributes required to have hope and faith is the sense of agency and having gratitude. Hope means to believe that you get positive outcome when no action is involved like being optimistic in general or have a positive attitude towards life. Faith is to believe that you get positive outcome in future by taking action now like exercising daily to be strong as we age or save money in pension deposit for later use.
So to have hope and faith in life, we need to be grateful for what we are and have in life and also to must have the ability to control what you can control now.
*Do read the Disclaimer