Limited-Time Offer: Enjoy 50% Savings! - Ends In 0d 00h 00m 00s Coupon code: 50OFF
Welcome to QA4Exam

Free practice questions with explanations

Amazon DOP-C02 Dumps 2026 with Free Practice Questions and Answers

Practise for the AWS Certified DevOps Engineer - Professional Exam with 16 original questions, each with an answer and explanation.

Topics: SDLC Automation, Configuration Management And IaC, Security And Compliance, Incident And Event Response and 2 more.

Includes single answer, multiple answers, drag and drop, order list and dropdown. A new question is added every 15 days.

DOP-C02 Practice Set Details

Vendor
Amazon
Exam Code
DOP-C02
Questions On This Page
16
Exam Topics Covered
6 of 6
Question Types
5
Newest Question
New Question
Every 15 days
Full Question Set
449
Certification
Amazon Professional
16 questions

Amazon DOP-C02 Exam Questions and Answers by Topic

SDLC Automation

22% of the exam

4 practice questions on this topicWhat this topic covers

Question 1

Added

Single Answer

A company deploys a containerized service to Amazon ECS on Fargate. Its CodePipeline pipeline currently builds an image, pushes a mutable latest tag to Amazon ECR, and deploys that tag to production. A rollback sometimes starts new tasks with a different image because another build has overwritten the tag. The company needs deployments to identify an exact image and to support safe automated rollback, while keeping the existing ECS deployment model. What should the team change?

Correct answer: B

An image digest identifies the exact ECR image contents, so a later tag update cannot change what an earlier task definition references. The ECS deployment circuit breaker can fail a deployment and roll back to the last completed deployment when configured for rollback. Forcing a new deployment with a mutable tag can still resolve to different image content. ECS does not pull container images from S3 in place of a registry, and extra tasks do not make the reference immutable.

Question 2

Added

Multiple Answers

A team uses AWS CodeBuild and CodePipeline to publish a serverless application. Production deployments must be blocked if unit tests fail or if the packaged CloudFormation template contains a prohibited public S3 bucket policy. The team also wants to promote the exact tested build artifact between stages rather than rebuilding it for production. Which two pipeline changes best satisfy these requirements? (Choose two.)

Correct answer: C, D

A failing unit test must return a nonzero build result so CodePipeline stops before deployment. A policy validation step such as cfn-guard can enforce organization-specific rules on the packaged template, and passing the same artifact forward preserves the tested build. Rebuilding in production breaks artifact promotion. A change set helps review proposed changes but does not enforce the stated policy by itself. cfn-lint checks template structure and common issues, not whether a particular public bucket policy violates the organization's rule.

Question 3

Added

Order List

A company deploys a new version of an AWS Lambda function through CodeDeploy. Production traffic must move gradually, CloudWatch alarms must be able to stop an unhealthy deployment, and the previous version must remain available for rollback. The pipeline already produces a versioned deployment artifact. Arrange the deployment setup steps in the order they must be performed.

Drag the steps into the correct order, or use the arrows.

  1. Start the CodeDeploy deployment using the versioned artifact.
  2. Associate the deployment group with CloudWatch alarms and rollback behavior.
  3. Publish the new Lambda function version and its deployment artifact.
  4. Create the CodeDeploy application and deployment group with a gradual traffic-shifting configuration.
Correct answer:
  1. Publish the new Lambda function version and its deployment artifact.
  2. Create the CodeDeploy application and deployment group with a gradual traffic-shifting configuration.
  3. Associate the deployment group with CloudWatch alarms and rollback behavior.
  4. Start the CodeDeploy deployment using the versioned artifact.

The function version and artifact must exist before a deployment can reference them. The CodeDeploy application and deployment group define the Lambda deployment configuration and traffic-shifting strategy; alarms and rollback behavior are then attached to that deployment group before starting deployment. Starting the deployment before configuring alarms risks losing the required automatic stop and rollback behavior. A gradual deployment requires the deployment group strategy rather than an immediate alias update.

Question 4

Added

Single Answer

