When preparing to transmit data, what would you do first, compress it, or encrypt it?
This is both a technical as well as a follow-up question. In your answer to the question 'What are the differences between encoding, encrypting, and hashing?', you discussed encryption. This technical question is asking a follow-up question about how you go about performing the encryption process. As discussed earlier, you should always anticipate follow-up questions once you've answered an inquiry from an interviewer. By keeping your previous answer brief and to the point, you encouraged the interviewer to explore this topic in more detail. Since you have expertise in this area, the questions should be easy for you to answer. This is also an example of how you can guide the interviewer through the interview.
"When using encryption to secure data, you should always encrypt the data before compressing it. If you compress the data first, you could not encrypt it properly or decrypt it when received by another device. The exact process is to create an encryption key, encrypt the data, compress it, then transmit the data and the decryption key to the receiving party."
Community answers are written by other candidates practicing this set. Reading how others frame the same question is one of the fastest ways to sharpen your own.
Anonymous Answer
Encrypt it then compress it.
Stephanie's Feedback
Great strategy--I just suggest developing this response a bit more. Why did you come to this sequence? What previous work experience have you had in this area? Providing a specific example will help to make your response more impactful and memorable.
