# Qwen4 Max on iac-bench 2026-11

> Source: <https://www.massdriver.cloud/blogs/iac-bench-2026-11-qwen4-max>
> Published: 2026-11-24 00:00:00+00:00

**Recommendation:** 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.
More in the playbook "Evals and testing for LLM apps": <https://wpnews.pro/playbooks/evals-testing>

New: LLM Rankings are live!

[See how the top LLMs rank on real infrastructure tasks](https://www.massdriver.cloud/llm-rankings)

How 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.

Every 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).

| Developer | Alibaba | 
| API identifier | `qwen/qwen4-max` | 
| Access | OpenRouter, Alibaba endpoint | 
| Weights | Closed | 
| List price (USD / M tokens, in / out) | 1.425 / 4.275 (OpenRouter, 2026-11-24) | 
| Evaluated | 2026-11-23 (generation) · 2026-11-24 (judge) | 
| Attempts | 18 (6 fixtures × 3 samples) | 
| **Overall composite** | **78.9** (95% CI 77.5–81.1) | 
| Rank | 14 of 24 (95% rank interval 11–16) | 
| Mechanical only / judge only | 78.0 (rank 15) / 87.3 (rank 13) | 
| Failed gates · insecure attempts | 0/18 · 2/18 | 
| Estimated cost, all 18 attempts | $2.16 | 

Qwen4 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%.

All 18 attempts planned. Two carry a security finding: G003 e2 leaves basic-auth publishing
on (G003 `H2`), and G004 e1 does not enforce encrypted connections on its secondary cluster
(G004 `H3`). All three Aurora global database attempts (G004) have Secrets Manager manage the
master password on the primary cluster, a known apply failure, so their composites are
halved (median 40.0, 18th). Its strongest fixtures are App Service (G003, 91.3, eighth) and
S3 (G001, 83.9, twelfth); Cloud SQL (G002, 81.7) is 19th. All 18 attempts cost $2.16.

Its distinguishing weakness is documentation that contradicts the code. The judge gave
*Documentation* 0 in 27 of 54 readings, tied with Gemini 3.8 Flash for the fifth-highest
count in the field.

Qwen4 Max was not part of the 2026-10 release; this is its first report.

| Fixture | Composite median (range) | Rubric median | Expertise | Judge median | ✗ gate | ⚠ security | Median inputs | Median output tokens | Median time | Median cost | 
|---|---|---|---|---|---|---|---|---|---|---|
| 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 | 
| 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 | 
| 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 | 
| 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 | 
| 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 | 
| 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 | 

Rubric 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).

`H6`, `H7` kept in 3/3), which GPT-6 Astra, GPT-6 Luna,
GPT-6.1 Terra and GPT-6.2 Astra lack in all of theirs. G001 e1 scores 92.9, losing only
access logging and half the tagging item.`manage_master_user_password = true` on the primary cluster, which Aurora rejects for
global 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
file says cluster parameters are inherited from the primary (excerpt below); the judge
called that comment inaccurate (`tier` description suggests `db-perf-optimized-N-2`, an Enterprise
Plus tier, while every attempt hardcodes `edition = "ENTERPRISE"`;` expiration_days = 30` with the default transition
of 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
second cluster in the same VPC fails to create (G005 `H16`).` deletion_policy` (G002 `H11`), backups and point-in-time
recovery always on (G002 `H4`/` H5` at 0.75), no maintenance-window input (G002 `A4`), the
region fed to the instance rather than the provider (G002 `H9` at 0.5), and no
`cloudsql.instanceUser` grant, so the IAM users it creates cannot log in (E6, 0/3).
G002 e1 also hardcodes deletion protection with no opt-out (G002 `B1`), including the
unbounded `>= 5.0` and `>= 5.40.0`.` abort_multipart_upload_days` on S3,
`performance_insights_retention_period` and `kms_deletion_window_in_days` on G004, and
`min_master_version` and `enable_intranode_visibility` on GKE.`ingress` inline on
`aws_security_group` (`location` regex that rejects "West Europe" (G006 e1).
`G004/qwen4-max-e1/secondary.tf` lines 7–12

```
# Notes on global-database semantics:
#   * credentials, database name and cluster parameters are inherited from
#     the primary - they are intentionally NOT set here
#   * a region-local CMK is required for the encrypted secondary storage
#   * the cluster can only be created once the primary has an instance
#     (hence the explicit depends_on)
```

`G004/qwen4-max-e1/secondary.tf` lines 24–32

```
  port = var.port

  storage_encrypted = true
  kms_key_id        = aws_kms_key.secondary.arn

  db_subnet_group_name   = aws_db_subnet_group.secondary.name
  vpc_security_group_ids = [aws_security_group.secondary.id]

  iam_database_authentication_enabled = true
```

The 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.

How 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.

How 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.

How 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.
