Professional

AWS Certified DevOps Engineer - Professional (DOP-C02) Practice Exam

The DOP-C02 exam validates advanced expertise in provisioning, operating, and managing distributed AWS applications using CI/CD pipelines, IaC, and automation.

300+
Practice Questions
3
Free Pages
4.9★
Rating
2026
Updated
Start Free Practice → Get Full Access

DOP-C02 Exam Overview

Exam CodeDOP-C02
Full NameAWS Certified DevOps Engineer - Professional
LevelProfessional
Questions on Exam75
Duration180 minutes
Passing Score750 / 1000
Exam Cost$300 USD
Recommended Study Time80–120 hours
AWSReady Practice Questions300+

Exam Domains

Sample DOP-C02 Practice Questions

Try these free practice questions. Full answers and explanations are included.

Question 1

A company has a mobile application that makes HTTP API calls to an Application Load Balancer (ALB). The ALB routes requests to an AWS Lambda function. Many different versions of the application are in use at any given time, including versions that are in testing by a subset of users. The version of the application is defined in the user-agent header that is sent with all requests to the API. After a series of recent changes to the API, the company has observed issues with the application. The company needs to gather a metric for each API operation by response code for each version of the application that is in use. A DevOps engineer has modified the Lambda function to extract the API operation name, version information from the user-agent header and response code. Which additional set of actions should the DevOps engineer take to gather the required metrics?

A. Modify the Lambda function to write the API operation name, response code, and version number as a log line to an Amazon CloudWatch Logs log group. Configure a CloudWatch Logs metric filter that increments a metric for each API operation name. Specify response code and application version as dimensions for the metric.
B. Modify the Lambda function to write the API operation name, response code, and version number as a log line to an Amazon CloudWatch Logs log group. Configure a CloudWatch Logs Insights query to populate CloudWatch metrics from the log lines. Specify response code and application version as dimensions for the metric.
C. Configure the ALB access logs to write to an Amazon CloudWatch Logs log group. Modify the Lambda function to respond to the ALB with the API operation name, response code, and version number as response metadata. Configure a CloudWatch Logs metric filter that increments a metric for each API operation name. Specify response code and application version as dimensions for the metric.
D. Configure AWS X-Ray integration on the Lambda function. Modify the Lambda function to create an X-Ray subsegment with the API operation name, response code, and version number. Configure X-Ray insights to extract an aggregated metric for each API operation name and to publish the metric to Amazon CloudWatch. Specify response code and application version as dimensions for the metric.
Show Answer & Explanation

Correct Answer: A. Modify the Lambda function to write the API operation name, response code, and version number as a log line to an Amazon CloudWatch Logs log group. Configure a CloudWatch Logs metric filter that increments a metric for each API operation name. Specify response code and application version as dimensions for the metric.

Why A is correct: CloudWatch Logs metric filters are the appropriate solution for extracting custom metrics from log data. When the Lambda function writes structured log lines containing the API operation name, response code, and version number, a metric filter can parse these logs and increment CloudWatch metrics. The dimensions (response code and application version) allow for granular tracking of each combination, which is exactly what's needed to monitor different app versions and their response codes per operation.Why other options are wrong: B: CloudWatch Logs Insights is a query tool for ad-hoc analysis, not for automatically populating metrics. It cannot create real-time metrics with dimensions. C: ALB access logs don't capture custom application data like API operation names or user-agent header details that the Lambda function extracts. Response metadata from Lambda isn't logged in ALB access logs. D: X-Ray is designed for distributed tracing and request analysis, not for creating custom CloudWatch metrics with specific dimensions. While X-Ray can track subsegments, it doesn't natively publish custom metrics to CloudWatch in the way described.

Question 2

