We study a variety of optimal investment problems for objectives related to attaining goals by a fixed terminal time. We start by finding the policy that maximizes the probability of reaching a given wealth level by a given fixed terminal time, for the case where an investor can allocate his wealth at any time between n + 1 investment opportunities: n risky stocks, as well as a risk-free asset that has a positive return. This generalizes results recently obtained by Kulldorff and Heath for the case of a single investment opportunity. We then use this to solve related problems for cases where the investor has an external source of income, and where the investor is interested solely in beating the return of a given stochastic benchmark, as is sometimes the case in institutional money management. One of the benchmarks we consider for this last problem is that of the return of the optimal growth policy, for which the resulting controlled process is a supermartingale. Nevertheless, we still find an optimal strategy. For the general case, we provide a thorough analysis of the optimal strategy, and obtain new insights into the behavior of the optimal policy. For one special case, namely that of a single stock with constant coefficients, the optimal policy is independent of the underlying drift. We explain this by exhibiting a correspondence between the probability maximizing results and the pricing and hedging of a particular derivative security, known as a digital or binary option. In fact, we show that for this case, the optimal policy to maximize the probability of reaching a given value of wealth by a predetermined time is equivalent to simply buying a European digital option with a particular strike price and payoff. A similar result holds for the general case, but with the stock replaced by a particular (index) portfolio, namely the optimal growth or log-optimal portfolio.