Let $X$ denote a random variable following the uniform distribution on $\left[ 0 ; \frac { \pi } { 2 } \right]$. The probability that a value taken by the random variable $X$ is a solution to the inequality $\cos x > \frac { 1 } { 2 }$ is equal to:
Answer A: $\frac { 2 } { 3 } \quad$ Answer B: $\frac { 1 } { 3 } \quad$ Answer C: $\frac { 1 } { 2 } \quad$ Answer D: $\frac { 1 } { \pi }$