[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"me":3,"catalog:en:database\u002Fmongodb-indexes-queries":4,"config":214},null,{"field_key":5,"field_name":6,"seniority":7,"topic_key":8,"topic_name":9,"spec_key":7,"spec_name":7,"locale":10,"cell_total":11,"field_total":12,"seniorities":13,"topics":17,"specs":115,"samples":129},"database","Database","","mongodb-indexes-queries","Mongodb Indexes Queries","en",75,2475,[14,15,16],"junior","mid","senior",[18,21,24,27,30,31,34,37,40,43,46,49,52,55,58,61,64,67,70,73,76,79,82,85,88,91,94,97,100,103,106,109,112],{"key":19,"name":20,"count":11},"backup-recovery","Backup Recovery",{"key":22,"name":23,"count":11},"data-modeling","Data Modeling",{"key":25,"name":26,"count":11},"indexing","Indexing",{"key":28,"name":29,"count":11},"mongodb-aggregation","Mongodb Aggregation",{"key":8,"name":9,"count":11},{"key":32,"name":33,"count":11},"mongodb-operations","Mongodb Operations",{"key":35,"name":36,"count":11},"mongodb-replication-sharding","Mongodb Replication Sharding",{"key":38,"name":39,"count":11},"mongodb-schema-modeling","Mongodb Schema Modeling",{"key":41,"name":42,"count":11},"mongodb-transactions-consistency","Mongodb Transactions Consistency",{"key":44,"name":45,"count":11},"mysql-indexes","Mysql Indexes",{"key":47,"name":48,"count":11},"mysql-innodb-transactions","Mysql Innodb Transactions",{"key":50,"name":51,"count":11},"mysql-operations","Mysql Operations",{"key":53,"name":54,"count":11},"mysql-query-optimization","Mysql Query Optimization",{"key":56,"name":57,"count":11},"mysql-replication-scaling","Mysql Replication Scaling",{"key":59,"name":60,"count":11},"mysql-types-constraints","Mysql Types Constraints",{"key":62,"name":63,"count":11},"nosql-models","Nosql Models",{"key":65,"name":66,"count":11},"performance-tuning","Performance Tuning",{"key":68,"name":69,"count":11},"pg-indexes","Pg Indexes",{"key":71,"name":72,"count":11},"pg-mvcc-vacuum","Pg Mvcc Vacuum",{"key":74,"name":75,"count":11},"pg-operations","Pg Operations",{"key":77,"name":78,"count":11},"pg-query-planning","Pg Query Planning",{"key":80,"name":81,"count":11},"pg-transactions-locking","Pg Transactions Locking",{"key":83,"name":84,"count":11},"pg-types-constraints","Pg Types Constraints",{"key":86,"name":87,"count":11},"query-optimization","Query Optimization",{"key":89,"name":90,"count":11},"redis-cluster-sharding","Redis Cluster Sharding",{"key":92,"name":93,"count":11},"redis-data-structures","Redis Data Structures",{"key":95,"name":96,"count":11},"redis-expiration-eviction","Redis Expiration Eviction",{"key":98,"name":99,"count":11},"redis-persistence","Redis Persistence",{"key":101,"name":102,"count":11},"redis-replication-sentinel","Redis Replication Sentinel",{"key":104,"name":105,"count":11},"redis-transactions-scripting","Redis Transactions Scripting",{"key":107,"name":108,"count":11},"replication-scaling","Replication Scaling",{"key":110,"name":111,"count":11},"security-access","Security Access",{"key":113,"name":114,"count":11},"transactions-isolation","Transactions Isolation",[116,120,123,126],{"key":117,"name":118,"count":119},"mongodb","MongoDB",450,{"key":121,"name":122,"count":119},"mysql","MySQL",{"key":124,"name":125,"count":119},"postgresql","PostgreSQL",{"key":127,"name":128,"count":119},"redis","Redis",[130,148,161,175,188,201],{"id":131,"topic":9,"difficulty":132,"body":133,"options":134,"correct_key":139,"explanation":147},"019f87c2-bced-717c-a540-5108e8fcd692",1,"When a new regular collection is created in MongoDB, which index exists on it automatically, with no explicit `createIndex()` call?",[135,138,141,144],{"key":136,"text":137},"a","A compound index covering every field in the first inserted document",{"key":139,"text":140},"b","A unique index on the `_id` field",{"key":142,"text":143},"c","A text index on all string-typed fields",{"key":145,"text":146},"d","No index exists until one is created explicitly","MongoDB creates a unique index on `_id` when a regular collection is created, guaranteeing every document has a unique identifier and fast lookup by it. Specialized collection types can differ; for example, time series collections don't support unique indexes. There is no automatic compound or text index (a, c), and it isn't true that nothing exists by default (d).",{"id":149,"topic":9,"difficulty":132,"body":150,"options":151,"correct_key":136,"explanation":160},"019f87c2-bced-7a65-a2bf-93c9cb4b18f5","```javascript\ndb.products.createIndex({ price: 1 });\n```\nWhat does the value `1` mean in this single-field index definition?",[152,154,156,158],{"key":136,"text":153},"The index stores keys in ascending order",{"key":139,"text":155},"The index only accepts positive `price` values",{"key":142,"text":157},"The field will be indexed exactly once even after updates",{"key":145,"text":159},"The index applies to the first document inserted only","In an index specification, `1` means ascending order and `-1` means descending order for that key. It has nothing to do with allowed values (b), re-indexing behavior (c), or scope limited to one document (d) — a single-field index covers every document's value for that field.",{"id":162,"topic":9,"difficulty":163,"body":164,"options":165,"correct_key":142,"explanation":174},"019f87c2-bcee-72dd-b8c8-2e1e4ee746f9",2,"```javascript\ndb.orders.createIndex({ customerId: 1, orderDate: -1 });\n```\nWhat kind of index does this statement create?",[166,168,170,172],{"key":136,"text":167},"Two separate single-field indexes, one on `customerId` and one on `orderDate`",{"key":139,"text":169},"A text index that treats both fields as searchable strings",{"key":142,"text":171},"A compound index keyed on `customerId` ascending, then `orderDate` descending",{"key":145,"text":173},"A multikey index, since two fields are listed in the definition","Listing more than one field in a single `createIndex()` call builds one compound index whose keys are ordered by field order and direction — here `customerId` ascending first, `orderDate` descending second — not two separate indexes (a). It isn't a text index (b), and multikey indexing is about array-valued fields, not the number of fields listed (d).",{"id":176,"topic":9,"difficulty":163,"body":177,"options":178,"correct_key":145,"explanation":187},"019f87c2-bcee-7a1a-b14e-4d43abe0854a","```javascript\ndb.products.insertOne({ _id: 1, tags: [\"sale\", \"new\", \"clearance\"] });\ndb.products.createIndex({ tags: 1 });\n```\nSince `tags` holds an array, what kind of index does MongoDB build here?",[179,181,183,185],{"key":136,"text":180},"The `createIndex()` call fails, since array fields cannot be indexed directly",{"key":139,"text":182},"A single-field index that stores only the array's first element as the key",{"key":142,"text":184},"A text index, since arrays of strings are always indexed as searchable text",{"key":145,"text":186},"A multikey index, automatically created, with one index entry per array element","MongoDB detects that `tags` holds an array and automatically builds a multikey index, storing a separate index entry for each element of the array so a document can be found by any of its tags. It doesn't reject array fields (a), it doesn't index only the first element (b), and array indexing isn't automatically a text index — that requires an explicit `\"text\"` type (c).",{"id":189,"topic":9,"difficulty":132,"body":190,"options":191,"correct_key":136,"explanation":200},"019f87c2-bcef-7524-84a4-8663e69eb14c","What is the main purpose of a text index in MongoDB, e.g. `db.articles.createIndex({ content: \"text\" })`?",[192,194,196,198],{"key":136,"text":193},"It enables full-text search across the field's word content, used with the `$text` operator",{"key":139,"text":195},"It forces every value written to that field to be lowercase before storage",{"key":142,"text":197},"It replaces the need for the `_id` index on that collection",{"key":145,"text":199},"It speeds up exact string equality lookups the same way a regular index does","A text index tokenizes the field's contents into words (with stemming and stop-word handling) so `$text` queries can search for terms rather than exact strings — full-text search is exactly its purpose. It doesn't lowercase stored values (b), doesn't replace `_id` (c), and for plain exact-match lookups a regular ascending\u002Fdescending index, not a text index, is the right tool (d).",{"id":202,"topic":9,"difficulty":163,"body":203,"options":204,"correct_key":139,"explanation":213},"019f87c2-bcef-7c3f-9951-75f202a91014","```javascript\ndb.places.createIndex({ location: \"2dsphere\" });\ndb.places.find({\n  location: { $near: { $geometry: { type: \"Point\", coordinates: [13.4, 52.5] } } }\n});\n```\nWhat is the `2dsphere` index designed to support?",[205,207,209,211],{"key":136,"text":206},"Sorting numeric fields by two decimal places of precision",{"key":139,"text":208},"Efficient geospatial queries on GeoJSON data, treating coordinates on a sphere (Earth)",{"key":142,"text":210},"Storing two separate copies of the document for redundancy",{"key":145,"text":212},"Splitting the collection into two shards automatically based on location","A `2dsphere` index indexes GeoJSON points\u002Fshapes using spherical geometry, enabling queries like `$near`, `$geoWithin`, and `$geoIntersects` to find nearby or contained locations efficiently. It has nothing to do with decimal precision (a), document redundancy (c), or automatic sharding (d) — sharding requires its own separate configuration.",{"fields":215,"seniorities":391,"interview_shapes":392,"locales":397,"oauth":399,"question_count":402,"coach_enabled":403,"jd_match_enabled":403},[216,241,261,278,302,315,324,343,365,372,378,385],{"key":217,"name_tr":218,"name_en":218,"sort":132,"specializations":219},"backend","Backend",[220,223,226,229,232,235,238],{"key":221,"name":222,"field":217},"general","Genel",{"key":224,"name":225,"field":217},"go","Go",{"key":227,"name":228,"field":217},"python","Python",{"key":230,"name":231,"field":217},"java","Java",{"key":233,"name":234,"field":217},"csharp","C#\u002F.NET",{"key":236,"name":237,"field":217},"nodejs","Node.js",{"key":239,"name":240,"field":217},"php","PHP",{"key":242,"name_tr":243,"name_en":243,"sort":163,"specializations":244},"frontend","Frontend",[245,246,249,252,255,258],{"key":221,"name":222,"field":242},{"key":247,"name":248,"field":242},"javascript","JavaScript",{"key":250,"name":251,"field":242},"typescript","TypeScript",{"key":253,"name":254,"field":242},"react","React",{"key":256,"name":257,"field":242},"vue","Vue",{"key":259,"name":260,"field":242},"angular","Angular",{"key":262,"name_tr":263,"name_en":263,"sort":264,"specializations":265},"fullstack","Fullstack",3,[266,267,268,269,270,271,272,273,274,275,276,277],{"key":221,"name":222,"field":262},{"key":224,"name":225,"field":217},{"key":227,"name":228,"field":217},{"key":230,"name":231,"field":217},{"key":233,"name":234,"field":217},{"key":236,"name":237,"field":217},{"key":239,"name":240,"field":217},{"key":247,"name":248,"field":242},{"key":250,"name":251,"field":242},{"key":253,"name":254,"field":242},{"key":256,"name":257,"field":242},{"key":259,"name":260,"field":242},{"key":279,"name_tr":280,"name_en":280,"sort":281,"specializations":282},"devops-cloud","DevOps \u002F Cloud",4,[283,284,287,290,293,296,299],{"key":221,"name":222,"field":279},{"key":285,"name":286,"field":279},"aws","AWS",{"key":288,"name":289,"field":279},"gcp","GCP",{"key":291,"name":292,"field":279},"azure","Azure",{"key":294,"name":295,"field":279},"kubernetes","Kubernetes",{"key":297,"name":298,"field":279},"terraform","Terraform",{"key":300,"name":301,"field":279},"linux","Linux",{"key":303,"name_tr":304,"name_en":304,"sort":305,"specializations":306},"ai-engineer","AI Engineer",5,[307,308,309,312],{"key":221,"name":222,"field":303},{"key":227,"name":228,"field":303},{"key":310,"name":311,"field":303},"llm-rag","LLM\u002FRAG",{"key":313,"name":314,"field":303},"mlops","MLOps",{"key":5,"name_tr":316,"name_en":6,"sort":317,"specializations":318},"Veritabanı",6,[319,320,321,322,323],{"key":221,"name":222,"field":5},{"key":124,"name":125,"field":5},{"key":121,"name":122,"field":5},{"key":117,"name":118,"field":5},{"key":127,"name":128,"field":5},{"key":325,"name_tr":326,"name_en":327,"sort":328,"specializations":329},"mobile","Mobil","Mobile",7,[330,331,334,337,340],{"key":221,"name":222,"field":325},{"key":332,"name":333,"field":325},"ios-swift","iOS (Swift)",{"key":335,"name":336,"field":325},"android-kotlin","Android (Kotlin)",{"key":338,"name":339,"field":325},"flutter","Flutter",{"key":341,"name":342,"field":325},"react-native","React Native",{"key":344,"name_tr":345,"name_en":346,"sort":347,"specializations":348},"security","Güvenlik","Security",8,[349,350,353,356,359,362],{"key":221,"name":222,"field":344},{"key":351,"name":352,"field":344},"appsec","AppSec",{"key":354,"name":355,"field":344},"offensive-pentest","Offensive \u002F Pentest",{"key":357,"name":358,"field":344},"cloud-security","Cloud Security",{"key":360,"name":361,"field":344},"devsecops","DevSecOps",{"key":363,"name":364,"field":344},"blue-team-incident","Blue Team \u002F Incident",{"key":366,"name_tr":367,"name_en":368,"sort":369,"specializations":370},"qa-test-automation","QA \u002F Test Otomasyonu","QA \u002F Test Automation",9,[371],{"key":221,"name":222,"field":366},{"key":373,"name_tr":374,"name_en":374,"sort":375,"specializations":376},"data-engineer","Data Engineer",10,[377],{"key":221,"name":222,"field":373},{"key":379,"name_tr":380,"name_en":381,"sort":382,"specializations":383},"game-dev","Oyun Geliştirme","Game Development",11,[384],{"key":221,"name":222,"field":379},{"key":386,"name_tr":387,"name_en":387,"sort":388,"specializations":389},"ml-engineer","ML Engineer",12,[390],{"key":221,"name":222,"field":386},[14,15,16],{"junior":393,"mid":395,"senior":396},{"questions":394,"median_sec":3},20,{"questions":394,"median_sec":3},{"questions":394,"median_sec":3},[398,10],"tr",[400,401],"google","github",21750,true]