← Back to DRW Interview Questions

Question

A small observatory keeps a text log of one sensor event every 10 seconds, running continuously for 10 days. Each event consists of a 1,000-byte text payload and a 100-byte header containing its timestamp and device identifier. The text compressor reduces every payload to 30% of its original byte count, but the headers are stored uncompressed. There are no other files, indexes, backups or filesystem overheads.

How many megabytes (MB) of disk space will the archive occupy? Use 1 MB = 1,000,000 bytes, not \(2^{20}\) bytes.

Hint 1

The compressor changes 1,000 bytes of text into 300 bytes but leaves the 100-byte header untouched.

Multiply the new 400-byte event size by the number of 10-second intervals in \(10\times24\times60\times60\) seconds, then use the specified decimal MB conversion.

Check your answer

© 2026 EverythingQuant. All Rights Reserved.