Test yourself
AWS DevOps Engineer Professional
Final exam · 60 questions · answers explained as you pick
CI/CD on AWS
12 questions
01AWS CodePipeline is…
Correct — It chains source, build, test, and deploy stages into a pipeline.
Incorrect — That is Amazon ECR.
Incorrect — That is CloudWatch.
Incorrect — Unrelated.
02AWS CodeBuild provides…
Incorrect — That is CodeDeploy.
Correct — It compiles, tests, and produces artifacts without managing build servers.
Incorrect — That is CodeCommit.
Incorrect — That is Route 53.
03A CodeBuild buildspec.yml defines…
Correct — It is the recipe CodeBuild executes.
Incorrect — That is a policy document.
Incorrect — That is a template.
Incorrect — Unrelated.
04AWS CodeDeploy can deploy to…
Incorrect — It also targets on-prem, ECS, and Lambda.
Correct — With in-place or blue/green strategies depending on the target.
Incorrect — S3 is an artifact store, not a CodeDeploy compute target.
Incorrect — Unrelated.
05A blue/green deployment with CodeDeploy…
Correct — The old (blue) stays until you cut over, enabling fast rollback.
Incorrect — That is the in-place strategy.
Incorrect — Not how blue/green works.
Incorrect — Blue/green is designed to avoid downtime.
06CodeDeploy can automatically roll back a deployment when…
Incorrect — Build speed is unrelated to rollback.
Correct — Alarm-triggered auto-rollback protects production.
Incorrect — Rollback can be automatic on alarms, not just manual.
Incorrect — Unrelated.
07An appspec file in CodeDeploy specifies…
Correct — It maps files and runs validation scripts at each hook.
Incorrect — That is networking config.
Incorrect — That is a policy.
Incorrect — Unrelated.
08To store build artifacts between pipeline stages, CodePipeline uses…
Incorrect — Not the artifact store.
Correct — Stages pass artifacts via S3.
Incorrect — Block storage, not the pipeline artifact store.
Incorrect — Artifacts are stored in S3, not on a runner.
09A manual approval action in CodePipeline is used to…
Correct — Insert a controlled checkpoint into automated flow.
Incorrect — It pauses for approval, not speed.
Incorrect — Unrelated.
Incorrect — Unrelated.
10Giving CI/CD least-privilege access to AWS is best done with…
Incorrect — Static keys leak; avoid them.
Correct — The pipeline assumes a role with only the permissions it needs.
Incorrect — Never use root for automation.
Incorrect — Maximal blast radius.
11CodeArtifact is used for…
Correct — A controlled, private package source.
Incorrect — That is CodeBuild.
Incorrect — That is CodeDeploy.
Incorrect — That is CloudWatch.
12Integrating security scanning into the pipeline means…
Incorrect — That is too late; shift left.
Correct — Catch vulnerabilities before deploy.
Incorrect — That removes the control.
Incorrect — Not continuous or automated.
12 questions · explanations appear as you answer
Infrastructure as Code
12 questions
01AWS CloudFormation lets you…
Correct — Repeatable, version-controlled infrastructure.
Incorrect — That is CodeBuild.
Incorrect — That is CloudWatch.
Incorrect — That is S3.
02A CloudFormation change set is used to…
Incorrect — That is stack deletion, not a change set.
Correct — See what will be added/modified/removed to avoid surprises.
Incorrect — Unrelated.
Incorrect — Unrelated.
03CloudFormation StackSets enable…
Correct — Org-wide, multi-Region provisioning.
Incorrect — That is a regular stack; StackSets span accounts/Regions.
Incorrect — Unrelated.
Incorrect — Unrelated.
04CloudFormation drift detection reports…
Incorrect — Not what drift detection does.
Correct — Someone changed a resource outside CloudFormation.
Incorrect — Unrelated.
Incorrect — Unrelated.
05The AWS CDK (Cloud Development Kit) lets you…
Correct — Use loops, conditions, and abstractions in TypeScript/Python/etc.
Incorrect — It provisions infra, not identity policy.
Incorrect — Unrelated.
Incorrect — That is CloudWatch.
06AWS SAM (Serverless Application Model) is…
Incorrect — Unrelated.
Correct — Concise syntax for serverless resources.
Incorrect — That is CloudWatch.
Incorrect — That is CodeCommit.
07Nested stacks in CloudFormation help by…
Correct — Modularity and reuse across templates.
Incorrect — Unrelated.
Incorrect — Unrelated.
Incorrect — Unrelated.
08A CloudFormation stack policy is used to…
Incorrect — That is an IAM policy.
Correct — Prevent an update from replacing your production database.
Incorrect — Unrelated.
Incorrect — Unrelated.
09Managing IaC as code in git gives you…
Correct — Infra changes go through the same review as application code.
Incorrect — It enables safe, automated deployments.
Incorrect — You still add scanning/policy.
Incorrect — IaC still needs validation/testing.
10To catch misconfigurations in IaC before deploy, you…
Incorrect — Too late.
Correct — Fail the build on non-compliant infrastructure.
Incorrect — Not a control.
Incorrect — That removes safety.
11CloudFormation handles a failed stack update by…
Correct — Automatic rollback keeps the stack consistent.
Incorrect — Default behavior rolls back on failure.
Incorrect — Never.
Incorrect — It rolls back or reports failure.
12CDK "constructs" are…
Incorrect — Unrelated.
Correct — Higher-level constructs encode best practices.
Incorrect — Unrelated.
Incorrect — Constructs represent any resource, composably.
12 questions · explanations appear as you answer
Configuration & automation
12 questions
01AWS Systems Manager (SSM) provides…
Correct — A suite for managing and automating fleets.
Incorrect — That is ECR.
Incorrect — That is CloudFront.
Incorrect — Unrelated.
02SSM Session Manager lets you…
Incorrect — The opposite — it avoids that.
Correct — Auditable, keyless access via the SSM agent and IAM.
Incorrect — That is Parameter Store/Secrets Manager.
Incorrect — That is CodeDeploy.
03SSM Patch Manager is used to…
Correct — Consistent, compliant patching without manual work.
Incorrect — Unrelated.
Incorrect — Unrelated.
Incorrect — That is KMS/EBS encryption.
04SSM Parameter Store is commonly used to…
Incorrect — That is CodeBuild.
Correct — Config/secrets management without hardcoding.
Incorrect — Unrelated.
Incorrect — Unrelated.
05SSM Automation runbooks let you…
Correct — Repeatable, auditable automation of ops procedures.
Incorrect — They execute real actions, not just notify.
Incorrect — Unrelated.
Incorrect — Unrelated.
06AWS Config is used to…
Incorrect — That is CodeDeploy.
Correct — Config history + rules = drift and compliance detection.
Incorrect — Unrelated.
Incorrect — That is ElastiCache.
07An AWS Config rule with automatic remediation…
Correct — e.g. re-enable encryption or a public-access block automatically.
Incorrect — Remediation acts, not just logs.
Incorrect — Never.
Incorrect — Unrelated.
08Configuration management (State Manager / OpsWorks) ensures…
Incorrect — The opposite — it enforces desired state.
Correct — Reduce configuration drift across the fleet.
Incorrect — Unrelated.
Incorrect — Unrelated.
09The advantage of automating operations (patching, remediation) is…
Correct — Automation is repeatable and leaves a record.
Incorrect — You still monitor.
Incorrect — Valuable at any scale.
Incorrect — The opposite.
10Storing infrastructure config and secrets outside code is important because…
Incorrect — Not the reason.
Correct — Fetch at runtime via IAM, rotate centrally.
Incorrect — Not a hard requirement, but a best practice.
Incorrect — Not directly.
11Tagging resources consistently supports operations by…
Correct — Tag-based targeting for patching, cost, and IAM conditions.
Incorrect — Unrelated.
Incorrect — Unrelated.
Incorrect — Tags are foundational for ops at scale.
12A conformance pack in AWS Config is…
Incorrect — Unrelated.
Correct — Apply a compliance framework’s checks together.
Incorrect — Unrelated.
Incorrect — Unrelated.
12 questions · explanations appear as you answer
Monitoring & observability
12 questions
01Amazon CloudWatch provides…
Correct — The core monitoring service for AWS resources and apps.
Incorrect — That is X-Ray; CloudWatch is broader.
Incorrect — Unrelated.
Incorrect — Unrelated.
02A CloudWatch alarm can…
Incorrect — It can trigger actions.
Correct — Alarms drive automated response.
Incorrect — That is CodeDeploy.
Incorrect — Unrelated.
03CloudWatch Logs Insights is used to…
Correct — A query language over your ingested logs.
Incorrect — That is S3.
Incorrect — That is X-Ray.
Incorrect — Unrelated.
04AWS X-Ray provides…
Incorrect — That is CloudWatch Logs.
Correct — Find bottlenecks and errors across service calls.
Incorrect — That is CodeBuild.
Incorrect — Unrelated.
05The CloudWatch agent is needed to…
Correct — Default EC2 metrics lack memory/disk; the agent fills the gap.
Incorrect — Unrelated.
Incorrect — Unrelated.
Incorrect — Unrelated.
06EventBridge (CloudWatch Events) enables…
Incorrect — It also routes real-time events.
Correct — e.g. on a GuardDuty finding, invoke a remediation Lambda.
Incorrect — Unrelated.
Incorrect — Unrelated.
07The three pillars of observability are typically…
Correct — CloudWatch metrics/logs plus X-Ray traces.
Incorrect — Those are metrics, not the three pillars.
Incorrect — Those are CI/CD stages.
Incorrect — Unrelated services.
08A well-instrumented deployment emits custom metrics so you can…
Incorrect — The opposite.
Correct — Detect problems users feel, not just CPU.
Incorrect — You still log.
Incorrect — Dashboards visualize the metrics.
09CloudWatch Synthetics canaries…
Correct — Catch an outage before users report it.
Incorrect — Unrelated.
Incorrect — Unrelated.
Incorrect — Unrelated.
10Centralizing logs and metrics across accounts helps by…
Incorrect — The opposite — it eases correlation.
Correct — Cross-account observability and a tamper-resistant trail.
Incorrect — It improves it.
Incorrect — It is a key operational practice.
11Alarming on the right signals matters because…
Correct — Alert on what indicates real problems.
Incorrect — Volume without signal degrades response.
Incorrect — Unrelated.
Incorrect — They complement it.
12Connecting monitoring to automated response means…
Incorrect — Automation reduces that burden.
Correct — Self-healing systems act without waiting for a person.
Incorrect — That creates blind spots.
Incorrect — The opposite of the goal.
12 questions · explanations appear as you answer
Resilience & incident response
12 questions
01A canary deployment shifts…
Correct — Limit blast radius; watch metrics before full rollout.
Incorrect — That is an all-at-once deployment.
Incorrect — Canary does shift traffic, gradually.
Incorrect — Unrelated.
02A rolling deployment updates…
Incorrect — That is all-at-once, higher risk.
Correct — Gradual replacement maintains availability.
Incorrect — Unrelated.
Incorrect — It does update instances, in batches.
03Automatic rollback on a failed deployment is triggered by…
Correct — Bad deploy trips an alarm → CodeDeploy rolls back.
Incorrect — Unrelated to rollback.
Incorrect — Rollback can be automatic.
Incorrect — Unrelated.
04Self-healing infrastructure means…
Incorrect — The opposite.
Correct — Systems recover automatically from common failures.
Incorrect — It actively recovers from them.
Incorrect — Health checks enable self-healing.
05AWS Backup provides…
Correct — One place to define and enforce backup policy.
Incorrect — Unrelated.
Incorrect — Unrelated.
Incorrect — Unrelated.
06For multi-Region disaster recovery automation, you would…
Incorrect — Too slow and error-prone.
Correct — Automate the failover to meet RTO/RPO.
Incorrect — Not a strategy.
Incorrect — The opposite.
07An incident-response runbook in AWS is best when it is…
Correct — Automated, consistent response beats improvisation under pressure.
Incorrect — Unreliable and not repeatable.
Incorrect — Not responsive.
Incorrect — Untested runbooks fail when needed.
08EventBridge → Lambda/SSM is the pattern for…
Incorrect — Unrelated.
Correct — e.g. quarantine a resource on a GuardDuty finding.
Incorrect — Unrelated.
Incorrect — Unrelated.
09A post-incident review (blameless post-mortem) should produce…
Correct — Turn the incident into durable improvements.
Incorrect — Blameless culture focuses on systems, not people.
Incorrect — The whole point is actionable follow-ups.
Incorrect — You preserve evidence and learn from it.
10Designing deployments to minimize blast radius means…
Incorrect — That maximizes blast radius.
Correct — Limit exposure and recover fast if something breaks.
Incorrect — That increases risk.
Incorrect — Rollback is what limits impact.
11Chaos engineering (e.g. AWS Fault Injection Service) is used to…
Correct — Find weaknesses proactively, not during an outage.
Incorrect — It is controlled, hypothesis-driven testing.
Incorrect — Unrelated.
Incorrect — Unrelated.
12The DevOps goal tying it all together is…
Incorrect — The opposite of DevOps.
Correct — Automation + observability + resilience across the lifecycle.
Incorrect — Observability is central.
Incorrect — DevOps favors frequent, small, safe changes.
12 questions · explanations appear as you answer