To get to your question, the code doesn't refer to the exterior in steps, but states from finished floor or platform to finished grade in excess of 30" requires a guard rail. A handrail is required for any stairway with more than 3 risers.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.