AWS Certified DevOps Engineer - Professional
Boost your readiness for the AWS Certified DevOps Engineer - Professional (DOP-C02) exam with our practice exam simulator. Featuring realistic questions and detailed explanations, it helps you identify knowledge gaps and improve your skills.
Exam domains
The DOP-C02 questions are grouped into 6 domains divided into 19 tasks.
DOP-C02 example questions
One example question per domain from the DOP-C02 question bank, with the correct answer and its explanation. Sign in to the simulator to answer them with all answer options.
You are a DevOps Engineer at a company that has a microservices architecture built using AWS Lambda. You have been tasked with setting up a Continuous Integration/Continuous Deployment (CI/CD) pipeline that automates the deployment of these Lambda functions. The deployment must ensure zero downtime and should integrate seamlessly with AWS CodeDeploy. Which deployment strategy should you choose?
Show answer
CORRECT ANSWERCanary Deployment
Canary Deployment gradually shifts traffic to the Lambda function in small increments, ensuring that any issues can be detected and rolled back quickly if needed, thus guaranteeing zero downtime.
You are a DevOps engineer at a mid-sized tech company. Your team is in the process of implementing a new infrastructure as code (IaC) strategy using AWS CloudFormation to manage your cloud resources. You have created several reusable CloudFormation templates to standardize the deployment of various AWS services, including EC2 instances, RDS databases, and VPC configurations. However, you recently discovered that some of your templates grant overly permissive IAM roles, which has raised security concerns. Now, you need to enforce more stringent IAM policies within your CloudFormation templates and ensure that only needed permissions are granted to various resources. Which solution will help you achieve this objective most effectively?
Show answer
CORRECT ANSWERUse IAM policy conditions within your CloudFormation templates to specify more granular access controls tailored to specific resources.
IAM policy conditions allow you to define explicit rules about when a policy effect is allowed or denied. Using conditions makes your IAM policies more secure and customized to specific scenarios.
Your company runs a fleet of web applications across multiple AWS regions to ensure high availability and low latency for users around the globe. The architecture leverages Amazon EC2 instances running behind Elastic Load Balancers (ELBs) and uses Amazon Route 53 for DNS routing. The business requirements dictate that even in the event of a regional outage, your users should experience minimal downtime and uninterrupted service. How can you meet these requirements with the least amount of manual intervention while also improving the performance of your globally distributed applications?
Show answer
CORRECT ANSWERUse AWS Global Accelerator to route traffic to healthy application endpoints in multiple AWS regions, ensuring automatic failover and optimized performance based on user's location.
AWS Global Accelerator provides a single entry point to your application and automatically routes user traffic to the optimal endpoint based on network latency, ensuring low latency and high availability. In case a region becomes unhealthy, Global Accelerator will route traffic to the next best region.
A healthcare company uses AWS to host its applications, and it is critical to ensure the privacy and security of patient information. The DevOps team has been tasked with configuring Amazon CloudWatch to monitor application logs and store them in an encrypted format to comply with stringent security policies and industry regulations like HIPAA. After setting up CloudWatch, they must ensure that the log data collected is encrypted at rest. Which of the following actions should the DevOps team take to properly configure the encryption of log data using AWS KMS while ensuring the log metrics remain available for alerting and analysis?
Show answer
CORRECT ANSWERUse AWS KMS to create a Customer Master Key (CMK) and configure CloudWatch Logs to use this CMK for encrypting log data.
CloudWatch Logs natively supports the use of AWS KMS Customer Master Keys (CMKs) for encrypting log data at rest. By creating a CMK and configuring CloudWatch Logs to use it, the logs will be encrypted according to the specified key, ensuring compliance with security policies.
Your team has built a financial application that stores transactional data in an Amazon DynamoDB table. To ensure the consistency and reliability of your system, you need to update a secondary system whenever there is an insertion or update in your DynamoDB table. The requirements are to process these changes efficiently, ensure persistence, and allow retry mechanisms in case of failures. What AWS service combination would be the most suitable for this task?
Show answer
CORRECT ANSWERUse DynamoDB Streams to capture changes, send them to an AWS Lambda function to process the data, and then use an Amazon SQS queue to handle any retry logic.
DynamoDB Streams can capture changes to the table. AWS Lambda can process those changes and Amazon SQS can provide the required durability and retry logic for eventual consistency.
You are designing a new internal application for an enterprise that is rapidly scaling its AWS infrastructure. To ensure secure access management, you need to implement permissions boundaries to restrict the maximum permissions that IAM and machine identities can receive. You also need to ensure that only certain trusted administrators can grant IAM roles with elevated permissions. What combination of approaches should you use to achieve this? A) Apply permissions boundaries to all IAM roles and users, and grant administrators the necessary IAM permissions to make changes. B) Use AWS Organizations Service Control Policies (SCPs) to manage permissions across accounts, and use IAM roles with MFA to restrict access further. C) Apply permissions boundaries to IAM roles and users, use AWS STS for temporary elevated permissions when required, and implement MFA for administrative actions. D) Use IAM access advisor combined with VPC endpoint policies to restrict permissions and access.
Show answer
CORRECT ANSWERC) Apply permissions boundaries to IAM roles and users, use AWS STS for temporary elevated permissions when required, and implement MFA for administrative actions.
This approach ensures that IAM roles and users have restricted permissions through permissions boundaries. AWS STS can provide temporary credentials for elevated permissions, and MFA adds a layer of security for administrative actions, aligning with best practices for identity and access management at scale.
Exam mode and practice mode
| Exam mode | Practice mode | |
|---|---|---|
| Questions count | 75 | 1 - 75 |
| Time limit | 180 minutes | Optional, 10 - 200 minutes |
| Exam scope | 6 domains with the official questions ratio | Selected domains with the official questions ratio |
| Correct answers | After exam submission | After exam submission or after each answer |
| Question types | Mix of single and multiple correct answers | Single, multiple or both |
| Question hints | Never | Optional |
| Question domain | Revealed after exam submission | Revealed after submission or during the exam |
| Scoring | 15 of 75 questions do not count towards the result | Official AWS method or mathematical mean |
See all simulator features on the AWS Exam Simulator page.
About the DOP-C02 exam
The AWS Certified DevOps Engineer - Professional (DOP-C02) certification is designed for individuals with extensive experience in managing AWS environments. It assesses your ability to implement and manage continuous delivery systems and methodologies on AWS. Before attempting this certification, it is recommended to have a solid understanding of modern development and operations processes and methodologies, as well as experience in developing code in at least one high-level programming language and managing automated infrastructures.
The exam consists of 75 questions in multiple-choice and multiple-response formats. You have 180 minutes to complete the exam, which can be taken at a Pearson VUE testing center or online with a proctor. The cost of the exam is $300, and it is available in several languages, including English, Japanese, Korean, and Simplified Chinese. To pass, you need a score of 750 out of 1000.
This certification focuses on six main areas: automating the software development lifecycle (SDLC), managing infrastructure as code (IaC), creating resilient cloud solutions, monitoring and logging, incident and event response, and ensuring security and compliance. Key AWS services you need to be familiar with include AWS CodeCommit, AWS CodeBuild, AWS CodeDeploy, AWS CloudFormation, Amazon CloudWatch, AWS Lambda, and AWS IAM.
Preparing for this certification involves reviewing the official exam guide, which details the domains covered and their respective weightages. Practical experience is crucial, so setting up a lab environment to practice using AWS services is highly recommended. Additionally, enrolling in relevant training courses, such as those offered by experts like Stephane Maarek and Adrian Cantrill, can provide valuable insights and hands-on experience. Practice exams, like those by Jon Bonso, can help you get accustomed to the exam format and identify areas where you need to focus more.
Overall, achieving the AWS Certified DevOps Engineer - Professional certification demonstrates your proficiency in managing and automating AWS environments using DevOps principles, making it a valuable credential for advancing your career in cloud computing and DevOps.
Services on the exam
All 101 AWS services that can appear on the DOP-C02 exam.