Drag steps to the numbered slots on the right, or tap a step then tap a slot.
SAP-C02 Continuous Improvement for Existing Solutions Practice Question
Drag and drop the steps to deploy a serverless application using AWS SAM in the correct order.
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
Write the AWS SAM template, then build, then package, then deploy, then test.
The correct order for deploying a serverless application with AWS SAM is to first write the SAM template (defining resources and configuration), then build the application (compiling code and dependencies), then package the built artifacts (uploading to S3), then deploy the stack (using CloudFormation), and finally test the deployed application to ensure it works as expected. Common mistakes include swapping build and package, writing the template after building, or deploying before packaging, which lead to errors or incomplete deployments.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Write the AWS SAM template, then build, then package, then deploy, then test.
Why this is correct
This is the correct order because the template must define the resources first, then the application is built, packaged for deployment, deployed to AWS, and finally tested to verify functionality.
- ✗
Write the AWS SAM template, then package, then build, then deploy, then test.
Why it's wrong here
This is incorrect because packaging should occur after building; the build step compiles and prepares the code, which is necessary before packaging the artifacts.
- ✗
Build, then write the AWS SAM template, then package, then deploy, then test.
Why it's wrong here
This is incorrect because the template must be written first to define the application's resources; building before having a template is impossible.
- ✗
Write the AWS SAM template, then build, then deploy, then package, then test.
Why it's wrong here
This is incorrect because packaging must happen before deployment; deploying without packaging would miss uploading the required artifacts to S3.
Quick reference
AWS S3 Storage Class Comparison
| Storage Class | Min Duration | Retrieval | Use Case |
|---|---|---|---|
| S3 Standard | None | Immediate | Frequently accessed data |
| S3 Standard-IA | 30 days | Immediate | Infrequent access, rapid retrieval |
| S3 One Zone-IA | 30 days | Immediate | Non-critical infrequent data |
| S3 Intelligent-Tiering | None | Immediate–hours | Unknown or changing access patterns |
| S3 Glacier Instant | 90 days | Milliseconds | Archive with instant retrieval |
| S3 Glacier Flexible | 90 days | Minutes–hours | Archive, flexible retrieval |
| S3 Glacier Deep Archive | 180 days | Hours | Long-term compliance archive |
Go deeper
Related to this question
About these practice questions
Courseiva writes every SAP-C02 question from scratch — 1,660 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
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.