Free AWS DevOps Engineer Professional (DOP-C02) practice test

20 questions in the style of the real AWS DevOps Engineer Professional (DOP-C02) exam. No sign-up: answer them all, check your score against an 80% target, and see the correct answers.

  • 20 questions
  • No time limit
  • Based on the current AWS exam guide
  • Real exam: 75 questions, 180 minutes, a scaled score of 750 to pass
1A company uses CodeDeploy blue/green deployments for an application running on EC2 instances. Management wants deployments to automatically stop if error rates exceed a predefined threshold during traffic shifting. Which solution should the DevOps team implement? (choose the best answer)
2A company has an internal application that is hosted on an Amazon EC2 instance running in a VPC. As part of the setup, the application needed to download an object from the S3 bucket. However, the application received an AccessDenied error in logs when trying to download the object from the restricted S3 bucket. Which of the following should the DevOps Engineer investigate to identify the cause of the issue? (Select TWO.)
3A company has a web application that runs on an Auto Scaling group of Amazon EC2 instances distributed across multiple Availability Zones, with traffic managed by an Application Load Balancer. Amazon RDS MySQL is used for the database tier, and incoming traffic is routed to the load balancer through Amazon Route 53. The Application Load Balancer has a health check that monitors the status of the web servers and verifies that the servers can properly access the database. For compliance purposes, management instructed the Operations team to implement a geographically isolated disaster recovery site to ensure business continuity. The required RPO is 5 minutes, while the RTO should be 2 hours. Which of the following options requires the LEAST amount of changes to the application stack? (choose the best answer)
4A leading IT consultancy firm has several Python-based Flask and Django web applications hosted in AWS. Some of the firm’s developers are freelance contractors located overseas. The firm wants to automate remediation actions for issues relating to the health of its AWS resources by using the AWS Health Dashboard and the AWS Health API. Additionally, there is a requirement to automatically detect any IAM access key owned by the firm that is accidentally or deliberately exposed on a public GitHub repository. Upon detection, the IAM access key must be immediately deleted, and a notification must be sent to the DevOps team. Once detected, the IAM access key must be immediately deleted, and a notification should be sent to the DevOps team. What solution can a DevOps Engineer do to meet this requirement? (choose the best answer)
5A company wants to detect unusual API activity across all AWS accounts and automatically create security findings. Which service should be enabled? (choose the best answer)
6A company runs applications on Amazon EKS. During deployments, 10% of traffic should be shifted to the new version for validation before full rollout. Which deployment strategy should be used? (choose the best answer)
7A startup’s application is running in a single AWS region and utilizes Amazon DynamoDB as its backend. The application is growing in popularity, and the startup just signed a deal to offer the application in other regions. The startup is looking for a solution that will satisfy the following requirements: DynamoDB table must be available in all three regions to deliver low-latency data access. When the table is updated in one Region, the change must seamlessly propagate to the other regions. Which of the following solutions will meet the requirements with the LEAST operational overhead? (choose the best answer)
8A global IT consulting company has a multi-tier enterprise resource planning application which is hosted in AWS. It runs on an Auto Scaling group of Amazon EC2 instances across multiple Availability Zones behind an Application Load Balancer. For its database tier, all of its data is persisted in an Amazon RDS MySQL database running in a Multi-AZ deployments configuration. All of the static content of the application is durably stored in Amazon S3. The company is already using AWS CloudFormation templates for managing and deploying its AWS resources. Few weeks ago, the company failed an IT audit due to its application’s long recovery time and excessive data loss in a simulated disaster recovery scenario drill. How should the DevOps Engineer implement a multi-region disaster recovery plan which has the LOWEST recovery time and the LEAST data loss? (choose the best answer)
9A software development company is doing an all-in migration of their on-premises resources to AWS. The company has a hybrid architecture that comprises over a thousand on-premises VMware servers and a few EC2 instances in their VPC. The company is using a VMWare vCenter Server for data center management of their vSphere environments and virtual servers. A DevOps engineer is tasked to implement a solution that will collect various information from their on-premises and EC2 instances, such as operating system details, MAC address, IP address, and many others. The Operations team should also be able to analyze the collected data in a visual format. Which of the following is the MOST appropriate solution that the engineer should implement with the LEAST amount of effort (choose the best answer)
10A telecommunications company has a web portal that requires a cross-region failover. The portal stores its data in an Amazon Aurora database in the primary region (us-west-1) and the Parallel Query feature is also enabled in the database to optimize some of the I/O and computation involved in processing data-intensive queries. The portal uses Amazon Route 53 to direct customer traffic to the active region. Which among the options below should be taken to MINIMIZE downtime of the portal in the event that the primary database fails? (choose the best answer)
11A company is planning to host their enterprise web application in an Amazon ECS Cluster which uses the Fargate launch type. The database credentials, API keys, and other sensitive parameters should be provided to the application image by using environment variables. A DevOps engineer was instructed to ensure that the sensitive parameters are highly secured when passed to the image and must be kept in a dedicated storage with lifecycle management. The size of some parameters can exceed up to 12 Kb in size and must be rotated automatically. Which of the following is the MOST suitable solution that the DevOps engineer should implement? (choose the best answer)
12A company is migrating an internal EC2 web application to serverless architecture using Amazon API Gateway and AWS Lambda. The current deployment uses a new Auto Scaling group, a new ALB, and Route 53 weighted routing to shift traffic. The CIO wants to try new features on a limited number of users before releasing to all users. Which deployment option fulfills the requirements with the LEAST effort? (choose the best answer)
13A company has recently developed a serverless application that is composed of several AWS Lambda functions and an Amazon DynamoDB database. For the CI/CD process, a continuous deployment pipeline has been built using GitHub, AWS CodeBuild, and AWS CodePipeline. The source, build, test, and deployment stages of the pipeline have also been configured. However, upon review, the Lead DevOps engineer requested improvements to the current pipeline configuration to mitigate the risk of failed deployments. The deployment stage should release the new application version to a small subset of users only for verification before fully releasing the change to all users. The pipeline’s deployment stage must be modified to meet this requirement. Which of the following is the MOST suitable setup to implement? Publish a new version on the serverless application using AWS CloudFormation. Set up a manual approval action in CodePipeline in order to verify and approve the version that will be deployed. Once the change has been verified, invoke the Lambda functions to use the production alias using CodePipeline. (choose the best answer)
14A company runs a popular e-commerce website that provides discounts and weekly sales promotions on various products. It was recently moved from its previous cloud hosting provider to AWS. For its architecture, it uses an Auto Scaling group of Reserved EC2 instances with an Application Load Balancer in front. Their DevOps team needs to set up a CloudFront web distribution that uses a custom domain name where the origin is set to point to the ALB. How can the DevOps Engineers properly implement an end-to-end HTTPS connection from the origin to the CloudFront viewers? (choose the best answer)
15A company wants to deploy infrastructure changes consistently across development, staging, and production accounts. Which approach is best? (choose the best answer)
16A company has a hybrid cloud architecture where its on-premises data center is connected to its multiple virtual private clouds in AWS using an AWS Transit Gateway. The company has a service-oriented architecture with several application services distributed across its VPCs as well as on its local data center. Gathering logs from each service takes a significant amount of time, especially if one module experiences a system outage. To rectify this issue, aggregating the system logs from the on-premises servers and Amazon EC2 instances should be implemented. There should also be a way to analyze the logs for audit and review purposes. As a DevOps Engineer, which among the following options is the MOST cost-effective solution that entails the LEAST amount of effort to implement? (choose the best answer)
17A CTO of a leading insurance company has recently decided to migrate its online customer portal to AWS. The customers will use the online portal to view the paid insurance premiums and manage accounts. For improved scalability, the application should be hosted in an Auto Scaling group of On-Demand Amazon EC2 instances with a custom Amazon Machine Image (AMI). The same architecture will also be used for the non-production environments (DEV, TEST, and STAGING). The DevOps Engineer is instructed by the CTO to design a deployment strategy that securely stores the credentials of each environment, expedites the startup time for the EC2 instances, and allows the same AMI to work in all environments. How should the DevOps Engineer set up the deployment configuration to accomplish this task? (choose the best answer)
18A large hospital has an online medical record system that is hosted in a fleet of Windows EC2 instances with several EBS volumes attached to it. The IT Security team mandated that the latest security patches should be installed to all of their Amazon EC2 instances using an automated patching system. They should also have to implement a functionality that checks all of their EC2 instances if they are using an approved Amazon Machine Image (AMI) in their AWS Cloud environment. The patching system should not impede developers from launching instances using an unapproved AMI, but nonetheless, they still have to be notified if there are non-compliant EC2 instances in their VPC. As a DevOps Engineer, which of the following should you implement to protect and monitor all of your instances as required above? (choose the best answer)
19A company’s application stores its important assets in an Amazon S3 bucket. The security team has observed that the application is only deployed in a single region and is not protected from regional disasters. To address the issue, the company released a new policy with the following requirements: important assets must always be accessible, deploy the application to multiple Regions, and users must use the same endpoint to access the assets. Which combination of steps should the DevOps Engineer implement to achieve the requirements in the MOST operationally efficient way? (Select THREE.)
20A multinational insurance firm has recently consolidated its multiple AWS accounts using AWS Organizations with several Organizational units (OUs) that group each department of the firm. Their IT division consists of two teams: the DevOps team and the Release & Deployment team. The first one is responsible for protecting its cloud infrastructure and ensuring that all of its AWS resources are compliant, while the latter is responsible for deploying new applications to AWS Cloud. The DevOps team has been instructed to set up a system that regularly checks if all of the running EC2 instances are using an approved AMI. However, the solution should not stop the Release & Deployment team from deploying an EC2 instance running on a non-approved AMI for their release process. The DevOps team must build a notification system that sends the compliance state of the AWS resources to improve and maintain the security of their cloud resources. Which of the following is the MOST suitable solution that the DevOps team should implement? (choose the best answer)

