关于MongoDB认证DBA Associate考试

From Mongo University,

mongo_university

下次开考时间:
Start: 2015年4月2日17:00
End: 2015年4月28日17:00

关于此考试

MongoDB认证DBA Associate级考试是为了具有MongoDB管理知识和技术的相关人员设立的。我们那些了解MongoDB相关基础知识并且具有一定专业管理经验的操作专家来进行认证。下面我们会详细说明对于此认证所需要具备的知识和技能:

考试细节

  • 考试将基于MongoDB 2.6版本进行。
  • 考试没有前提条件。任何人可以参与此认证考试,不过我们仍推荐大家进行一下自我学习或者参加M102和M202课程。考生也可以使用其他推荐学习准备材料
  • MongoDB认证考试提供在线网页监考解决方案。
  • 完成计算机设备检查以保证你的系统满足必要的硬件软件需要以完成考试。
  • 为了完成考试,你必须和你的监考方预约考试期。当然,一旦你注册了此考试,你就会收到相关的时间安排指导信息。
  • 你可以在考试期内的任何时间完成考试,早晚都行。
  • 一旦开考,考生将有90分钟来完成考试。
  • 对于不正确的回答不会倒扣分数。
  • 考试成绩将基于回答正确的题目的数量以及有专业评估作出的整体考试难度评判决定。
  • 考题类型为多选题,请将你认为正确的答案进行选择即可。
  • 在考试结束后,考试结果会在之后3周内得出。我们需要时间回顾考试时给出的问题并计算考试成绩。
  • 请注意考试费用中不会包括免费重考费用。

MongoDB所需知识:

  • 原理及特性:性能,JSON, BSON, 容错(fault tolerance),灾难恢复,水平缩放(horizontal scaling)以及Mongo shell
  • CRUD: 新建,读,更新和删除操作
  • 索引: 单键, 复合, 多键索引, 构成及性能
  • 聚合(Aggregation): 管道符, 操作符, 内存使用,排序(sort)、跳过(skip)和限制(limit)
  • 复制(Replication): 相关设置,oplog概念,写相关,枚举,故障转移及多个数据中心的部署
  • 分片(sharding):组件,何时分片,平衡,分片key,和哈希分片key
  • 应用管理: 数据文件,日志,认证及授权
  • 服务器管理:性能分析,诊断调试,运维,备份和恢复

所需通用IT知识
数据库概念基础
系统编程基础
基本的JavaScript编程能力

考试规则

  • 为了通过考试认证,测试者必须了解一下规则。视频,语音和计算机屏幕活动将会在考试时被记录获取并被考官回放检查。
  • 在认证过程中,测试者必须按提示提供以下信息:
  1. 一个清晰的头像照
  2. 一个官方出具并认可的照片,如驾照或护照
  3. 一份测试环境的视屏扫描
  • 考生必须独立在一个安静环境中进行考试。不允许和任何其他人进行交谈。
  • 在考试时,不会用到耳机,录音机,电视或其他计算机屏幕。
  • 考生仅被允许阅览考题,如果必要,可以使用如Google Translate这样的一个简单翻译工具。 其他的参考资料或软件都不可使用。

考试系统需求

  • Mac OS 10.6或以上,或Windows 7以上版本操作系统。Linux现在还不受支持。
  • 你需要一个摄像头和一个麦克风。

完成考试设备检查以保证你的系统满足考试的软硬件需要。

预约MongoDB university的DBA认证考试

诗檀软件 MongoDb学习群 421431253

 

 

现在MongoDB university提供DBA认证考试课程:

SCHEDULE

EXAM START END REGISTER
C100DEV: MongoDB Certified Developer Associate Exam Apr 21, 2015 Apr 28, 2015 REGISTER
C100DBA: MongoDB Certified DBA Associate Exam Apr 21, 2015 Apr 28, 2015 REGISTER
C100DBA: MongoDB Certified DBA Associate Exam Jul 21, 2015 Jul 28, 2015 Opens Apr 28, 2015
C100DEV: MongoDB Certified Developer Associate Exam Jul 21, 2015 Jul 28, 2015 Opens Apr 28, 2015
C100DBA: MongoDB Certified DBA Associate Exam Oct 20, 2015 Oct 27, 2015 Opens Jul 28, 2015
C100DEV: MongoDB Certified Developer Associate Exam Oct 20, 2015 Oct 27, 2015 Opens Jul 28, 2015
C100DBA: MongoDB Certified DBA Associate Exam Jan 19, 2016 Jan 26, 2016 Opens Oct 27, 2015
C100DEV: MongoDB Certified Developer Associate Exam Jan 19, 2016 Jan 26, 2016 Opens Oct 27, 2015

 

