The two correct answers are:
D. When paraphrasing someone else's ideas.
E. When using a direct quote from a source.
Writers should cite sources to give proper credit to the original authors and to allow readers to verify the information. Common knowledge does not typically require citation.