Q - " Hi, I have an iMac 2020, i5 with 1TB drive (hardly used)..... I want to do a factory reset as it is running real slow... I have exhausted a million checks and tests and Apple phone support couldn't help either. Whilst I only had a few apps on it - mainly office suite, i do have a browser with loads of bookmarks and passwords for websites that i don't want to lose..... "
Q - " should passwords and bookmarks automatically reinstate from iCloud when i add AppleID on set up? "
A - To answer the above questions.
Provided you have iCloud enabled and ALL the elements of iCloud enabled the bookmarks and passwords from iCloud should come back to the computer after doing a Reset of the computer
Sign in to iCloud on all your devices
Apps and features that use iCloud
How iCloud keeps information up to date across all your devices
If I may.
Just purchased a new M2 Computer and set it up on Saturday Past.
I use ALL Elements of iCloud that Apple offers and all the Safari Bookmarks came back as did all my Keychain Passwords
Q - " I am relatively new to Apple, but should i use the 'Time machine' to do a back up? and will it remember the above? Does a time machine restore put my apps back on? "
A - Yes for sure do a Time Machine Backup before doing a Reset of the computer.
If possible, do a second Time Machine Backup to another dedicated external Drive .
Back up your Mac with Time Machine
Backup disks for Time Machine
Having more than one TM Backup is good incase the first drive fails
Q - " I would appreciate some comments as to best way to reset it. I don't want the reset where it keeps personal files intact as this is presumably not fully factory resetting it... "
A - This article from Apple has all the needed information. Though it says Sell, give away etc the method to Reset the computer will apply to your needs
>> What to do before you sell, give away, trade in, or recycle your Mac
You may find some better performance after the Reset is performed
Though be aware Fusion Drives like this one in the report are not going to perform as well as a totally SSD Internal Configuration
The small SSD 32 GB and a Slow 1 TB 5400 RPM Rotational / Mechanical Drive will perform but struggle under the demands or Sonoma macOS 14
iMac (Retina 4K,21.5-inch, 2019)
Drives:
disk0 - APPLE SSD
SM0032L 28.00 GB (Solid State - TRIM: Yes)
Fusion drive
HTS541010A9E632 1.00 TB (Mechanical - 5400 RPM)