A company packages a Java application as a versioned artifact in CodeArtifact. Build projects in several AWS accounts need to download packages, but only the central platform account should publish new package versions. The company wants to avoid distributing long-lived credentials and needs cross-account access to be explicit and auditable. Which design is best?

Correct answer: A

CodeArtifact supports cross-account access through domain and repository resource policies combined with IAM permissions. Consumer roles can be granted read access while publication remains restricted to the platform publisher role, preserving central ownership without long-lived credentials. A shared IAM user's keys are difficult to audit and rotate safely. Giving consumer roles publisher access defeats the stated restriction. S3 copies create separate package stores and weaken centralized version and permission management.

Configuration Management and IaC

17% of the exam

3 practice questions on this topicWhat this topic covers

Question 5

Added

Single Answer

A company provisions application accounts in 12 AWS Regions through a central platform account. Teams currently copy CloudFormation templates and make local changes, causing drift and inconsistent security controls. The platform team wants reusable, versioned infrastructure components that application teams can consume without gaining permission to edit the underlying shared definitions. Teams must still be able to supply approved parameters such as VPC CIDR ranges. Which approach best meets these requirements?

Correct answer: D

CloudFormation modules package reusable resource configurations and can be published with versions in the registry, allowing teams to consume approved definitions while supplying parameters. Nested templates that teams can edit preserve the drift problem. StackSets distribute stacks across accounts and Regions but do not make team-edited templates immutable reusable components. A shared S3 bucket protects the source object, not the copies teams deploy or modify.

Question 6

Added

Order List

A company has a management account and a growing set of AWS accounts in an organization. New accounts must receive a standard logging configuration and baseline IAM roles before application teams can access them. The platform team wants account vending to remain automated and centrally governed. Arrange the steps in the order they must be performed.

Drag the steps into the correct order, or use the arrows.

  1. Apply the required governed controls and baseline configuration to the account.
  2. Verify the account's baseline and access readiness before notifying the application team.
  3. Define an AWS Control Tower account factory configuration for the account request.
  4. Provision the account through the account factory.
Correct answer:
  1. Define an AWS Control Tower account factory configuration for the account request.
  2. Provision the account through the account factory.
  3. Apply the required governed controls and baseline configuration to the account.
  4. Verify the account's baseline and access readiness before notifying the application team.

Account Factory provisions accounts within the Control Tower governed environment, after which governed controls and baseline configuration can be applied and validated before workload access is released. Applying controls to an account before it exists is not possible. Notifying teams before verifying the baseline risks exposing an account that lacks required protections. Manual account creation outside the factory bypasses the requested governed vending workflow.

Question 7

Added

Multiple Answers

A company deploys a shared CloudFormation template to hundreds of accounts and Regions with StackSets. Updates are currently started before teams have finished testing, and a failed update can leave the fleet partially changed. The company needs to limit concurrent changes, stop further rollout after failures exceed a threshold, and have CloudFormation roll back stack instances when an operation fails. Which two StackSet operation settings should the team configure? (Choose two.)

Correct answer: D, E

A failure tolerance of zero stops the operation when a stack instance fails, while an appropriately selected failure tolerance percentage allows the team to define the maximum acceptable failure level for a controlled rollout. Setting maximum concurrency to the largest value increases blast radius rather than constraining it. Managed execution improves operation scheduling but is not the rollback setting. Automatic deployment targets new accounts and does not retry failed updates.

Resilient Cloud Solutions

15% of the exam

2 practice questions on this topicWhat this topic covers

Question 8

Added

Single Answer

A customer-facing API uses an Amazon Aurora MySQL cluster in one Region. The business requires recovery from a complete regional outage with a recovery time objective under 10 minutes and a recovery point objective under 1 minute. The application can be configured to use a new database endpoint after recovery. The company wants to avoid maintaining a second application stack in another Region, but can accept a cross-Region database replica. Which design best meets the requirements?

Correct answer: A

Aurora Global Database maintains a secondary cluster in another Region with low-latency replication and supports promotion for regional recovery, aligning with the short RTO and RPO without duplicating the application stack. Multi-AZ replicas address Availability Zone failures, not complete regional outages. Restoring from automated backups or copied snapshots typically takes longer and can lose more recent changes than the stated targets allow.

