MongoDB MongoDB Atlas and Cloud Deployment 3 — Questions and Answers
Question 1: What is the Atlas connection string format used by application drivers?
- mongodb://username:password@host:27017
- mongodb+srv://username:password@cluster.mongodb.net/dbname (Correct answer)
- atlas://username:password@cluster-id.mongodb.net
- https://cloud.mongodb.com/api/v1/connect
Correct answer: mongodb+srv://username:password@cluster.mongodb.net/dbname
Atlas uses the mongodb+srv:// connection string format, which uses DNS SRV records to automatically discover all cluster members, handle failover, and load balance connections. The +srv format is recommended over listing individual hostnames for Atlas deployments.
Question 2: What is Atlas App Services (formerly Realm) used for?
- Managing Atlas cluster hardware configurations
- Building mobile and web applications with backend services including authentication, data sync, and serverless functions (Correct answer)
- Configuring Atlas network access and security rules
- Running MongoDB shell commands via the Atlas UI
Correct answer: Building mobile and web applications with backend services including authentication, data sync, and serverless functions
Atlas App Services (formerly MongoDB Realm) provides a backend-as-a-service (BaaS) platform including: user authentication (OAuth, email/password, API keys), Device Sync for offline-first mobile apps, serverless Functions, GraphQL API, and Triggers — all integrated with Atlas clusters.
Question 3: What does Atlas Performance Advisor recommend?
- Optimal cluster tier upgrades based on billing history
- Index creation suggestions based on slow query patterns detected in the cluster (Correct answer)
- Query rewrites to optimize aggregation pipelines
- Shard key recommendations for existing collections
Correct answer: Index creation suggestions based on slow query patterns detected in the cluster
Atlas Performance Advisor analyzes slow query logs and recommends new indexes to improve query performance. It identifies queries that would benefit most from additional indexes and generates the exact createIndex() commands, making index optimization accessible without manual query analysis.
Question 4: What is the purpose of Atlas Database Users vs Atlas Organization Users?
- They are identical; Atlas uses one user type for all access
- Database Users authenticate to MongoDB clusters; Organization Users manage Atlas infrastructure via the web UI and API (Correct answer)
- Database Users are read-only; Organization Users have write access
- Organization Users access Atlas from mobile; Database Users from desktop
Correct answer: Database Users authenticate to MongoDB clusters; Organization Users manage Atlas infrastructure via the web UI and API
Atlas distinguishes between Database Users (MongoDB credentials used by applications to connect and authenticate to clusters, defined with roles like readWrite or atlasAdmin) and Atlas Users (human users or API keys that manage Atlas infrastructure via the Atlas web UI, CLI, or API).
Question 5: Which Atlas feature provides real-time performance metrics and allows you to kill long-running operations?
- Atlas Data Explorer
- Real-Time Performance Panel (Correct answer)
- Atlas Charts
- Performance Advisor
Correct answer: Real-Time Performance Panel
The Atlas Real-Time Performance Panel displays live metrics including operations per second, network throughput, connections, CPU usage, and a list of currently executing operations. DBAs can identify and terminate problematic long-running queries or slow operations directly from the panel.
Question 6: What is Atlas Serverless in MongoDB Atlas?
- A deployment model that removes the need for config servers
- An instance type that automatically scales compute resources and charges based on operations consumed rather than provisioned capacity (Correct answer)
- A feature that runs Atlas without any server infrastructure
- A mode where MongoDB operates without a storage engine
Correct answer: An instance type that automatically scales compute resources and charges based on operations consumed rather than provisioned capacity
Atlas Serverless instances automatically scale compute and storage resources based on workload demand. Pricing is consumption-based (per Read Processing Unit, Write Processing Unit, and GB stored) rather than hourly provisioned capacity. Ideal for variable or unpredictable workloads with periods of inactivity.
What is the Atlas connection string format used by application drivers?