The 10 Happiest (and Unhappiest) Jobs for 2015 Credit: Booth/Shutterstock

While most people want a job that's going to make them happy, some positions give you a better chance of attaining happiness at work than others.

School principals and executive chefs top this year's happiest jobs rankings by the online career site CareerBliss, while security guards and merchandisers were considered the unhappiest positions.

Elementary school principal Rose McIntyre said her job brings her a tremendous amount of joy each day.

"I get to positively influence an entire organization, and I get to be an instructional leader," McIntyre said in a statement. "I get to teach my staff research-based practices to improve student learning and help them go from good to great."

CareerBliss analyzed more than 25,000 independent company reviews posted on its website to determine the happiest and unhappiest jobs. Specifically, researchers evaluated the key factors that influence people's happiness at work, including their supervisors and co-workers, the support and rewards they receive, the growth opportunities available to them, the company culture, and the way they work and handle their daily tasks. [10 Happiest (and Unhappiest) Cities for Workers ]

For the second year in a row, technology-related jobs dominated the rankings. Among the 10 happiest jobs, half are in the tech industry.

Based on CareerBliss' reviews, the 10 happiest jobs for 2015, and their average salaries, are:

  1. School principal: $64,000
  2. Executive chef: $58,000
  3. Loan officer: $46,000
  4. Automation engineer: $71,000
  5. Research assistant: $30,000
  6. Oracle database administrator: $89,000
  7. Website administrator: $41,000
  8. Business development executive: $70,000
  9. Software engineer: $71,000
  10. Systems developer: $65,000

Not all jobs leave employees with that same warm and fuzzy feeling each day, however. That's especially true with the position of security guards, which was found to be the unhappiest job for the second straight year.

While money wasn't a determining factor in the rankings, employees working in the unhappiest jobs earn significantly less, on average, than those in the happiest positions.

  1. This year's 10 unhappiest jobs, according to CareerBliss, are:
  2. Security guard: $24,000
  3. Merchandiser: $28,000
  4. Sales: $30,000
  5. Dispatcher: $30,000
  6. Retail clerk: $20,000
  7. Research analyst: $45,000
  8. Legal assistant: $42,000
  9. Technical support agent: $28,000
  10. Truck driver: $35,000
  11. Customer service specialist: $30,000