だけあって・だけに: the difference
だけあって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.
だけに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.
How to tell them apart
「だけあって」 is only for praise, 'as expected of...'; never for disappointment.
「だけに」 works both ways, including 'because I expected so much, the letdown is bigger': 「楽しみにしていただけに、中止になって残念だ」.
If the sentence ends with disappointment, regret or sadness, choose 「だけに」, not 「だけあって」.