Question #931
Which AWS service enables developers to define and deploy cloud infrastructure using popular programming languages instead of configuration files?
AWS CloudFormation
AWS CodeDeploy
AWS Cloud Development Kit (AWS CDK)
AWS OpsWorks
Explanation
The correct answer is C. AWS Cloud Development Kit (AWS CDK). AWS CDK enables developers to define cloud infrastructure as code using familiar programming languages (e.g., TypeScript, Python, Java, C#), which are then synthesized into AWS CloudFormation templates for deployment. This approach combines the flexibility of programming languages with the power of infrastructure-as-code (IaC).
Why other options are incorrect:
- A. AWS CloudFormation: Uses declarative configuration files (JSON/YAML), not programming languages.
- B. AWS CodeDeploy: Focuses on deploying application code to instances, not defining infrastructure.
- D. AWS OpsWorks: Uses Chef/Puppet for configuration management, not programming languages for IaC.
Key Points:
- AWS CDK bridges programming languages with IaC.
- CloudFormation is template-based, while CDK is code-based.
- CDK abstracts low-level CloudFormation details, enabling reusable constructs.
Answer
The correct answer is: C