Question 9

Added

Dropdown

A company runs a stateless web tier on Amazon EC2 instances in an Auto Scaling group. It must absorb a predictable traffic increase every Monday morning, keep capacity across two Availability Zones, and avoid launching instances only after latency has already degraded. Complete the scaling policy statement with the most appropriate metric and policy type.

Choose the correct value for each blank.

Configure a scaling policy using as the target metric, with the Auto Scaling group subnet configuration spanning both Availability Zones.
Correct answer:

Configure a target tracking scaling policy using ALBRequestCountPerTarget as the target metric, with the Auto Scaling group subnet configuration spanning both Availability Zones.

Target tracking can maintain a chosen load-balancer request count per target by adjusting group capacity as demand changes, while the subnets in both Availability Zones provide zonal distribution. Step scaling requires alarm thresholds and adjustment steps rather than maintaining a target metric. Scheduled scaling alone sets capacity at predetermined times and may not respond adequately if actual traffic differs from the forecast. FreeStorageSpace and StatusCheckFailed do not measure web request demand.

Monitoring and Logging

15% of the exam

2 practice questions on this topicWhat this topic covers

Question 10

Added

Single Answer

A company has hundreds of accounts with CloudTrail trails writing to a central S3 bucket. Auditors need to determine whether any account has stopped recording management events or changed its trail configuration. They require a centralized, continuously updated view and an alert when a trail becomes noncompliant. S3 object creation notifications are already used for log ingestion and must not be repurposed as the compliance signal. What should the company implement?

Correct answer: C

AWS Config can evaluate trail settings continuously, aggregate compliance across an organization, and report when a trail no longer meets the required configuration. S3 notifications indicate object writes, not whether trail configuration is compliant, and the stated log ingestion use should remain separate. A metric filter sees delivered events and can be silent for legitimate low-activity accounts. CloudTrail Lake analyzes collected events but does not by itself provide the requested continuous configuration-compliance evaluation.

Question 11

Added

Drag And Drop

A platform team is standardizing monitoring for a mixed fleet. It needs centralized log storage from EC2 instances, organization-wide resource configuration history, and cross-account metric dashboards without copying metric data. Match each requirement to the AWS service that directly provides it.

Drag each item onto its matching target. On a phone: tap an item, then tap a target.

View metrics from multiple accounts in one dashboard without metric replication
Collect and centralize operating system and application logs from EC2 instances
Record resource configuration changes and evaluate compliance across accounts
CloudWatch agent and CloudWatch Logs
AWS Config organization aggregator
CloudWatch cross-account observability
Correct answer:
  • Collect and centralize operating system and application logs from EC2 instances → CloudWatch agent and CloudWatch Logs
  • Record resource configuration changes and evaluate compliance across accounts → AWS Config organization aggregator
  • View metrics from multiple accounts in one dashboard without metric replication → CloudWatch cross-account observability

The CloudWatch agent collects host and application logs and forwards them to CloudWatch Logs. An AWS Config organization aggregator consolidates configuration and compliance data from member accounts. CloudWatch cross-account observability supports shared monitoring views, including dashboards over metrics in linked accounts, without requiring metric copies. CloudTrail focuses on API activity rather than host log collection, and an S3 replication design would copy data rather than provide the requested native cross-account metric view.

Incident and Event Response

14% of the exam

2 practice questions on this topicWhat this topic covers

Question 12

Added

Single Answer

A production service runs on an Auto Scaling group behind an Application Load Balancer. An Amazon EventBridge rule detects an EC2 instance entering the impaired status-check state. The on-call team needs an auditable workflow that gathers instance details, notifies the team, and replaces the unhealthy instance without waiting for a human. The service must continue using the Auto Scaling group's health-management process, and the solution should avoid custom polling code. What is the best approach?

Correct answer: D

Systems Manager Automation runbooks can orchestrate documented remediation steps, including gathering instance information, notifying responders, and marking an Auto Scaling instance unhealthy so the group replaces it. An SNS notification alone does not trigger replacement. Direct termination from Lambda bypasses the desired health-management action and requires custom orchestration. CPU utilization is unrelated to the impaired status check and stop/start actions do not ensure the group follows its replacement workflow.