A company provides an application to customers. The application has an Amazon API Gateway REST API that invokes an AWS Lambda function. On initialization, the Lambda function loads a large amount of data from an Amazon DynamoDB table. The data load process results in long cold-start times of 8-10 seconds. The DynamoDB table has DynamoDB Accelerator (DAX) configured. Customers report that the application intermittently takes a long time to respond to requests. The application receives thousands of requests throughout the day. In the middle of the day, the application experiences 10 times more requests than at any other time of the day. Near the end of the day, the application's request volume decreases to 10% of its normal total. A DevOps engineer needs to reduce the latency of the Lambda function at all times of the day. Which solution will meet these requirements?

A. Configure provisioned concurrency on the Lambda function with a concurrency value of 1. Delete the DAX cluster for the DynamoDB table.
B. Configure reserved concurrency on the Lambda function with a concurrency value of 0.
C. Configure provisioned concurrency on the Lambda function. Configure AWS Application Auto Scaling on the Lambda function with provisioned concurrency values set to a minimum of 1 and a maximum of 100.
D. Configure reserved concurrency on the Lambda function. Configure AWS Application Auto Scaling on the API Gateway API with a reserved concurrency maximum value of 100.
Show Answer & Explanation

Correct Answer: C. Configure provisioned concurrency on the Lambda function. Configure AWS Application Auto Scaling on the Lambda function with provisioned concurrency values set to a minimum of 1 and a maximum of 100.

Why C is correct: Provisioned concurrency keeps Lambda functions initialized and ready to respond immediately, eliminating cold starts. AWS Application Auto Scaling can dynamically adjust the provisioned concurrency based on demand, handling the 10x traffic spike during midday while scaling down to minimum capacity (1) during low-traffic periods. This addresses both the cold-start latency issue and the variable traffic patterns efficiently. Why other options are wrong: A: A concurrency value of 1 is insufficient for thousands of requests, especially during the 10x spike. Deleting DAX is counterproductive as it helps with DynamoDB read performance. B: Reserved concurrency of 0 would prevent the function from executing at all—it caps maximum concurrent executions but doesn't eliminate cold starts. D: Reserved concurrency doesn't address cold starts; it only limits maximum concurrent executions. Auto Scaling on API Gateway is not the solution since the bottleneck is the Lambda cold-start time, not API Gateway capacity.

See All Free Questions →

Why Practice with AWSReady?

📝
Exam-Realistic Questions
Questions designed to match the difficulty and style of the official DOP-C02 exam.
💡
Detailed Explanations
Every answer includes a clear explanation referencing AWS documentation.
Free to Start
Sample questions available without an account. Premium unlocks all 300+ questions.
🔄
Updated for 2026
Question bank updated regularly to reflect the latest DOP-C02 exam guide.

Frequently Asked Questions — DOP-C02 Exam

How many questions are on the AWS DOP-C02 exam?
The DOP-C02 exam contains 75 questions to be completed in 180 minutes.
What is the passing score for DOP-C02?
The AWS Certified DevOps Engineer Professional (DOP-C02) passing score is 750 out of 1000.
Is DOP-C02 hard?
DOP-C02 is one of the more challenging AWS exams. It requires deep knowledge of CI/CD, IaC, and operational automation across many AWS services.
Do I need DVA-C02 or SOA-C03 before DOP-C02?
AWS no longer requires Associate certifications as prerequisites, but strong knowledge of both developer and operations topics is essential for DOP-C02.
How long should I study for DOP-C02?
Plan on 8–16 weeks studying 1–2 hours per day. Focus on CodePipeline, CodeBuild, CodeDeploy, CloudFormation, Elastic Beanstalk, OpsWorks, CloudWatch, and AWS Config.
What topics does DOP-C02 cover?
DOP-C02 covers CodePipeline, CodeBuild, CodeDeploy, CloudFormation, Systems Manager, CloudWatch, AWS Config, EventBridge, and advanced security and compliance automation.
Are AWSReady DOP-C02 questions representative of the real exam?
Yes. AWSReady DOP-C02 questions focus on CI/CD pipeline design, IaC automation, monitoring strategies, and incident response scenarios.

Related AWS Certifications

Ready to Pass DOP-C02?

Access all 300+ practice questions with interactive quiz mode, progress tracking, and detailed explanations.

Start Interactive Quiz →