Max memory is a pair of 8 gig DDR3L-1600 SO-DIMM and the hard drive can be replaced with a 2.5 inch SATA SSD of any capacity you can buy in the market. 1 TB will be no problem. The memory is a bit difficult to access as it is on the backside of the motherboard, which you must remove to do the upgrade.
Post back with any more questions and please accept as solution if this is the info you needed.
Be alert for scammers posting fake support phone numbers and/or email addresses on the community. If you think you have received a fake HP Support message, please report it to us by clicking on "Flag Post".