だけに・だけあって: the difference
だけにN2
Meaning
As might be expected, Because, All the more because, It's only natural
Past papers
Tested 3 times in past papers
Example
この車は最新だけに、シートヒーターもついています。
This is the newest model, so naturally it even has seat heaters.
だけあってN2
Meaning
Is only natural, …Being the case, Because, As might be expected
Past papers
Tested 3 times in past papers
Example
茶道を習っているだけあって、礼儀が正しい。
As one might expect, since she is learning tea ceremony, she is polite.
How to tell them apart
「potential form+だけは+た」 is a set phrase for doing your best with no regrets: 「やるだけはやったから、悔いはない」 (I did all I could, so I have no regrets).
「だけに」: because..., all the more.
「だけあって」: as expected of..., for praise.