用户可以点击上面的REgister来预约网上考试。 考试分成 Developer Associate (C100DEV) 和 DBA Associate(C100DBA) 2种, Maclean选择的是 DBA Associate DBA专员, 考试费用为150美元。

 

预约mongodb dba认证考试 c100DEV

 

完成上述注册后,可以通过信用卡支付。 之后会被重定向到prod.examity.com/Mongodb 考试预约网站预约具体的考试时间, 需要先完成用户profile信息填写后具体schedule 时间。

 

C100DBA 的考纲如下:

 

Exam Details

  • This exam is based on MongoDB 2.6.
  • There are no prerequisites. Anyone may take the exam but we do recommend you take an in-person training or M102 and M202. Test takers should also make use of other recommended preparation materials.
  • MongoDB certification exams are delivered online using a web proctoring solution.
  • Complete the Computer Readiness Check to ensure your system meets the necessary hardware and software requirements to complete an exam.
  • To take the exam, you must schedule an exam session with our proctoring partner, Examity. Once you have registered for the exam, you will receive scheduling instructions.
  • You may complete the exam at any time, day or night between the start and end dates.
  • Test takers have 90 minutes to complete an exam.
  • There is no penalty for incorrect answers.
  • Exam scores are based on the number of correct answers with an adjustment made for the overall difficulty of the exam as determined by the data and expert assessment.
  • Exam question types are multiple choice and check all that apply.
  • Exam results will be available within 3 weeks following the close of the exam period. We need time to review any questions raised by the proctors and calculate exam results.
  • Please note that we are no longer including a free retake with the exam fee.

Required MongoDB Knowledge

  • Philosophy & Features: performance, JSON, BSON, fault tolerance, disaster recovery, horizontal scaling, and the Mongo shell
  • CRUD: Create, Read, Update, and Delete operations
  • Indexing: single key, compound, multi-key, mechanics, and performance
  • Aggregation: pipeline, operators, memory usage, sort, skip, and limit
  • Replication: configuration, oplog concepts, write concern, elections, failover, and deployment to multiple data centers
  • Sharding: components, when to shard, balancing, shard keys, and hashed shard keys
  • Application Administration: data files, journaling, authentication, and authorization
  • Server Administration: performance analysis, diagnostics and debugging, maintenance, backup, and recovery

 

 

C100DEV的考纲如下:

 

ABOUT THE EXAM

The MongoDB Certified Developer, Associate Level exam is intended for individuals with knowledge of the fundamentals of designing and building applications using MongoDB. We recommend this certification for software engineers who have a solid understanding of MongoDB fundamentals and some professional experience developing applications with MongoDB. The knowledge and skills required for certification are detailed below.

Exam Details

  • This exam is based on MongoDB 2.6.
  • There are no prerequisites. Anyone may take the exam but we do recommend you complete an in-person training or one of the following online courses: M101J, M101JS, M101N, or M101P. Test takers should also make use of other recommended preparation materials.
  • MongoDB certification exams are delivered online using a web proctoring solution.
  • Complete the Computer Readiness Check to ensure your system meets the necessary hardware and software requirements to complete an exam.
  • To take the exam, you must schedule an exam session with our proctoring partner, Examity. Once you have registered for the exam, you will receive scheduling instructions.
  • You may complete the exam at any time, day or night between the start and end dates.
  • Test takers have 90 minutes to complete an exam.
  • There is no penalty for incorrect answers.
  • Exam scores are based on the number of correct answers with an adjustment made for the overall difficulty of the exam as determined by the data and expert assessment.
  • Exam question types are multiple choice and check all that apply.
  • Exam results will be available within 3 weeks following the close of the exam period. We need time to review any questions raised by the proctors and calculate exam results.
  • Please note that we are no longer including a free retake with the exam fee.

Required MongoDB Knowledge

  • Philosophy & Features: performance, JSON, BSON, fault tolerance, disaster recovery, horizontal scaling, and the Mongo shell
  • CRUD: Create, Read, Update, and Delete operations
  • Data Modeling: embedding, references, document growth, modeling one-to-one and one-to-many relationships, modeling for atomic operations, modeling tree structures
  • Indexing: single key, compound, multi-key, mechanics, and performance
  • Aggregation: pipeline, operators, memory usage, sort, skip, and limit
  • Replication: configuration, oplog concepts, write concern, elections, failover, and deployment to multiple data centers
  • Sharding: components, when to shard, balancing, shard keys, and hashed shard keys

 

 

