Home › Certifications › AWS Certified Developer DVA-C02 › Deployment
28 multiple-choice questions and 15 flashcards on Deployment, about 19% of the AWS Certified Developer DVA-C02 bank. Every one carries a written rationale.
Deployment is one of 4 chapters in CoStudy's AWS Certified Developer — Associate (DVA-C02) bank, and it holds 28 of the bank's 150 multiple-choice questions — roughly 19% of the total. That proportion is not arbitrary: chapters follow the certifying body's published exam outline, and the number of questions in each is set by that domain's published weight, so the share of your practice time this chapter takes matches the share of the real exam it accounts for.
Studying by chapter is worth doing once you have a diagnostic score. A single overall percentage tells you whether you are close; it does not tell you which domain is dragging. Working a weak chapter in isolation, and re-testing it in isolation, is the fastest way to move a score that has stalled — and it is why the mock exams in CoStudy report by domain rather than as one number.
7 questions drawn from this chapter, with the full rationale shown — the controlling principle behind the right answer, and why each wrong option tempts and fails.
Which CloudFormation reference points to a value EXPORTED from another stack?
Answer: A — ImportValue for cross-stack export
C) Ref returns a resource's default value in the same stack. B) GetAtt fetches an attribute in the same stack. A) Correct — ImportValue reads a cross-stack Output export. D) FindInMap looks up a mapping table.
Which SAM CLI command creates a live dev loop that hot-updates cloud resources on save?
Answer: A — sam sync --watch hot-updates
C) sam init only scaffolds. B) sam build compiles locally without deploy. A) Correct — sam sync --watch continuously updates code and infra in the deployed stack. D) sam deploy is one-shot.
Which CodeBuild construct defines phases, artifacts, and env vars for a build?
Answer: A — buildspec.yml drives CodeBuild
B) appspec is a CodeDeploy artifact. A) Correct — buildspec.yml governs CodeBuild install, pre_build, build, and post_build phases. C) template.yaml is SAM/CFN. D) samconfig.toml stores sam CLI defaults.
In a blue/green deployment, how is production traffic moved from old to new environment?
Answer: B — Weighted routing shift from blue to green
A) Rolling upgrades reuse the same instances and lose easy rollback. B) Correct — traffic is shifted via ALB target-group weights or Route 53 records, keeping blue for rollback. C) Manual patching defeats automation. D) TTL waiting is uncontrolled.
Which CloudFormation attribute retains a resource when the stack is DELETED?
Answer: C — DeletionPolicy: Retain the resource
A) UpdateReplacePolicy governs replacements during updates, not deletion. C) Correct — DeletionPolicy: Retain preserves the resource after stack delete. B) DependsOn only orders creation. D) Metadata is informational.
A CodeDeploy Lambda deployment with Canary10Percent5Minutes preset does what?
Answer: B — Shifts 10% traffic for 5 min then 100%
B) Correct — 10% goes to the new version for 5 minutes; if alarms stay clean, 100% shifts next. A) Reverses the percentages. C) Would be All-at-once with delay. D) That describes a linear preset.
Which CodePipeline stage does CodeBuild typically execute in?
Answer: B — Build stage runs the buildspec
A) Source pulls artifacts from Git or S3. B) Correct — CodeBuild compiles, tests, and packages within the Build stage. C) Deploy pushes artifacts. D) Approve is a manual gate.
4 cards from the 15 in this chapter.
AWS SAM?
Serverless Application Model. Extension of CloudFormation for serverless apps.
CloudFormation?
Infrastructure as code. Define resources in YAML/JSON templates. Deploys as stack.
Elastic Beanstalk?
PaaS for apps. Handles infrastructure (EC2, ELB, autoscale). Just upload code.
CloudFormation nested stacks?
Stack within a stack. Reusable templates.
These are a sample. The full Deployment chapter runs 43 items with per-chapter progress tracking, on the web and in the iOS app.
Open AWS Certified Developer DVA-C02 in CoStudy →