Free AWS Certified DevOps Engineer - Professional Practice Test
DOP-C02
Test your knowledge with 20 free practice questions for the DOP-C02 exam. Get instant feedback and see if you are ready for the real exam.
Test Overview
No signup required
Start practicing immediately
Free Questions
Sample Practice Questions
Try these AWS Certified DevOps Engineer - Professional sample questions — no signup required
A company wants to automate application deployments across development, staging, and production AWS accounts. The security team requires a manual approval step only before production deployments, and the engineering team wants artifact versions to remain consistent across all environments. Which solution best meets these requirements?
A DevOps team uses AWS CodeCommit, AWS CodeBuild, and AWS CodePipeline. They want every pull request merge to the main branch to trigger unit tests, security scans, and container image creation automatically. If any validation fails, the deployment must stop. What is the MOST effective approach?
A company wants to reduce deployment risk for a microservice running on Amazon ECS with AWS Fargate. The team needs to shift production traffic gradually to a new task set and automatically roll back if Amazon CloudWatch alarms are triggered. Which deployment approach should the team use?
A company maintains infrastructure and application code in separate repositories. The infrastructure pipeline provisions environments by using AWS CloudFormation, and the application pipeline deploys to those environments. The company wants to prevent application deployments if the target infrastructure stack drifted from the approved template. Which solution best meets this requirement?
A team uses AWS CloudFormation to manage infrastructure. They need to update a stack that contains an Amazon RDS DB instance and several Amazon EC2 instances. The team wants to preview whether any resources will be replaced before applying changes. Which action should they take?
A company uses AWS Systems Manager State Manager to enforce baseline configurations on Amazon EC2 instances across multiple accounts and Regions. Some instances are missing required packages because new accounts are frequently added to the organization. The company wants a centralized way to apply the same configuration consistently at scale. What should the DevOps team do?
A DevOps team manages a large CloudFormation stack and wants to separate network, shared services, and application components into independently deployable units while still allowing cross-stack references. They also want to minimize accidental updates to stable foundational resources. Which approach is BEST?
An application runs on Amazon EC2 instances in an Auto Scaling group behind an Application Load Balancer. The application stores session state on the local instance file system. The company needs the application to remain available during instance replacement events and scaling activities. Which change should the DevOps team make FIRST?
A company runs a critical application on AWS and must meet a strict recovery time objective (RTO) and recovery point objective (RPO) across Regions. The application uses Amazon RDS for PostgreSQL and Amazon S3 for object storage. Which architecture provides the HIGHEST resilience with the LOWEST failover time?
A team deploys infrastructure changes frequently by using CloudFormation. They are concerned that an unsuccessful update to a production stack could leave resources in an inconsistent state. The team wants updates either to succeed completely or to preserve the last known good state. Which feature should they use?
A company wants a unified view of application logs, infrastructure metrics, and distributed traces for services running on Amazon ECS, AWS Lambda, and Amazon EC2. The team also wants to correlate this telemetry to troubleshoot latency issues quickly. Which AWS service provides the MOST integrated solution?
A DevOps team needs to create an alarm when the error rate for an API exceeds 5% for 10 minutes. The API publishes two CloudWatch metrics: RequestCount and ErrorCount. The team wants to avoid changing application code. What should they do?
A security team wants to retain AWS CloudTrail logs in a centralized logging account. They must prevent users, including administrators in member accounts, from modifying or deleting delivered log files. Which solution BEST meets these requirements?
A production application intermittently fails because a downstream dependency times out. The company wants to reduce mean time to resolution by automatically running a predefined diagnostics workflow whenever a specific CloudWatch alarm enters the ALARM state. Which solution should the DevOps team implement?
An EC2-based application becomes unresponsive when disk usage reaches 100%. The operations team wants an automated response that isolates the affected instance from customer traffic, captures investigation data, and then allows controlled remediation. Which approach is MOST appropriate?
A company wants to standardize incident response across multiple AWS accounts. Security findings from Amazon GuardDuty, AWS Security Hub, and custom applications must trigger the same enrichment and ticketing workflow. The workflow should be event-driven and loosely coupled. Which architecture is BEST?
A development team needs temporary access to deploy an application to production in a separate AWS account. The security team wants to avoid long-term access keys and ensure deployments can occur only through an approved IAM role with least privilege. Which solution should be used?
A company stores application secrets in AWS Secrets Manager. They want Amazon ECS tasks to retrieve database credentials securely at runtime and automatically use rotated values without embedding secrets in container images or environment files stored in source control. Which approach is BEST?
A DevOps team needs to ensure that all new and existing Amazon S3 buckets across an AWS Organization block public access and use server-side encryption. Noncompliant resources must be detected continuously, and approved remediation should occur automatically where possible. Which solution provides the BEST combination of governance and automation?
A regulated company must enforce preventive controls so that infrastructure can be provisioned only in approved AWS Regions and only with specific mandatory tags. The company wants to stop noncompliant resource creation before it occurs, while also maintaining detective visibility across accounts. Which combination of services should the DevOps team use?
Want more practice?
Access the full practice exam with detailed explanations
Ready for More Practice?
Access our full practice exam with 500+ questions, detailed explanations, and performance tracking to ensure you pass the AWS Certified DevOps Engineer - Professional exam.
More Resources