MongoDB 获得参数和命令行启动选项

mongos> db.adminCommand( { getParameter : "*" } )
{
        "authOnPrimaryOnly" : true,
        "enableLocalhostAuthBypass" : true,
        "enableTestCommands" : 0,
        "ignoreInitialVersionFailure" : false,
        "logLevel" : 0,
        "logUserIds" : false,
        "notablescan" : false,
        "quiet" : false,
        "releaseConnectionsAfterResponse" : false,
        "supportCompatibilityFormPrivilegeDocuments" : true,
        "syncdelay" : 60,
        "textSearchEnabled" : false,
        "ok" : 1
}


mongos> db.adminCommand( "getCmdLineOpts" )
{
        "argv" : [
                "mongos",
                "--configdb",
                "192.168.1.161:27019"
        ],
        "parsed" : {
                "configdb" : "192.168.1.161:27019"
        },
        "ok" : 1
}


db.adminCommand( { getParameter : "*" } )
db.adminCommand( "getCmdLineOpts" )

MongoDB生成测试数据脚本

MongoDB生成测试数据脚本

 

 

for (var i = 1; i <= 9000000; i++) {
   db.testData.insert( { x : i , name: "MACLEAN" , name1:"MACLEAN", name2:"MACLEAN", name3:"MACLEAN"} )
}


db.testData.find().count();

x小于0
db.testData.find({x: {$lt : 0}});

x大于400
db.testData.find({x: {$gt : 400}});

> db.testData.find({x: {$gt : 400}}).explain();




{
	"cursor" : "BasicCursor",
	"isMultiKey" : false,
	"n" : 5860637,
	"nscannedObjects" : 5861039,
	"nscanned" : 5861039,
	"nscannedObjectsAllPlans" : 5861039,
	"nscannedAllPlans" : 5861039,
	"scanAndOrder" : false,
	"indexOnly" : false,
	"nYields" : 45789,
	"nChunkSkips" : 0,
	"millis" : 2598,
	"server" : "macleandeMacBook-Pro.local:27017",
	"filterSet" : false
}
> 
> 
> 
> 
> db.testData.ensureIndex({x:1});




