
[2023年更新]C100DEVリアルな試験問題集でC100DEV練習テスト
C100DEV問題集でMongoDB Certified Developer Associate高確率練習問題集
質問 # 96
You have a configuration file for mongod instance called mongod.conf in your working directory. How can you launch mongod instance with this configuration file?
- A. mongod -f mongod.conf
- B. mongod --conf mongod.conf
- C. mongod --config mongod.conf
- D. mongod --use mongod.conf
正解:A、C
解説:
https://docs.mongodb.com/manual/reference/configuration-options/#use-the-configuration-file
質問 # 97
Select all true statements regarding to the _id field in MongoDB documents. (select 4)
- A. The _id can be an array data type.
- B. MongoDB adds an _id field to any inserted document if it doesn't have one.
- C. When inserting a document, the _id value is already generated as an ObjectId type, if not directly specified.
- D. We can select a non ObjectId type value for _id field when inserting a new document.
- E. The _id values must be unique for the collection.
正解:B、C、D、E
解説:
https://docs.mongodb.com/manual/core/document/ https://docs.mongodb.com/manual/reference/method/ObjectId/
質問 # 98
Which cursor method should you use to force MongoDB to use a specific index for a query?
- A. cursor.index()
- B. cursor.use()
- C. cursor.hint()
- D. cursor.explain()
正解:C
解説:
https://docs.mongodb.com/manual/reference/method/cursor.hint/
質問 # 99
You have the following index in a movies collection: { "title": 1, "imdb.rating": -1, "imdb.votes": -1, "type": 1 } Can the following query use the given index for both filtering and sorting?
db.movies.find( { "title": "James Bond", "imdb.rating": { "$gt": 8} } ).sort( { "imdb.rating": 1 } )
- A. No
- B. Yes
正解:B
解説:
Yes, although this query does not use equality in the "imdb.rating" field of the index prefix, it does use the same field for sorting. https://docs.mongodb.com/manual/indexes/
質問 # 100
Consider the following command: $ mongod --dbpath /data/db --logpath /data/logs --replSet REPL1 --bind_ip '127.0.0.1,192.168.168.84' -- keyFile /data/keyfile --fork Which of the following configuration files is equivalent to the specified command?
- A. storage: dbPath: "/data/db" systemLog: destination: file path: "/data/logs" replication: replSetName: "REPL1" net: bindIp: "127.0.0.1,192.168.168.84" processManagement: fork: true
- B. storage dbPath="/data/db" systemLog destination=file path="/data/logs" replication replSetName="REPL1" net bindIp="127.0.0.1,192.168.168.84" security keyFile="/data/keyfile" processManagement fork=true
- C. storage: dbPath: "/data/db" systemLog: destination: file path: "/data/logs" net: bindIp: "127.0.0.1,192.168.168.84" security: keyFile: "/data/keyfile" processManagement: fork: true
- D. storage: dbPath: "/data/db" systemLog: destination: file path: "/data/logs" replication: replSetName: "REPL1" net: bindIp: "127.0.0.1,192.168.168.84" security: keyFile: "/data/keyfile" processManagement: fork: true
正解:D
解説:
https://docs.mongodb.com/manual/reference/configuration-options/
質問 # 101
Suppose you insert the following documents into a companies collection:
db.companies.insertMany([ {"name": "Facebook"}, {"name": "Twitter"} ])
Select all true statements about this command. (select 3)
- A. This command will insert two documents into the collection.
- B. The _id field is not specified in any of these documents.
- C. This command will insert one document into the collection.
- D. MongoDB will automatically create an _id field for each document and it will be unique.
正解:A、B、D
解説:
https://docs.mongodb.com/manual/reference/method/db.collection.insertMany/
質問 # 102
Select all true statements about query plans in MongoDB. (select 2)
- A. If there are no indexes for the query, the main stage in the query plan will be the COLLSCAN stage.
- B. Query plans are cached so that plans don't have to be generated and compared with each other each time a query is executed.
- C. For a given query, each index in the collection generates at least one query plan.
正解:A、B
解説:
https://docs.mongodb.com/manual/core/query-plans/
質問 # 103
Suppose you have a mobile_games collection with the following document structure:
{ game: "Fishing Clash", company: "Ten Square Games", platforms: ['Android', 'IOS'], ...
release_USA: ISODate("2017-04-09T01:00:00+01:00"),
release_France: ISODate("2017-04-09T01:00:00+01:00"),
release_Italy: ISODate("2017-08-17T01:00:00+01:00"), ... }
You want to redesign your document structure as below:
{ game: "Fishing Clash", company: "Ten Square Games", platforms: ['Android', 'IOS'],
releases: [ { location: "USA", date: ISODate("2017-04-09T01:00:00+01:00") },
{ location: "France", date: ISODate("2017-04-09T01:00:00+01:00") },
{ location: "Italy", date: ISODate("2017-08-17T01:00:00+01:00") }, ], }
Which pattern solution will you use to solve this problem?
- A. The Extended Reference Pattern.
- B. The Bucket Pattern.
- C. The Schema Versioning Pattern.
- D. The Subset Pattern.
- E. The Attribute Pattern.
正解:E
解説:
https://www.mongodb.com/blog/post/building-with-patterns-the-attribute-pattern
質問 # 104
Select properly used $out operator.
- A. db.collection.aggregate([ { $out: "new_collection" }, { stage1 }, { stage2 }, ..., { $stageN } ])
- B. db.collection.aggregate([ { stage1 }, { stage2 }, ..., { stageN }, { $out: "new_collection" } ])
- C. db.collection.aggregate([ { stage1 }, { $out: "new_collection" }, { stage2 }, ..., { stageN } ])
正解:B
解説:
https://docs.mongodb.com/manual/reference/operator/aggregation/out/
質問 # 105
Which cursor method should you use to return the number of documents in the result set?
- A. cursor.sum()
- B. cursor.explain()
- C. cursor.total()
- D. cursor.count()
正解:D
解説:
https://docs.mongodb.com/manual/reference/method/db.collection.count/
質問 # 106
Which of the following statements are true regarding MongoDB views?
- A. MongoDB views themselves don't contain data.
- B. MongoDB views are created on demand and reflect the data in the source collection.
- C. Views are write only.
- D. Write operations to views will raise an error.
- E. Views are read only.
正解:A、B、D、E
解説:
https://docs.mongodb.com/manual/core/views/
質問 # 107
What is the built-in database called config in MongoDB for?
- A. The config database plays an important role in the authentication and authorization process. Certain actions performed by administrators also require access to this database.
- B. The config database stores data describing the MongoDB server. For replica sets, it also stores information about the replication process.
- C. The config database is used to store information about shards in shared MongoDB cluster.
正解:C
解説:
https://docs.mongodb.com/manual/reference/config-database/
質問 # 108
Which of the following queries can use an index on the title field?
- A. db.movies.find( { title: "Death Note" } )
- B. db.movies.find()
- C. db.movies.find( { _id: 245 } )
- D. db.movies.find()
- E. db.movies.find( { genres: "Drama", type: "series" } )
正解:A
解説:
https://docs.mongodb.com/manual/indexes/
質問 # 109
The following capped collection is given: db.createCollection('latest_news', {'capped': true, 'size': 10000, 'max': 3}) [ { _id: ObjectId("61e8007c9b3067e362440a88"), title: 'COVID records broken again as weekend brings nearly 40K new cases' }, { _id: ObjectId("61e800989b3067e362440a89"), title: 'Bitcoin, Ethereum, Dogecoin Face Fresh Round Of Regulatory Scrutiny' }, { _id: ObjectId("61e800d19b3067e362440a8a"), title: 'Where Six Meme Stock Investors Are Now' } ] What the latest_news collection will look like after the following operation?
- A. db.latest_news.insertOne({title: 'TikTok owner ByteDance dissolves its investment arm'}) [ { _id: ObjectId("61e800989b3067e362440a89"), title: 'Bitcoin, Ethereum, Dogecoin Face Fresh Round Of Regulatory Scrutiny' }, { _id: ObjectId("61e800d19b3067e362440a8a"), title: 'Where Six Meme Stock Investors Are Now' }, { _id: ObjectId("61e801439b3067e362440a8b"), title: 'TikTok owner ByteDance dissolves its investment arm' } ]
- B. [ { _id: ObjectId("61e8007c9b3067e362440a88"), title: 'COVID records broken again as weekend brings nearly 40K new cases' }, { _id: ObjectId("61e800989b3067e362440a89"), title: 'Bitcoin, Ethereum, Dogecoin Face Fresh Round Of Regulatory Scrutiny' }, { _id: ObjectId("61e800d19b3067e362440a8a"), title: 'Where Six Meme Stock Investors Are Now' } ]
- C. [ { _id: ObjectId("61e8007c9b3067e362440a88"), title: 'COVID records broken again as weekend brings nearly 40K new cases' }, { _id: ObjectId("61e800989b3067e362440a89"), title: 'Bitcoin, Ethereum, Dogecoin Face Fresh Round Of Regulatory Scrutiny' }, { _id: ObjectId("61e800d19b3067e362440a8a"), title: 'Where Six Meme Stock Investors Are Now' }, { _id: ObjectId("61e801439b3067e362440a8b"), title: 'TikTok owner ByteDance dissolves its investment arm' } ]
正解:A
解説:
https://docs.mongodb.com/manual/core/capped-collections/
質問 # 110
Select true statements regarding to MongoDB. Check all that apply.
- A. MongoDB database organizes documents in rows and columns.
- B. Documents in MongoDB are organized into collections.
- C. MongoDB is a NoSQL database that uses documents to store data in an organized way.
正解:B、C
解説:
https://www.mongodb.com/what-is-mongodb
質問 # 111
Select all valid BSON types in MongoDB. (select 4)
- A. Boolean
- B. String
- C. Dictionary
- D. Array
- E. ObjectId
正解:A、B、D、E
解説:
https://docs.mongodb.com/manual/reference/bson-types/
質問 # 112
Select all options where you should use sharding.
- A. You have over 6TB per server and operating costs are increasing dramatically.
- B. Every time you start a new project with MongoDB.
- C. Your server disks are full, but you can scale up.
- D. Your organization outgrows the most powerful servers available, which limits your vertical scaling capabilities.
正解:A、D
解説:
https://docs.mongodb.com/manual/sharding/
質問 # 113
......
C100DEVリアルな問題と知能問題集:https://jp.fast2test.com/C100DEV-premium-file.html
合格できるC100DEV試験と最新C100DEV試験問題集PDF2023:https://drive.google.com/open?id=1RZEJ_K0Nsrz5vdHas-H2B_OinLh_j6Zg