New: LLM Rankings are live!
See how the top LLMs rank on real infrastructure tasks
Gemini 3.8 Flash on iac-bench 2026-11
How Gemini 3.8 Flash did on iac-bench 2026-11: an overall composite of 62.8, 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.
| Developer | |
| API identifier | gemini-3.8-flash |
| Access | Gemini API |
| Weights | Closed |
| List price (USD / M tokens, in / out) | 0.825 / 4.125 (OpenRouter, 2026-11-24) |
| Evaluated | 2026-11-24 and 2026-11-25 (generation) · 2026-11-24 and 2026-11-25 (judge) |
| Attempts | 18 (6 fixtures × 3 samples) |
| Overall composite | 62.8 (95% CI 58.8–66.5) |
| Rank | 23 of 24 (95% rank interval 22–24) |
| Mechanical only / judge only | 63.3 (rank 23) / 67.1 (rank 23) |
| Failed gates · insecure attempts | 0/18 · 10/18 |
| Estimated cost, all 18 attempts | $10.28 |
Summary
Gemini 3.8 Flash ranks 23rd of 24 with an overall composite of 62.8. Ten of its 18 attempts have a security finding, tied with Kimi K3 behind Gemini 3.6 Flash (15) and DeepSeek V4 Pro (11). It is ahead of Gemini 3.6 Flash with win probability 0.91. Gemini 3.1 Pro (67.5) and DeepSeek V4 Pro (69.5) are ahead of it with win probabilities 0.98 and 0.87.
Most of its findings come from one habit it shares with Gemini 3.6 Flash: security
settings exposed as inputs with safe defaults. The S3 public access block, Cloud SQL
public IP and ssl_mode, App Service HTTPS and storage account shared-key access are all
consumer inputs, and validation is rare.
Its best fixtures are GKE (82.4, no security finding) and App Service (76.0). The storage account (52.6) is its weakest after Aurora, followed by Cloud SQL (62.6) and S3 (63.4). It never scores 85 or more on any attempt.
Scores
| Fixture | Composite median (range) | Rubric median | Expertise | Judge median | ✗ gate | ⚠security | Median inputs | Median output tokens | Median time | Median cost |
|---|---|---|---|---|---|---|---|---|---|---|
| G001 · S3 | 63.4 (57.5–67.2) | 0.604 | 6/7 | 68.4 | 0/3 | 3/3 (H1) | 29 | 42,766 | 653 s | $0.448 |
| G002 · Cloud SQL | 62.6 (51.6–63.9) | 0.656 | 6/9 | 55.3 | 0/3 | 2/3 (H1, H2) | 37 | 46,832 | 603 s | $0.603 |
| G003 · App Service | 76.0 (65.9–77.6) | 0.792 | 4/5 | 68.4 | 0/3 | 2/3 (H1, H2) | 45 | 50,917 | 1265 s | $0.776 |
| G004 · Aurora global | 39.6 (37.9–40.9) | 0.421 | 6/8 | 68.4 | 0/3 | 0/3 | 33 | 47,514 | 888 s | $0.712 |
| G005 · GKE | 82.4 (76.9–82.8) | 0.870 | 6/10 | 76.3 | 0/3 | 0/3 | 20 | 30,745 | 336 s | $0.358 |
| G006 · Storage | 52.6 (51.9–71.6) | 0.478 | 3/8 | 65.8 | 0/3 | 3/3 (H1, H2) | 25 | 43,661 | 912 s | $0.480 |
Rubric items not at full credit, counted over attempts that planned: G001: H1 3/3, H12 3/3, H13 3/3, H15 3/3, A3 3/3, A4 1/3, A5 3/3, B1 1/3; G002: H1 1/3, H2 2/3, H3 3/3, H7 3/3, H9 3/3, H10 3/3, H11 3/3, A8 3/3, B1 1/3; G003: H1 1/3, H2 1/3, H3 2/3, A6 2/3, A7 3/3; G004: H9 3/3, H12 2/3, H13 3/3, H17 1/3, A5 3/3, known apply failure in 3/3 (score ×0.5); G005: H3 3/3, H9 1/3, H11 1/3, H16 2/3, A4 1/3, A5 3/3; G006: H1 2/3, H2 3/3, H6 1/3, H7 3/3, H9 1/3, H10 2/3, A3 3/3, A4 3/3. Definitions are in Scoring criteria.
Strengths
- GKE without a security finding (3/3): nodes have no public IP and no input can give them one, and the judge credits Workload Identity, shielded nodes and a least-privilege node service account.
- Expertise despite the security misses. S3: 6 of 7 items in two attempts and 5 in the third (only name uniqueness is missing in all three), including consumer access policies. Aurora: performance insights, enhanced monitoring, snapshot tags and the global writer endpoint.
- App Service scope. Autoscale, a staging slot, Application Insights and metric alerts; 4/5 expertise items.
- Mechanics. Lifecycle meta-arguments and Outputs scored 2 in 17/18.
Weaknesses
- S3 public access block as inputs (
H1, 3/3).block_public_accessandenforce_tlsbooleans can switch off privacy and TLS enforcement (excerpt below; Anti-patterns 0 in 3/3). - Cloud SQL (2/3 insecure, median 62.6).
- One attempt takes
ipv4_enabledand an unvalidatedssl_modestring from inputs, and thessl_modedescription lists the unencrypted mode (H1,H2). Another takesssl_modefrom an input (H2). The third hardcodesipv4_enabled = falseandssl_mode = "ENCRYPTED_ONLY"on the primary and its replicas, and has no security finding (63.9). - Consumer
database_flagsare merged after the module's flags in 3/3. In one attempt that lets IAM authentication be turned off although its description says the flag is "always enforced" (Documentation 0); in the others pgaudit can be turned off. - Built-in users with raw, non-sensitive
passwordfields in 3/3 (H7,H10; Sensitive values 0 in 3/3). Two attempts grant the IAM users noroles/cloudsql.instanceUser(E6); the third grants it optionally. - 33–38 inputs against a budget of 25–35 (
A8), and novalidationblock in 2/3.
- One attempt takes
- Storage account (3/3 insecure). Shared-key access stays on (
H2, 3/3); two attempts takeallow_nested_items_to_be_publicandshared_access_key_enabledfrom inputs (H1). No blob access logs in 3/3 (H7). - App Service (2/3 insecure). Basic-auth publishing left enabled in one attempt (
H2) andhttps_onlyas an input in another (H1). In 2/3https_onlyorminimum_tls_versioncan weaken transport (Anti-patterns 0). Interfaces of 43–52 inputs against a budget of 20–30 (A7, 3/3); its median of 45 is second only to Kimi K3.1 Pro (51). - G004 known apply failure, 3/3 (F1), and fewer than seven days of backups at defaults
in 3/3 (
H13). One attempt letscustom_cluster_parametersreplacerds.force_ssl. - Little validation. 31
validationblocks across 18 modules, none in 8 of them; Variables and validation 0 in 11/18. - Descriptions that contradict the code (Documentation 0 in 8/18): a README claiming
"TLS 1.2+" for a policy that only checks
aws:SecureTransport, a Cloud SQL flag described as always enforced that consumers can override, a GKE endpoint described as restricted when authorized networks are off.
Characteristic patterns
- Scratch files left behind in 17/18 attempts: empty
test.tf,test_*.tf,fix_endpoint.tfand extra.tfvarsfiles beside the module. - Large interfaces: medians of 29, 37, 45, 33, 20 and 25 inputs, the largest in the field on Cloud SQL. The budget is lost in 18/18 attempts, and the judge never gave Interface design a 2.
- The judge rated it below the field. Anti-patterns 0 in 13/18, judge medians of 55.3 on Cloud SQL and 68.4 on S3, App Service and Aurora.
- Old provider majors.
azurerm ~> 3.xin 6/6 Azure attempts andgoogle ~> 5.0in 5/6 GCP attempts. These passB1; the one unbounded>= 5.0.0does not.
Representative excerpt
G001/gemini-3.8-flash-e1/variables.tf lines 43–53
variable "block_public_access" {
description = "Whether to block all public access (ACLs and policies). Application asset buckets are private by default."
type = bool
default = true
}
variable "enforce_tls" {
description = "Whether to enforce TLS/HTTPS only on all requests by denying unencrypted HTTP transport."
type = bool
default = true
}
Both defaults are secure, but each control is a consumer boolean: block_public_access feeds all four public access block settings, so one input makes the bucket public. This fails the mandatory G001 H1, as it does in all three S3 attempts.