{
	"createdCollectionAutomatically" : false,
	"numIndexesBefore" : 1,
	"numIndexesAfter" : 2,
	"ok" : 1
}
> 
> 
> 
> 
> db.testData.find({x: {$gt : 400}}).explain();
{
	"cursor" : "BtreeCursor x_1",
	"isMultiKey" : false,
	"n" : 5860637,
	"nscannedObjects" : 5860637,
	"nscanned" : 5860637,
	"nscannedObjectsAllPlans" : 5860637,
	"nscannedAllPlans" : 5860637,
	"scanAndOrder" : false,
	"indexOnly" : false,
	"nYields" : 45786,
	"nChunkSkips" : 0,
	"millis" : 6165,
	"indexBounds" : {
		"x" : [
			[
				400,
				Infinity
			]
		]
	},
	"server" : "macleandeMacBook-Pro.local:27017",
	"filterSet" : false
}
> db.testData.find({x: {$lt : 0}}).explain();
{
	"cursor" : "BtreeCursor x_1",
	"isMultiKey" : false,
	"n" : 0,
	"nscannedObjects" : 0,
	"nscanned" : 0,
	"nscannedObjectsAllPlans" : 0,
	"nscannedAllPlans" : 0,
	"scanAndOrder" : false,
	"indexOnly" : false,
	"nYields" : 0,
	"nChunkSkips" : 0,
	"millis" : 0,
	"indexBounds" : {
		"x" : [
			[
				-Infinity,
				0
			]
		]
	},
	"server" : "macleandeMacBook-Pro.local:27017",
	"filterSet" : false
}
> db.testData.find({x: {$lt : 0}}).explain();
{
	"cursor" : "BtreeCursor x_1",
	"isMultiKey" : false,
	"n" : 0,
	"nscannedObjects" : 0,
	"nscanned" : 0,
	"nscannedObjectsAllPlans" : 0,
	"nscannedAllPlans" : 0,
	"scanAndOrder" : false,
	"indexOnly" : false,
	"nYields" : 0,
	"nChunkSkips" : 0,
	"millis" : 0,
	"indexBounds" : {
		"x" : [
			[
				-Infinity,
				0
			]
		]
	},
	"server" : "macleandeMacBook-Pro.local:27017",
	"filterSet" : false



MongoDB的Namespace

 

MongoDB的Namespace

Namespace的长度

 

每一个namespace包含的信息中:数据库和collection名字加起来不能超过123字节

 

Namespace的数量

namespace的数量限制是namespace文件大小除以628。

一个16MB大小的namespace 文件可以支持24000个namespace。 每一个collection或索引对应使用一个namespace。

Namespace文件的大小

Namespace文件大小截止目前不能超过2047MB。 默认情况下namespace文件是16MB,可以通过nsSize选项来指定其大小。

storage.nsSize

Type: integer

Default: 16

Specifies the default size for namespace files, which are files that end in .ns. Each collection and index counts as a namespace.

Use this setting to control size for newly created namespace files. This option has no impact on existing files. The maximum size for a namespace file is 2047 megabytes. The default value of 16 megabytes provides for approximately 24,000 namespaces.

The storage.nsSize option is available only for mongod.

 

在Windows 7上安装MongoDB 2.6.7

注意:Windows并不适合学习和部署MongoDB ,本文仅仅是介绍在Windows7上如何安装MongoDB 2.6.7,并不推荐你这样去学习MongoDB

注意:从mongodb 2.2开始不再支持Windows XP,所以本文只适合于XP以后的Vista、Windows7或之后的版本。

请注意以下内容在windows 7上经过大量用户严格测试,绝对没有问题,如果遇到问题绝对是你操作的问题,请不要到群里提问关于安装失败的问题!

 

下载介质

需要下载的介质和下载地址:

1.    451413_intl_x64_zip.exe
2.    32位Windows 下载mongodb-win32-i386-2.6.7-signed.msi
3.    64位Windows 下载 mongodb-win32-x86_64-2008plus-2.6.7-signed.msi
4.    Robomongo  mongdb图形化管理工具

 

 

 

如果不知道自己的Windows是32bit还是64bit,可以在cmd中运行

wmic os get osarchitecture

命令来获得信息

 

例如:

 

winarch

 

 

安装MongoDB

 

首先下载 HotFix 内存补丁451413_intl_x64_zip.exe,并运行

hotfix1

 

 

hotfix2

 

hotfix3

点击continue会将补丁解压到你指定的路径,在你指定的路径下会生成Windows6.1-KB2731284-v3-x64.msu 安装文件,双击该文件(www.askmac.cn)

 

hotfix4

点击 “是(Y)“

 

hotfix5

 

hotfix6

安装后需要重启Windows

 

 

 

假设为64位操作系统则双击 mongodb-win32-x86_64-2008plus-2.6.7-signed.msi ,否则mongodb-win32-i386-2.6.7-signed.msi

mongodb-windows-install1

 

点击Next

 

mongodb-windows-install2

 

选择接受协议” I accept the terms in License Agreement”   ,并点击Next

mongodb-windows-install3

 

选择Typical典型安装

 

mongodb-windows-install4

 

点击Install

 

mongodb-windows-install5

 

mongodb-windows-install6

 

默认情况下mongodb会被安装在C:\Program Files\MongoDB 2.6 Standard下,确认已安装mongodb,在cmd中运行

 

 

“C:\Program Files\MongoDB 2.6 Standard\bin\mongo.exe” –version

 

mongodb-version

 

 

若返回MongoDB shell version: 2.6.7,则说明安装成功了,可以将mongodb的命令加入到环境变量PATH中

 

mongodb-windows-install7

 

点击开始菜单 , 计算机=》右键菜单=》点击属性

 

mongodb-windows-install8

 

 

mongodb-windows-install9

 

菜单 高级=>环境变量

 

mongodb-windows-install10

mongodb-windows-install11

“C:\Program Files\MongoDB 2.6 Standard\bin”;

 

将以上信息完整不差地加入到变量值的最前面 ,并点击确定=》确定

 

如果正确添加,那么可以在cmd.exe中直接运行mongo 命令了,重新打开一个cmd.exe

 

mongodb-windows-install12

之后以管理员身份打开一个cmd.exe

 

mongodb-windows-install13

 

执行如下命令

 

md "C:\mongodb"
md "C:\mongodb\log"
md "C:\mongodb\data"
echo logpath=C:\mongodb\log\mongo.log > "C:\mongodb\mongod.cfg"
echo dbpath=C:\mongodb\data  >> "C:\mongodb\mongod.cfg"
"C:\Program Files\MongoDB 2.6 Standard\bin\mongod.exe" --config "C:\mongodb\mongod.cfg" --install

 

 

注意以上命令必须以管理员身份运行!!!

 

之后可以用mongo命令登陆数据库并执行一些命令了,例如:

 

mongo
show dbs
show collections;
db.db1.insert({URL:"www.google.com"});
db.db1.find()

 

 

mongodb-windows-install14

 

 

安装ROBOMONGO 图形化管理工具

 

使用之前下载的Robomongo-0.8.4-i386.exe图形化工具

双击运行 Robomongo-0.8.4-i386.exe

 

robomongo1 robomongo2 robomongo3 robomongo4 robomongo5

 

之后运行 robomongo,可以在开始菜单找到启动程序 ,点击Create

robomongo6

如果只连接本地的mongodb,那么什么都不用选择 ,save即可

 

robomongo7

 

 

robomongo8

点中本地,并点击connect

 

robomongo9

之后可以通过robomongo来管理mongodb了

 

 

删除MongDB服务

如果不再使用MongDB服务,则可以删除该服务,命令如下:

 

net stop MongoDB

“C:\Program Files\MongoDB 2.6 Standard\bin\mongod.exe” –remove

 

MongoDB管理员培训 for Administrators training

MongoDB for Administrators培训

培训课程请联系电话:13764045638  邮箱:service@parnassusdata.com

mongodbworld
课程大纲

 

MongoDB Architectural Overview
Origin, design goals, key features
Process structure (mongos, mongod, config servers)
Directory / file structure
Working with the MongoDB Shell
Documents and data types
CRUD (Inserts, queries, updates, deletes)
System commands
Single-server Configuration and Deployment
Configuration files
Data files and allocation
Log files
Hardware and file-system recommendations
Security
Built-in authentication
Recommendations for secure deployment
Monitoring MongoDB
mongostat
Analyzing memory and IO performance
Integration with monitoring tools: Munin / Cacti / Nagios
MongoDB’s web console
Indexing and Query Optimization
Managing indexes and MongoDB indexing internals
Single / Compound / Geo indexes
Identifying sub-optimal queries. Using the query profiler.
Introduction to drivers (Java/Python/Ruby/PHP/Perl)
How the drivers and shell communicate with MongoDB
BSON and the MongoDB Wire Protocol
Troubleshooting application connections
Intro to Read and Write scalabilityReplication and Durability
Master-slave replication
Replica sets
Using write concern for durability
Handling replication failures
Auto-Sharding
How sharding works
Setting up a MongoDB shard cluster
Choosing a shard keySharding and indexes
Sharding and Replica Set Topologies
Administering a sharded cluster
Shard / Chunk MigrationBackup and Restore Plans
Filesystem-based strategies
mongodump / mongorestore
rsync
mongoimport / mongoexport

 

MongoDB开发者培训MongoDB for Developers

MongoDB开发者培训

培训课程请联系电话:13764045638  邮箱:service@parnassusdata.com

课程大纲

 

Manipulating Documents
Query
Insert
Update
Remove
Upsert
Removing databases, fields and others
Document Structure
Datatypes
References
ID
Keys
Embedded sub-documents
Tree structures
Tailable Cursor
Two Phase Commits
Auto-incrementing Sequence field
Aggregation
Distinct
Aggregation Pipelines
Map-reduce
Indexes
Default _id
Single Field
Compound Index
Multikey Index
Geospatial Index
Hashed Index
Unique
Sparse

诗檀软件-MongoDB 数据库培训服务

培训课程请联系电话:13764045638  邮箱:service@parnassusdata.com

 

关于MongoDB程序员培训

这是一门对于那些计划使用MongoDB架构和设计应用程序的开发人员的基础课程。它包括了文档型数据库模式设计、MongoDB增删改查操作,以及一些对MapReduce和MongoDB数据库运维的介绍。

培训日程

第一天

MongoDB的介绍

  • MongoDB是什么,为什么要用MongoDB?
    •  核心概念
    •  环境
    •  文档
  • MongoDB的部署方式
  • 关于JSON
  • MongoDB的安装

CRUDMongoDB Shell

  • 介绍MongoDB API、文件核心概念、集合索引和数据建模。
  • 索引、查询分析和查询优化
  • 一些模式设计案例研究
  • 对各种场景的建模联系
  • 原子操作模式

第二天:

驱动程序

  • 驱动程序一般是如何运行的
  • Driver APIs 例子

复制集

  • 复制的概述
  • 配置副本集

分片集群

  • 分片的概述
  • 分片如何影响应用程序设计
  • 如何配置分片集群

性能调优和故障排除

  • 获取诊断信息
  • 诊断工具
  • 性能指标

在时间和兴趣的允许下新增的话题

  • Geospatial索引
  • GridFS
  • 集合
  • Q&A和动手实践

沪ICP备14014813号-2

沪公网安备 31010802001379号