SAP-C02 Practice Question: Accelerate Workload Migration and Modernization
A company is migrating a multi-tier web application to AWS and wants to use Infrastructure as Code (IaC) to automate provisioning. Which AWS services can the company use to define and manage infrastructure declaratively? (Choose TWO.)
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
AWS CloudFormation
AWS CloudFormation and AWS CDK are correct because both allow declarative infrastructure definition. AWS Elastic Beanstalk is a PaaS service, not dedicated Infrastructure as Code. AWS OpsWorks is configuration management. AWS CodeDeploy is for deployment automation.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
AWS Elastic Beanstalk
Why it's wrong here
Elastic Beanstalk is a PaaS service, not IaC.
- ✓
AWS CloudFormation
Why this is correct
CloudFormation allows declarative infrastructure as code.
- ✗
AWS OpsWorks
Why it's wrong here
OpsWorks is configuration management, not declarative IaC.
- ✓
AWS Cloud Development Kit (CDK)
Why this is correct
CDK allows defining infrastructure using programming languages.
- ✗
AWS CodeDeploy
Why it's wrong here
CodeDeploy is for application deployment, not infrastructure provisioning.
Go deeper
Related to this question
About these practice questions
This SAP-C02 question is part of Courseiva's 1,660-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This SAP-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SAP-C02 exam.