AWS Certified Cloud Practitioner (CLF-C02) — Question 543
Which AWS service supports a company's ability to treat infrastructure as code?
Answer options
- A. AWS CodeDeploy
- B. AWS Elastic Beanstalk
- C. Amazon API Gateway
- D. AWS CloudFormation
Correct answer: D
Explanation
AWS CloudFormation is the primary service designed for Infrastructure as Code (IaC), allowing users to define and provision AWS resources using declarative templates. While AWS CodeDeploy automates software deployments and AWS Elastic Beanstalk manages application environments, they do not serve as general IaC engines. Amazon API Gateway is used for creating and securing APIs, not for managing overall infrastructure via code.