New: LLM Rankings are live!

See how the top LLMs rank on real infrastructure tasks
Engineering
Gemini 4 Carbon on iac-bench 2026-11

Gemini 4 Carbon on iac-bench 2026-11

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.

Chris Hill5 min
Share

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.

DeveloperGoogle
API identifiergemini-4-carbon
AccessGemini API
WeightsClosed
List price (USD / M tokens, in / out)2.0 / 10.0 (OpenRouter, 2026-11-24)
Evaluated2026-11-23 (generation) · 2026-11-24 (judge)
Attempts18 (6 fixtures × 3 samples)
Overall composite79.1 (95% CI 77.1–80.1)
Rank13 of 24 (95% rank interval 12–17)
Mechanical only / judge only79.3 (rank 13) / 86.4 (rank 14)
Failed gates · insecure attempts0/18 · 2/18
Estimated cost, all 18 attempts$16.36

Summary

Gemini 4 Carbon ranks 13th of 24 with an overall composite of 79.1. The two models below it are not ordered against it: its win probabilities against Qwen4 Max (78.9) and Gemini 4 Hydrogen (78.6) are 0.39 and 0.64. Gemini 4 Neon is ahead of it with win probability 0.97, and it is ahead of GPT-6 Luna (77.3) with 0.93. Two of its 18 attempts have a security finding, both on App Service.

Its best fixture is GKE (median 91.0, the highest of the Google models there), followed by Cloud SQL and the storage account (87.8 and 87.1). On G004 all three modules have Secrets Manager manage the master password on member clusters of the global database, a known apply failure that halves the composite: 43.2 instead of about 85–87.

Like Gemini 4 Neon, it hardcodes most security settings, includes most expertise items and builds large interfaces. Where it differs is App Service, where single posture settings are left as inputs with safe defaults.

Scores

FixtureComposite median (range)Rubric medianExpertiseJudge median✗ gate⚠ securityMedian inputsMedian output tokensMedian timeMedian cost
G001 · S383.7 (79.7–84.5)0.8127/786.80/30/32742,0671007 s$0.803
G002 · Cloud SQL87.8 (84.1–88.7)0.8478/997.40/30/32837,788747 s$0.774
G003 · App Service81.5 (75.8–85.5)0.8165/581.60/32/3 (H1, H2)2155,0241642 s$1.003
G004 · Aurora global43.2 (42.3–43.4)0.4407/884.20/30/33660,9062660 s$1.168
G005 · GKE91.0 (90.6–92.2)0.9068/1092.10/30/33646,6261014 s$0.892
G006 · Storage87.1 (84.8–89.5)0.9207/876.30/30/32641,1861208 s$0.761

Rubric items not at full credit, counted over attempts that planned: G001: H12 3/3, H13 3/3, H15 3/3, A4 3/3, A5 3/3, B1 1/3; G002: H3 2/3, H5 1/3, H9 3/3, H11 3/3, A8 3/3, B1 3/3; G003: H1 1/3, H2 1/3, H3 3/3, A6 3/3, A7 2/3, B1 2/3; G004: H9 3/3, H12 3/3, A5 3/3, B1 1/3, known apply failure in 3/3 (score ×0.5); G005: A5 3/3, B1 2/3; G006: A4 3/3. Definitions are in Scoring criteria.

Strengths

  • Expertise. 7/7 on S3 and 5/5 on App Service (including Key Vault references, 16/72 field-wide) in every attempt, 8/9 on Cloud SQL, 8/10 on GKE and 7/8 on the storage account.
  • GKE. Only the interface budget and provider constraints are lost; private nodes, a restricted control plane, secrets encryption and a non-fixed control-plane range are present in 3/3. The judge graded the three modules 89.5–92.1.
  • Cloud SQL flags consumers cannot weaken. Its required security flags are merged after the consumer's database_flags in 3/3. The judge graded the three modules 86.8–97.4.
  • Storage account. Shared-key access and nested public access are hardcoded off, and the interface budget is the only rubric item lost (A4, 3/3).
  • Validation with teaching messages. 15–29 validation blocks per module (382 across 18), plus preconditions such as the zone-redundancy check on the App Service plan and the distinct-region check on the Aurora global cluster.

Weaknesses

  • G004 known apply failure, 3/3. manage_master_user_password = true on member clusters (F1). Also lost in 3/3: H9, final snapshots (H12) and the interface budget (36–37 inputs against 12–22).
  • App Service posture behind single inputs (2/3 insecure).
    • One attempt hardcodes HTTPS-only and FTP basic auth off, but takes Web Deploy basic auth from rollout.basic_auth_publishing_enabled (H2, excerpt below).
    • Another takes https_only from availability.https_only (H1), and its ip_restriction_default_action = "Allow" overrides the computed Deny (Anti-patterns 0).
    • minimum_tls_version is an input in 3/3, so H3 is lost in 3/3.
  • Exposure overrides elsewhere. On the storage account network_default_action and public_network_access_enabled can reopen a locked firewall (Anti-patterns 0 in 2/3). On GKE, security_posture_mode accepts DISABLED and authorized_networks accepts 0.0.0.0/0 (Anti-patterns 1 in 2/3). On Aurora, consumer cluster parameters are filtered for rds.force_ssl only, so other TLS and audit parameters can be overridden (Anti-patterns 1 in 2/3).
  • S3 gaps. Access logging that cannot deliver (H13, 3/3), no provider block with a configurable region (H15, 3/3), CloudFront grants (A4, 3/3) and tags applied per resource (H12 half credit).
  • Cloud SQL. No deletion_policy that keeps removed databases (H11, 3/3), the region reaches the instance but not the provider (H9 half credit, 3/3), and deletion protection at half credit in 2/3 (H3).
  • Interface size. Budget items lost in 17/18 attempts; Interface design 1 in 15/18.

Characteristic patterns

  • Large interfaces, second only to Gemini 4 Neon among the Google models: medians of 27, 28, 21, 36, 36 and 26 inputs. It ties Gemini 3.6 Flash for the largest on the storage account.
  • Inputs grouped into concept objects on App Service (capacity, availability, health, rollout, observability), with raw attributes inside some of them.
  • Long main.tf files. File layout 1 in 6/18, for files of 250–500 lines mixing concerns.
  • One inaccurate description (Documentation 0 in 1/18): a Cloud SQL deletion_protection description promises environment-dependent behavior the variable does not have.

Representative excerpt

G003/gemini-4-carbon-e1/main.tf lines 42–49

  https_only                                     = true
  client_affinity_enabled                        = var.availability.client_affinity_enabled
  public_network_access_enabled                  = var.network.public_network_access_enabled
  virtual_network_subnet_id                      = var.network.vnet_integration_subnet_id
  vnet_image_pull_enabled                        = local.vnet_integrated
  key_vault_reference_identity_id                = var.key_vault_reference_identity_id
  ftp_publish_basic_authentication_enabled       = false
  webdeploy_publish_basic_authentication_enabled = var.rollout.basic_auth_publishing_enabled

HTTPS-only and FTP basic auth are literals, but Web Deploy basic auth comes from an input (default false), so one setting can turn shared publishing credentials back on. This fails the mandatory G003 H2 in this attempt.


Results · Methodology · Scoring criteria

Stay in the loop