Courseiva
Continuous Improvement for Existing SolutionsmediumDrag & DropObjective-mapped

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.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5

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 ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

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 →

How Courseiva writes practice questions · Editorial policy

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.