π‘οΈ Azure Cosmos DB Account MongoDB API version is below 4.2π’
- Contextual name: π‘οΈ Account MongoDB API version is below 4.2π’
- ID:
/ce/ca/azure/cosmos-db/mongodb-api-version-below-4-2 - Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
BEST_PRACTICE - Policy Categories:
COST,RELIABILITY
Statsβ
not available
Logicβ
- π§ prod.logic.yamlπ’
Descriptionβ
Descriptionβ
Ensure that Azure Cosmos DB accounts using the MongoDB API run server version 4.2 or a later Azure-supported version. The setting determines the account's MongoDB API storage format; it does not evaluate self-managed MongoDB servers or client drivers.
Rationaleβ
Azure reports lower query and storage costs for the MongoDB API 4.2 storage format. Migrating an eligible workload can therefore reduce the cost of storing data and executing queries. This policy identifies a configuration opportunity; it does not calculate workload-specific savings.
Impactβ
The migration creates a new account and moves data; it is not a routine in-place configuration update. Applications that depend on version-specific behavior can fail or behave differently after cutover. Plan compatibility testing, data validation, downtime, rollback, and the temporary cost of running source and target accounts.
Auditβ
This policy evaluates the
KindandAPI Server Versionproperties of each Azure Cosmos DB Account.
INCOMPLIANT: the account uses the MongoDB API and its server version is 3.2,... see more
Remediationβ
Remediationβ
Treat this finding as a planned migration, not an in-place account update. The appropriate migration method depends on the application, data volume, availability requirements, and target account configuration.
Plan and execute the migrationβ
- Confirm the account uses MongoDB API version
3.2,3.6, or4.0and identify the applications, drivers, queries, indexes, integrations, and data dependencies that use it.- Define an approved target version and create a separate Azure Cosmos DB account with equivalent network, backup, availability, encryption, monitoring, and access controls.
- Migrate representative data and validate application behavior, data integrity, performance, and cost in a non-production environment.
- Prepare a production cutover plan with an approved maintenance window, communications, monitoring, and a tested rollback procedure.
- Migrate production data and cut over application traffic only after validation succeeds. Retain the source account until the rollback window closes.
... see more
policy.yamlβ
Linked Framework Sectionsβ
| Section | Sub Sections | Internal Rules | Policies | Flags | Compliance |
|---|---|---|---|---|---|
| πΌ Cloudaware Framework β πΌ Infrastructure Modernization | 19 | no data | |||
| πΌ Cloudaware Framework β πΌ Resource Optimization | 37 | no data |