Thursday, August 8, 2019

MongoDB Certified DBA - C100DBA 學習筆記

       2019 八月剛參加完 MongoDB DBA 的認證考試,依稀記得有幾個考題出得蠻有趣地,寫下來作為自己的學習紀錄。
       另外,關於 MongoDB 認證考試的準備方式,可參考前輩所寫 :http://mongodbcertificate.blogspot.com/



Shard

1.      Shard key
is immutable? Shard key不可改嗎?
不可改值嗎?
Unique ?

2.      Config db 何時可改動資料?
要改設定? based on doc? mongoDB support staff協助時?

3.      考慮改為 shard 的時機。
目前是3node replica set; 一年資料增量 3X; strict restore time limit

4.      Shard key boundary
Include lower boundary value, NOT include upper boundary value

5.      mongos 提供 routes service
6.      mongos config db 取得 data chuck location info

7.      建議的安全性設定
monogd enable authentication / auth?
每個 mongos 建立不同 acct?
Server 管理上限制使用 dedicated port?

Query / CURD

1.      what is DML?
Read? Write? Create user?
Ans: write

2.      read concern, majority

3.      write concern, 可能的結果
db.c1.update({},{2, timeout(400)})
導致block?
2 node write & in timeout limit?
timeout limit 前得不到 2 node confirm

4.      find() array 語法
{ a:1
b:[“Kevin Dery”, “Joe Yang”, “Peter Pan”]
}
以下哪個對 複選
db.c1.find(b: “Kevin Dery”)??
db.c1.find(b:[ “Kevin Dery”])??
db.c1.find(b.0: “Kevin Dery”)??

5.      Geo 查詢
Near


Index

1.      array index, 只能有一個
2.      explain default 是用那總方式?
3.      output 結果判斷是否為Covered query
4.      Index prefix, 以下query 是否用到 index?

5.      In memory sort
以下query 是否為 in memory sort? Or index uesed query?
Index name:1
db.c1.find({},{_id:0, address:1, name:1}).sort(name:1)


Philosophy

1.      name space 定義
abc.efg 是有效 namespace?
p.name 可做為 collection name 集合?

 

Server Administation

1.      local host exception
主要是用來作為 enable authentication 後,建立第一個 account

No comments:

Post a Comment