{"slug": "qwen4-max-on-iac-bench-2026-11", "title": "Qwen4 Max on iac-bench 2026-11", "summary": "Alibaba's Qwen4 Max scored an overall composite of 78.9 (95% CI 77.5–81.1) on the iac-bench 2026-11 infrastructure-as-code evaluation, ranking 14th of 24 models, according to Massdriver's LLM rankings. Across 18 attempts (6 fixtures × 3 samples) the closed-weights model produced 0 failed gates but 2 insecure attempts and cost an estimated $2.16 total; all three Aurora global database (G004) attempts hit a known apply failure with Secrets Manager managing the master password, halving their composites to a median of 40.0. Qwen4 Max's strongest fixture was App Service (G003, 91.3, eighth) and its distinguishing weakness was documentation contradicting code, with the judge giving Documentation 0 in 27 of 54 readings.", "body_md": "New: LLM Rankings are live!\n\n[See how the top LLMs rank on real infrastructure tasks](https://www.massdriver.cloud/llm-rankings)\n\nHow Qwen4 Max did on iac-bench 2026-11: an overall composite of 78.9, scores per fixture, strengths, weaknesses and the patterns in its OpenTofu modules.\n\nEvery model evaluated on the 2026-11 fixtures side by side, with a sortable leaderboard, picks by use case and the cost of each: [LLM rankings](https://www.massdriver.cloud/llm-rankings).\n\n| Developer | Alibaba | \n| API identifier | `qwen/qwen4-max` | \n| Access | OpenRouter, Alibaba endpoint | \n| Weights | Closed | \n| List price (USD / M tokens, in / out) | 1.425 / 4.275 (OpenRouter, 2026-11-24) | \n| Evaluated | 2026-11-23 (generation) · 2026-11-24 (judge) | \n| Attempts | 18 (6 fixtures × 3 samples) | \n| **Overall composite** | **78.9** (95% CI 77.5–81.1) | \n| Rank | 14 of 24 (95% rank interval 11–16) | \n| Mechanical only / judge only | 78.0 (rank 15) / 87.3 (rank 13) | \n| Failed gates · insecure attempts | 0/18 · 2/18 | \n| Estimated cost, all 18 attempts | $2.16 | \n\nQwen4 Max is new in 2026-11. It ranks 14th of 24 with an overall composite of 78.9 and a 95% rank interval of 11–16. It is not ordered against Gemini 4 Carbon just above it (win probability 0.61) or Gemini 4 Hydrogen just below it (0.72). It finishes ahead of Gemini 4 Neon in 11% of bootstrap resamples and ahead of Kimi K3.1 Pro in 4%, and ahead of GPT-6 Luna and GLM-5.3 in 96%.\n\nAll 18 attempts planned. Two carry a security finding: G003 e2 leaves basic-auth publishing\non (G003 `H2`), and G004 e1 does not enforce encrypted connections on its secondary cluster\n(G004 `H3`). All three Aurora global database attempts (G004) have Secrets Manager manage the\nmaster password on the primary cluster, a known apply failure, so their composites are\nhalved (median 40.0, 18th). Its strongest fixtures are App Service (G003, 91.3, eighth) and\nS3 (G001, 83.9, twelfth); Cloud SQL (G002, 81.7) is 19th. All 18 attempts cost $2.16.\n\nIts distinguishing weakness is documentation that contradicts the code. The judge gave\n*Documentation* 0 in 27 of 54 readings, tied with Gemini 3.8 Flash for the fifth-highest\ncount in the field.\n\nQwen4 Max was not part of the 2026-10 release; this is its first report.\n\n| Fixture | Composite median (range) | Rubric median | Expertise | Judge median | ✗ gate | ⚠ security | Median inputs | Median output tokens | Median time | Median cost | \n|---|---|---|---|---|---|---|---|---|---|---|\n| G001 · S3 | 83.9 (83.1–92.9) | 0.822 | 5/7 | 89.5 | 0/3 | 0/3 | 7 | 8,870 | 222 s | $0.068 | \n| G002 · Cloud SQL | 81.7 (77.5–84.9) | 0.818 | 6/9 | 84.2 | 0/3 | 0/3 | 10 | 10,529 | 157 s | $0.084 | \n| G003 · App Service | 91.3 (90.8–92.0) | 0.926 | 3/5 | 92.1 | 0/3 | 1/3 ( `H2` ) | 24 | 17,085 | 406 s | $0.144 | \n| G004 · Aurora global | 40.0 (39.6–42.1) | 0.411 | 4/8 | 78.9 | 0/3 | 1/3 ( `H3` ) | 17 | 20,890 | 397 s | $0.158 | \n| G005 · GKE | 87.5 (84.1–90.5) | 0.878 | 5/10 | 92.1 | 0/3 | 0/3 | 20 | 15,079 | 191 s | $0.118 | \n| G006 · Storage | 88.9 (85.4–89.1) | 0.920 | 4/8 | 86.8 | 0/3 | 0/3 | 8 | 9,161 | 197 s | $0.070 | \n\nRubric items not at full credit, counted over attempts that planned: G001: `H9` 2/3, `H12` 3/3, `H13` 3/3, `H15` 2/3, `A5` 1/3, `B1` 2/3; G002: `H3` 1/3, `H4` 3/3, `H5` 3/3, `H8` 1/3, `H9` 3/3, `H11` 3/3, `A3` 1/3, `A4` 3/3, `A5` 2/3, `A6` 1/3, `B1` 2/3; G003: `H2` 1/3, `A7` 2/3; G004: `H3` 1/3, `H9` 3/3, `H11` 1/3, `H12` 3/3, `H17` 3/3, `A3` 2/3, `A5` 3/3, `A8` 1/3, `B1` 1/3, known apply failure in 3/3 (score ×0.5); G005: `H9` 1/3, `H11` 1/3, `H16` 2/3, `A5` 3/3, `B1` 2/3; G006: `H7` 3/3, `H9` 3/3, `A4` 1/3. Definitions are in [Scoring criteria](https://www.massdriver.cloud/blogs/iac-bench-2026-11-scoring-criteria).\n\n`H6`, `H7` kept in 3/3), which GPT-6 Astra, GPT-6 Luna,\nGPT-6.1 Terra and GPT-6.2 Astra lack in all of theirs. G001 e1 scores 92.9, losing only\naccess logging and half the tagging item.`manage_master_user_password = true` on the primary cluster, which Aurora rejects for\nglobal databases (F1), so each composite is multiplied by 0.5.`rds.force_ssl` is not set there (G004 `H3`, a mandatory failure). A comment in the same\nfile says cluster parameters are inherited from the primary (excerpt below); the judge\ncalled that comment inaccurate (`tier` description suggests `db-perf-optimized-N-2`, an Enterprise\nPlus tier, while every attempt hardcodes `edition = \"ENTERPRISE\"`;` expiration_days = 30` with the default transition\nof 90 days, which the module's own precondition rejects;`AzureServices` bypass.`A5`, 3/3). Two attempts default `master_ipv4_cidr_block` to a fixed `172.16.0.0/28`, so a\nsecond cluster in the same VPC fails to create (G005 `H16`).` deletion_policy` (G002 `H11`), backups and point-in-time\nrecovery always on (G002 `H4`/` H5` at 0.75), no maintenance-window input (G002 `A4`), the\nregion fed to the instance rather than the provider (G002 `H9` at 0.5), and no\n`cloudsql.instanceUser` grant, so the IAM users it creates cannot log in (E6, 0/3).\nG002 e1 also hardcodes deletion protection with no opt-out (G002 `B1`), including the\nunbounded `>= 5.0` and `>= 5.40.0`.` abort_multipart_upload_days` on S3,\n`performance_insights_retention_period` and `kms_deletion_window_in_days` on G004, and\n`min_master_version` and `enable_intranode_visibility` on GKE.`ingress` inline on\n`aws_security_group` (`location` regex that rejects \"West Europe\" (G006 e1).\n`G004/qwen4-max-e1/secondary.tf` lines 7–12\n\n```\n# Notes on global-database semantics:\n#   * credentials, database name and cluster parameters are inherited from\n#     the primary - they are intentionally NOT set here\n#   * a region-local CMK is required for the encrypted secondary storage\n#   * the cluster can only be created once the primary has an instance\n#     (hence the explicit depends_on)\n```\n\n`G004/qwen4-max-e1/secondary.tf` lines 24–32\n\n```\n  port = var.port\n\n  storage_encrypted = true\n  kms_key_id        = aws_kms_key.secondary.arn\n\n  db_subnet_group_name   = aws_db_subnet_group.secondary.name\n  vpc_security_group_ids = [aws_security_group.secondary.id]\n\n  iam_database_authentication_enabled = true\n```\n\nThe secondary cluster of G004 e1 sets no parameter group, on the strength of a comment saying cluster parameters are inherited from the primary. Without one, rds.force_ssl is not enforced on the cluster that becomes the writer after a failover (G004 H3, a mandatory failure); the judge scored the comment as incorrect documentation.\n\nHow Gemini 3.8 Flash did on iac-bench 2026-11: an overall composite of 65.6, scores per fixture, strengths, weaknesses and the patterns in its OpenTofu modules.\n\nHow Gemini 4 Argon did on iac-bench 2026-11: an overall composite of 75.9, scores per fixture, strengths, weaknesses and the patterns in its OpenTofu modules.\n\nHow Gemini 4 Carbon did on iac-bench 2026-11: an overall composite of 79.1, scores per fixture, strengths, weaknesses and the patterns in its OpenTofu modules.", "url": "https://wpnews.pro/news/qwen4-max-on-iac-bench-2026-11", "canonical_source": "https://www.massdriver.cloud/blogs/iac-bench-2026-11-qwen4-max", "published_at": "2026-11-24 00:00:00+00:00", "updated_at": "2026-11-25 17:16:05.098594+00:00", "lang": "en", "topics": ["large-language-models", "ai-research", "ai-tools"], "entities": ["Qwen4 Max", "Alibaba", "Massdriver", "iac-bench", "OpenRouter", "Gemini 4 Carbon", "Kimi K3.1 Pro", "GPT-6 Luna"], "also_reported_by": [], "takeaway": "Qwen4 Max scored 78.9 overall on iac-bench 2026-11 (14th of 24), with its Aurora global database attempts halved to a median 40.0 because Secrets Manager managed the master password on the primary cluster, a known apply failure.", "recommendation": {"advice": "Benchmark IaC-generating models on per-fixture composites with security and apply-failure gates, not just judge scores; Qwen4 Max's 87.3 judge-only score masked a 40.0 Aurora result from a known apply failure.", "playbook": "evals-testing", "playbook_url": "https://wpnews.pro/playbooks/evals-testing"}, "alternates": {"html": "https://wpnews.pro/news/qwen4-max-on-iac-bench-2026-11", "markdown": "https://wpnews.pro/news/qwen4-max-on-iac-bench-2026-11.md", "text": "https://wpnews.pro/news/qwen4-max-on-iac-bench-2026-11.txt", "jsonld": "https://wpnews.pro/news/qwen4-max-on-iac-bench-2026-11.jsonld"}}