A tester runs an IaC static analyzer on a Terraform repository before anything is provisioned. Which four findings can the scan detect from the template files alone? (Choose four.)
Choose 4 answers
Show the answer
Correct answersA. Security group allowing SSH from 0.0.0.0/0B. IAM policy granting all actions on all resourcesC. Object storage bucket with a public-read ACLE. Database instance with encryption at rest disabled
AWhy this is right: The ingress rule is declared in the template, so the analyzer can flag it.
BWhy this is right: The wildcard action and resource appear in the policy code and are flagged.
CWhy this is right: The public ACL is a declared setting, so a static check catches it.
DWhy not this: Patch state exists only on the running instance, not in the template text.
EWhy this is right: The encryption flag is set in the template, so the analyzer sees it.
FWhy not this: Running processes exist only on a live host, so a scan of template files cannot see them.
IaC static analysis parses the declared configuration, so open ingress rules, public ACLs, disabled encryption and wildcard IAM permissions are visible in the files. Patch levels exist only on a running host, so they need a host-based or authenticated scan. Malware in memory likewise exists only on a running host.