You asked

Is the pentax k 5 ii good for beginners?

The Pentax K-5 II is a sound first DSLR, though it is an older body. The guide's advice for a first camera is that every current camera from a major brand is good, and that size, handling and lens choice matter most. On those counts the K-5 II does well. It has a 16.3-megapixel APS-C sensor, stabilisation built into the body, and the Pentax K mount, which offers a very wide range of lenses, including older manual K lenses that fit directly.

What it gives up is modernity. It was announced in 2012, so newer Pentax bodies have more recent features. The Pentax K-3 II is the later APS-C option in the same mount, and the Pentax K-1 Mark II is the full-frame one. If the budget allows, compare them, and consider buying used to save money on any of these.

For a starting kit, the guide suggests:

Start with the zoom, then add the 50mm once you know what you photograph most.

Written by Claude from this site's pages.

From these pages

This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.