最近有機會輔助一位學員完成了 Datadog 的面試,整個流程體驗下來很有意思,也挺典型的雲監控與數據分析類崗位面試風格。 給大家整理一下,從 OA 到最終面試的全流程感受,以及一些實用的備考建議。

Onsite 演算法題
# Assume we have a File class whose constructor takes a filepath string as an argument. It has a single method called write, which persists bytesdirectly to disk.
# f = File('/tmp/my/file.txt')
# f.write(b"hello world")
# Write a wrapper class for the file object which allows us to buffer the writes in-memory. The wrapper class, BufferedFile is initialized with a Fileclass object and a buffer size. It has two methods: write and flush. The data should be flushed to disk when the buffer is full, or on demand with a methodcalled flush. All bytes must be stored in the buffer first before being written to disk. The buffer cannot use more memory than the max bytes allowed.
# Example usage:
# f = File('/tmp/my/file.txt')
# buf_size = 1000
# b = BufferedFile(f, buf_size)
# b.write(b"hello world")
# b.flush()
The logs to be an "M" (match)., all the words in the log should be present in that Query. For ex - "M: Loading snapshot failed no stacktrace available; Q=2,3,4" is a match with Q 2,3,4because - "Stacktrace", "loading failed", and "snapshot loading" - each of these words are present in the Log "Loading snapshot failed no stacktraceavailable".
livetail_stream = [
"Q: database",
"Q: Stacktrace",
"Q: loading failed",
"L: Database service started",
"Q: snapshot loading",
"Q: fail",
"L: Started processing events",
"L: Loading main DB snapshot",
"L: Loading snapshot failed no stacktrace available",
]
livetail_output = [
"ACK: database; ID=1",
"ACK: Stacktrace; ID=2",
"ACK: loading failed; ID=3",
"M: Database service started; Q=1",
"ACK: snapshot loading; ID=4",
"ACK: fail; ID=5",
"M: Loading main DB snapshot; Q=4",
"M: Loading snapshot failed no stacktrace available; Q=2,3,4",
]
系統設計
“Design a mint-like app, but it only had transactions from credit/debit cards and analytics and notification if transaction goes over athreshold.”
系統設計不難,一些關鍵的點在我們的面試輔助中都有提到。 候選人經過我們的面試輔導,也在面試中能對一些系統設計中涉及的概念能娓娓道來。
Contact Us
經過我們的強力面試輔助,OA 代寫,Onsite 面試輔助,候選人通過這些面試題的解析和溝通,面試官不僅瞭解了候選人的程式設計能力,也看到了我在解決問題過程中清晰的思路和有效的溝通技巧。 這些不僅有助於應對 Datadog 的面試,同時也能提升我們解決實際程式設計問題的能力。 祝大家面試順利!
The Candidate observed my problem-solving and thinking process clearly through our interview support service, which is applicable to Datadoginterviews and can also strengthen programming abilities. Wishing everyone luck with their interview!
If you also need our interview assistance services, please contact us immediately.