Question 13

Added

Multiple Answers

A security operations team needs to detect changes to security groups across an AWS organization and automatically remove ingress rules that expose administrative ports to the internet. The team must retain a record of the original configuration, avoid granting a remediation function broad account-wide permissions, and keep the response managed through AWS services. Which two actions best satisfy the requirements? (Choose two.)

Correct answer: B, E

AWS Config records resource configuration history and an organization aggregator provides centralized visibility across accounts. Systems Manager Automation can execute managed remediation with a dedicated, narrowly scoped role; the Config rule can identify the prohibited ingress state and initiate that remediation. CloudTrail records API activity, not a complete current-state inventory by itself. A broad Lambda role creates unnecessary privilege and custom code. The separate rule-and-remediation action described in the remaining choice is not among the selected actions because the managed Automation execution and organization-level configuration inventory are the requested components.

Security and Compliance

17% of the exam

3 practice questions on this topicWhat this topic covers

Question 14

Added

Single Answer

A company has hundreds of AWS accounts in an organization. Security engineers need to ensure that newly created IAM roles cannot grant permissions outside an approved set, even if an account administrator attaches a broad identity policy. Application teams must retain flexibility to grant permissions within that approved set. Which control is the best fit?

Correct answer: D

An SCP establishes the maximum permissions available in member accounts and applies centrally through the organization, so an account administrator cannot grant permissions beyond the boundary even by attaching a broader identity policy. A permissions boundary is useful but must be attached to the relevant principals and can be removed by sufficiently privileged account administrators unless separately controlled. Access Analyzer identifies policy concerns but is not an organization-wide permission ceiling. Detecting and deleting roles is reactive and can disrupt workloads.

Question 15

Added

Drag And Drop

A regulated company is implementing centralized security controls. It needs to detect exposed access keys, identify public access to supported resources, and encrypt new EBS volumes by default in each Region. Match each requirement to the AWS capability that directly addresses it.

Drag each item onto its matching target. On a phone: tap an item, then tap a target.

Detect exposed AWS access keys in source repositories
Identify unintended public or cross-account resource access
Make newly created EBS volumes encrypted by default in a Region
EBS encryption by default
Amazon CodeGuru Security
IAM Access Analyzer
Correct answer:
  • Detect exposed AWS access keys in source repositories → Amazon CodeGuru Security
  • Identify unintended public or cross-account resource access → IAM Access Analyzer
  • Make newly created EBS volumes encrypted by default in a Region → EBS encryption by default

Amazon CodeGuru Security can scan source code for security issues including exposed secrets. IAM Access Analyzer analyzes resource-based access policies to identify public and cross-account access paths. EBS encryption by default applies the regional default to newly created EBS volumes and snapshots. GuardDuty detects suspicious activity and threats rather than scanning source repositories. AWS KMS provides key management, but creating a key alone does not make EBS volumes encrypted by default.

Question 16

Added

Multiple Answers

A company must preserve a tamper-resistant record of AWS API activity for auditors. The organization has multiple accounts and Regions, and its security team needs to validate that log files have not been altered after delivery. The company also wants alerts for a small set of high-risk API calls without building a custom parser for every log file. Which two actions best meet these requirements? (Choose two.)

Correct answer: A, E

An organization trail centralizes API activity, and CloudTrail log file integrity validation uses digest files to help determine whether delivered log files were changed or deleted. EventBridge can match selected CloudTrail API events and route them to a notification or response workflow without a custom log parser. CloudWatch retention alone does not provide the required tamper-evidence guarantee for S3 audit files. Athena is useful for analysis but is not a continuous integrity validator or a notification mechanism for every event. S3 server access logs record bucket requests, not CloudTrail log-file integrity.

More Amazon Practice Questions

Get the Full Amazon DOP-C02 Dumps as PDF and Practice Test

16 questions are free on this page and the full set has 449. It comes as a PDF and an online practice test, with 90 days of free updates.