Unanswered questions count as wrong.

How this test compares with the real AWS DevOps Engineer Professional (DOP-C02) exam

This free testReal AWS DevOps Engineer Professional (DOP-C02) examFull Exam Prep ($29)
Questions2075150+
Time limitNone180 minutesMock Exam Mode: 180 minutes
Pass mark80% shown as a guideScaled score of 750Scored against 80%
ExplanationsCorrect answers onlyNoneFor every question

Questions about this practice test

Is this the real AWS DevOps Engineer Professional (DOP-C02) exam?

No. These are practice questions written by ScrumPrep in the style of the AWS DevOps Engineer Professional (DOP-C02) exam. The real exam is run by AWS, and its fee is paid to AWS separately.

What score should I aim for?

AWS reports a scaled score, not a percentage, so aim for 80% or more on full, timed mock exams before you book. A short untimed test like this one is easier than the real thing.

Do I need an account?

Not for this test. You only create a free account if you want the answer explanations in our free quiz, or if you buy the full Exam Prep.

How is the full AWS DevOps Engineer Professional (DOP-C02) Exam Prep different?

It has 150+ questions with an explanation for each, a Practice Mode where you choose how many questions to take, and a Mock Exam Mode with 75 questions in 180 minutes, like the real exam. It costs $29 one time.

ScrumPrep is an independent exam prep provider. We are not affiliated with, endorsed by, or sponsored by Amazon Web Services (AWS), and all questions on this page are written by ScrumPrep and are not actual exam questions. AWS and AWS Certified are trademarks of Amazon.com, Inc. or its affiliates.