Amazon Web ServicesProfessional levelDOP-C02Page 2 of 5

DOP-C02 exam dumps: questions 101 to 200 of 410

Page 2 of the free DOP-C02 question bank for the AWS Certified DevOps Engineer - Professional exam. Questions 101 to 200 are listed below, the first 5 in full with answers and explanations. Back to page 1 for the exam overview and FAQ.

Question bank last updated December 2024

Free DOP-C02 practice questions

Questions 101 to 105 of 410

Pick an answer before you open the explanation. Each question also has its own page with a permalink.

DOP-C02 Question 101

Select 3

You are tasked with deploying and managing a fleet of EC2 instances across multiple environments (development, staging, production). The instances require consistent system configurations, such as installed software, security patches, and custom application settings. Which combination of AWS services and strategies should you use to implement a scalable and maintainable configuration management solution?

  1. A

    Use AWS Systems Manager State Manager to define and enforce desired state configurations across all instances.

  2. B

    Implement configuration scripts manually on each instance using SSH to ensure consistent settings.

  3. C

    Leverage AWS Systems Manager Parameter Store to centrally manage and retrieve configuration settings securely.

  4. D

    Create custom Amazon Machine Images (AMIs) with pre-configured settings for each environment and use them to launch EC2 instances.

  5. E

    Use AWS Config to deploy configuration changes directly to your EC2 instances.

Show answer and explanation

Correct answers: A, C, D

Explanation

The correct combination of AWS services and strategies involves using AWS Systems Manager State Manager to automate and enforce configuration management, AWS Systems Manager Parameter Store for securely managing configuration data, and custom AMIs to ensure consistency across environments. These approaches align with best practices for scalable, automated, and maintainable configuration management. Manually applying configurations using SSH is not scalable, and AWS Config is not a configuration deployment tool but rather a compliance monitoring service.

  • A. Correct.

    Correct: AWS Systems Manager State Manager is a powerful tool for defining and enforcing desired state configurations across your fleet of instances. It ensures consistency and allows for automation at scale.

  • B. Incorrect.

    Incorrect: Manually applying configuration scripts via SSH is error-prone, not scalable, and not aligned with best practices for DevOps or configuration management.

  • C. Correct.

    Correct: AWS Systems Manager Parameter Store allows you to centrally store, manage, and retrieve configuration data securely, making it an essential component of a configuration management strategy.

  • D. Correct.

    Correct: Creating custom AMIs with pre-configured settings ensures consistency across instances and reduces the need for repetitive configuration tasks after launch.

  • E. Incorrect.

    Incorrect: AWS Config is designed to monitor and assess compliance with configuration rules but is not a tool for directly deploying or managing configuration changes to instances.

DOP-C02 Question 102

Single answer

Your company uses AWS OpsWorks for managing application configurations across multiple environments. A new requirement mandates that application servers must automatically register themselves to a centralized monitoring system during deployment. How should you implement this in AWS OpsWorks to ensure the configuration occurs during deployments?

  1. A

    Create a custom recipe and assign it to the Deploy lifecycle event in the OpsWorks layer.

  2. B

    Use AWS Systems Manager Run Command to execute the registration script on all instances after deployment.

  3. C

    Manually execute the registration script on each instance after deployment.

  4. D

    Update the stack's user data to include the registration script and re-launch all instances.

Show answer and explanation

Correct answer: A

Explanation

AWS OpsWorks provides lifecycle events that allow you to automate configuration tasks during specific stages of an instance's lifecycle. Assigning a custom recipe to the Deploy event ensures that any required configuration, such as registering to a monitoring system, is executed automatically during deployments. This approach adheres to DevOps best practices of automation and repeatability.

  • A. Correct.

    This is correct. AWS OpsWorks uses lifecycle events such as Setup, Configure, Deploy, and Shutdown. Assigning a custom recipe to the Deploy event ensures the registration script runs automatically during deployments.

  • B. Incorrect.

    This is incorrect. While AWS Systems Manager Run Command can execute scripts on instances, it is not an automated or integrated approach specific to lifecycle events in OpsWorks.

  • C. Incorrect.

    This is incorrect. Manually executing scripts is error-prone and does not align with DevOps principles of automation and repeatability.

  • D. Incorrect.

    This is incorrect. Updating user data and re-launching instances is unnecessary and does not leverage OpsWorks lifecycle events, which are designed for such configuration tasks.

DOP-C02 Question 103

Select 3

Your team is managing an application deployed on Amazon EC2 instances in an Auto Scaling group. You need to implement a configuration management strategy to ensure that new instances in the group are consistently configured with the latest application version and dependencies. Additionally, the configuration process should minimize downtime and allow for configuration drift detection. Which of the following approaches meet these requirements?

  1. A

    Use AWS Systems Manager State Manager to enforce the desired configuration on all instances and schedule periodic compliance checks.

  2. B

    Bake the application and its dependencies into a custom Amazon Machine Image (AMI) and update the Auto Scaling group to use the new AMI when changes are required.

  3. C

    Use a user data script to install and configure the application and its dependencies when new instances are launched.

  4. D

    Leverage AWS OpsWorks to define and manage the application configuration using Chef or Puppet recipes.

  5. E

    Rely on manual SSH-based configuration of the EC2 instances after they are launched to ensure they meet the desired state.

Show answer and explanation

Correct answers: A, B, D

Explanation

To meet the requirements of consistent application configuration, minimal downtime, and configuration drift detection, a combination of automated and scalable tools like AWS Systems Manager State Manager, custom AMIs, or AWS OpsWorks is suitable. These approaches ensure reliable and repeatable configuration management, while manual or initial-only solutions like user data scripts or SSH-based configuration do not meet the ongoing compliance and automation needs.

  • A. Correct.

    AWS Systems Manager State Manager provides a declarative way to enforce configuration compliance on EC2 instances and can detect drift. It is ideal for ongoing configuration management.

  • B. Correct.

    Using a custom AMI ensures that new instances are launched with the desired application version and configuration, reducing setup time and minimizing downtime.

  • C. Incorrect.

    User data scripts are useful for initial configuration but are not ideal for ongoing configuration management or configuration drift detection.

  • D. Correct.

    AWS OpsWorks is a managed configuration management service that supports Chef and Puppet, enabling you to define and enforce application configurations consistently.

  • E. Incorrect.

    Manual SSH-based configuration is error-prone, time-consuming, and does not support automation or scalability, making it unsuitable for this use case.

DOP-C02 Question 104

Single answer

Your organization is using AWS Organizations to manage a multi-account setup across multiple Regions. The organization requires that new AWS accounts be automatically provisioned with baseline security controls, including enabling AWS CloudTrail and AWS Config in all Regions. Additionally, all accounts must adhere to organizational compliance policies. Which approach would be the most appropriate to automate the creation and onboarding of new accounts while meeting these requirements?

  1. A

    Use AWS Service Catalog to provision accounts with pre-configured security baselines and compliance settings.

  2. B

    Use AWS Control Tower to create and manage accounts, and configure guardrails to enforce compliance policies.

  3. C

    Manually create accounts in the AWS Management Console and then apply security baselines using AWS Config rules.

  4. D

    Use a custom solution with AWS Lambda and AWS SDK to create accounts and apply security configurations.

Show answer and explanation

Correct answer: B

Explanation

AWS Control Tower is the best choice for automating the creation and onboarding of AWS accounts in a multi-account and multi-Region environment. It provides built-in capabilities for setting up security baselines, enabling AWS CloudTrail and AWS Config in all Regions, and enforcing compliance policies through guardrails. This simplifies management and reduces operational overhead compared to custom solutions or manual processes.

  • A. Incorrect.

    AWS Service Catalog is designed to manage approved resources like EC2 instances or S3 buckets, but it is not specialized for automating multi-account provisioning and compliance enforcement across Regions.

  • B. Correct.

    AWS Control Tower is specifically designed to automate the creation of AWS accounts, enforce governance using guardrails, and configure security baselines such as enabling AWS CloudTrail and AWS Config. It is the most suitable choice for this scenario.

  • C. Incorrect.

    Manually creating accounts and applying baselines is error-prone, not automated, and does not meet the requirements for scalability or compliance in a multi-account or multi-Region environment.

  • D. Incorrect.

    While a custom solution using Lambda and AWS SDK could achieve the goal, it requires extensive development effort and maintenance, and Control Tower offers a more streamlined and managed solution.

DOP-C02 Question 105

Select 3

Your organization uses AWS Organizations to manage multiple AWS accounts across several Regions. You have been tasked with implementing a solution to automate the creation of new AWS accounts, ensure their onboarding to a central security baseline, and apply specific guardrails for compliance purposes. Which of the following steps should be included in your solution to meet these requirements?

  1. A

    Use AWS Control Tower to set up a landing zone and automate account creation with pre-configured guardrails.

  2. B

    Use AWS CloudFormation StackSets to deploy security baseline templates across all accounts and Regions.

  3. C

    Set up an AWS Lambda function to manually add new accounts to the Organization and apply Service Control Policies (SCPs).

  4. D

    Leverage AWS Service Catalog to allow team members to create accounts using approved templates with pre-configured settings.

  5. E

    Configure AWS Security Hub to automatically remediate security issues in newly created accounts.

Show answer and explanation

Correct answers: A, B, D

Explanation

To automate the creation, onboarding, and securing of AWS accounts in a multi-account and multi-Region setup, AWS Control Tower is a key service that provides a managed landing zone with pre-configured guardrails. AWS CloudFormation StackSets further ensures that security baselines are applied across all accounts and Regions. Additionally, AWS Service Catalog enables team members to create new accounts using approved templates with pre-configured compliance settings. This combination of services ensures automation, governance, and security in a scalable and reliable manner.

  • A. Correct.

    Correct: AWS Control Tower provides a managed service to set up a landing zone, automate account creation, and enforce governance through guardrails.

  • B. Correct.

    Correct: AWS CloudFormation StackSets can be used to apply a security baseline template to multiple accounts and Regions, ensuring consistent compliance.

  • C. Incorrect.

    Incorrect: Manually adding accounts with an AWS Lambda function is not a scalable or secure approach, and automation is a key requirement in the scenario.

  • D. Correct.

    Correct: AWS Service Catalog allows you to standardize the account creation process by providing approved templates with pre-configured settings, ensuring compliance and consistency.

  • E. Incorrect.

    Incorrect: AWS Security Hub is a security monitoring service and not specifically designed to automate account creation or onboarding. While it can identify and remediate issues, it is not sufficient for the task described.

Timed practice exam

Take a DOP-C02 practice test under exam conditions

75 questions in 180 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam

DOP-C02 practice questions 101 to 200 of 410

Every question has a page with the answer and explanation. Numbers are stable, so you can bookmark or share them. The bank is split into 5 pages of up to 100 questions.

  1. 101.You are tasked with deploying and managing a fleet of EC2 instances across multiple environments...
  2. 102.Your company uses AWS OpsWorks for managing application configurations across multiple environments. A new...
  3. 103.Your team is managing an application deployed on Amazon EC2 instances in an Auto Scaling group. You need to...
  4. 104.Your organization is using AWS Organizations to manage a multi-account setup across multiple Regions. The...
  5. 105.Your organization uses AWS Organizations to manage multiple AWS accounts across several Regions. You have...
  6. 106.Your organization is adopting a multi-account strategy on AWS and needs to automate the creation and...
  7. 107.Your organization uses AWS Organizations to manage a multi-account setup spanning multiple AWS Regions. You...
  8. 108.Your company is using AWS CodePipeline to automate the deployment of a serverless application. The pipeline...
  9. 109.Your team is deploying a containerized application using Amazon ECS with the Fargate launch type. During...
  10. 110.Your organization has implemented a CI/CD pipeline using AWS CodePipeline that deploys a serverless...
  11. 111.You are managing a CI/CD pipeline for a high-traffic e-commerce application hosted on AWS. The application...
  12. 112.Your organization is planning to use AWS Organizations to manage multiple AWS accounts. The security team has...
  13. 113.Your organization has recently adopted a multi-account strategy to improve security and manage workloads more...
  14. 114.Your company is managing multiple AWS accounts for different teams, such as development, testing, and...
  15. 115.Your organization has recently adopted AWS Organizations to manage multiple AWS accounts. The goal is to...
  16. 116.Your organization is running a large-scale microservices application on Amazon ECS with Fargate. The...
  17. 117.Your organization hosts a large-scale e-commerce platform on AWS. During peak sales events, the application...
  18. 118.Your organization is running a distributed web application across hundreds of EC2 instances in multiple AWS...
  19. 119.Your organization operates a large-scale e-commerce platform deployed across multiple AWS Regions. You are...
  20. 120.You are a DevOps engineer managing a microservices application deployed on Amazon ECS with Fargate. The...
  21. 121.Your organization uses an AWS CodePipeline to deploy a critical web application. A recent security audit...
  22. 122.Your company uses AWS CodePipeline for CI/CD workflows to deploy a serverless application. A recent...
  23. 123.A company is using AWS CodePipeline to automate the deployment of their applications. A recent security audit...
  24. 124.Your organization is implementing a CI/CD pipeline for an application that is deployed on Amazon ECS using...
  25. 125.Your team is building a CI/CD pipeline for a web application hosted on Amazon ECS, and you want to automate...
  26. 126.Your organization is using an AWS-based CI/CD pipeline to deploy a serverless application. The development...
  27. 127.Your team is managing hundreds of EC2 instances across multiple AWS accounts, and you need to automate patch...
  28. 128.You are working as a DevOps Engineer for a company that is adopting infrastructure as code (IaC) to manage...
  29. 129.You are tasked with automating the deployment of an application stack on AWS. The stack includes Amazon EC2...
  30. 130.You are working as a DevOps Engineer for a company that heavily utilizes AWS infrastructure. Your team is...
  31. 131.You are managing a multi-account AWS environment and want to automate the deployment of infrastructure across...
  32. 132.Your company runs a mission-critical web application on AWS that requires high availability and resilience....
  33. 133.Your company runs a high-availability e-commerce platform on AWS. The platform uses an Amazon RDS Multi-AZ...
  34. 134.Your company runs a distributed application across multiple AWS Regions using Amazon EC2 instances behind an...
  35. 135.Your company runs a high-traffic e-commerce website on AWS. The architecture includes an Application Load...
  36. 136.You are designing a highly available architecture for a web application running on AWS. The application must...
  37. 137.A company runs a mission-critical, customer-facing application on Amazon EC2 instances behind an Application...
  38. 138.Your organization has a business-critical web application hosted on Amazon EC2 instances behind an...
  39. 139.Your organization runs a web application that requires high availability and resilience. The application is...
  40. 140.Your organization has implemented an AWS CodePipeline to automate the deployment of a web application. The...
  41. 141.Your organization is using AWS CodePipeline for Continuous Integration and Continuous Deployment (CI/CD). A...
  42. 142.Your team is managing a CI/CD pipeline using AWS CodePipeline. Recently, you observed that deployment...
  43. 143.Your company is using AWS CodePipeline to manage a CI/CD workflow for deploying an application to Amazon ECS....
  44. 144.Your organization runs a global e-commerce platform that requires high availability and fault tolerance. You...
  45. 145.Your company runs a critical multi-tier web application deployed in AWS. To improve fault tolerance and...
  46. 146.Your company runs a global e-commerce platform using a microservices architecture on Amazon ECS. To ensure...
  47. 147.Your organization has deployed a multi-tier application that spans multiple AWS Regions. The compute layer...
  48. 148.Your company has a critical application running on AWS that requires high availability and must meet a...
  49. 149.Your company has a multi-tier application hosted on AWS that uses an Application Load Balancer (ALB) in front...
  50. 150.Your team is responsible for managing a business-critical application hosted on AWS. The application uses...
  51. 151.Your organization is running a critical e-commerce application hosted on AWS across multiple Availability...
  52. 152.You are managing an application that uses an Amazon RDS MySQL database. The application requires high...
  53. 153.Your team manages a stateful application running in an Amazon ECS cluster using the Fargate launch type. The...
  54. 154.You are managing a stateful application deployed on Amazon EC2 instances. The application stores critical...
  55. 155.You are managing a stateful service running on Amazon EC2 instances behind an Auto Scaling group. The service...
  56. 156.Your company runs a critical application on AWS and needs to ensure high availability with minimal downtime...
  57. 157.Your company operates a critical web application hosted on Amazon EC2 instances behind an Application Load...
  58. 158.Your company runs a critical web application hosted on Amazon EC2 instances behind an Application Load...
  59. 159.You are working as a DevOps Engineer for a global company that runs a customer-facing application on Amazon...
  60. 160.Your organization runs a customer-facing e-commerce platform. During seasonal sales events, your platform...
  61. 161.Your company runs a serverless application that processes images uploaded by users. The application uses...
  62. 162.A rapidly growing e-commerce company is running its backend on AWS and expects a significant increase in...
  63. 163.A media company is using an Amazon ECS cluster to run a containerized video transcoding application. The...
  64. 164.Your team is managing a CI/CD pipeline for a critical web application hosted on AWS. The application uses AWS...
  65. 165.Your team has deployed a microservices-based application on AWS using Amazon ECS with the Fargate launch...
  66. 166.Your company is using AWS CodePipeline for continuous delivery. During the deployment phase, you need to...
  67. 167.An organization is running a high-traffic e-commerce application on AWS. They want to implement a CI/CD...
  68. 168.You are designing an auto-scaling solution for a web application hosted on an Amazon ECS cluster behind an...
  69. 169.You are managing an e-commerce application running on AWS that experiences fluctuating traffic throughout the...
  70. 170.Your team is running a microservices-based architecture on Amazon ECS with an Application Load Balancer...
  71. 171.You are managing a containerized application running on Amazon ECS with an Application Load Balancer (ALB)....
  72. 172.A company is designing a new application that processes orders from an e-commerce platform. They want to...
  73. 173.You are designing a distributed, loosely coupled architecture for a high-volume e-commerce application on...
  74. 174.You are designing an event-driven application that processes real-time data streams from multiple IoT...
  75. 175.You are designing a distributed architecture for a large-scale e-commerce platform. The platform must handle...
  76. 176.Your company is developing an event-driven serverless application for processing high volumes of real-time...
  77. 177.Your organization has deployed a serverless architecture using AWS Lambda, Amazon API Gateway, and Amazon...
  78. 178.A company is designing a serverless architecture to process data from IoT devices in real-time. The...
  79. 179.A company is building a serverless application on AWS to process images uploaded to an Amazon S3 bucket. The...
  80. 180.Your team is running a highly available web application using Amazon Elastic Kubernetes Service (EKS) with...
  81. 181.You are deploying a containerized application on Amazon ECS using the Fargate launch type. The application...
  82. 182.You are managing a containerized application running on Amazon ECS with the Fargate launch type. The...
  83. 183.Your organization is migrating its containerized workloads to AWS. The team has decided to use AWS Fargate...
  84. 184.Your organization runs a critical e-commerce platform on AWS. It uses Amazon RDS for its relational database...
  85. 185.Your organization hosts a critical multi-tier application in AWS. The application uses an Amazon RDS database...
  86. 186.Your company runs a global e-commerce application on AWS. The application is deployed across multiple AWS...
  87. 187.Your company hosts a mission-critical e-commerce application on AWS that requires a Recovery Time Objective...
  88. 188.Your company has a multi-account structure in AWS, and you are tasked with implementing a centralized logging...
  89. 189.Your team is managing a CI/CD pipeline for a serverless application using AWS Lambda. The pipeline uses AWS...
  90. 190.Your company runs a critical application on AWS with an Auto Scaling group that scales based on CPU...
  91. 191.An e-commerce company is designing its disaster recovery strategy for a critical application hosted on AWS....
  92. 192.An e-commerce company runs its website on AWS and needs to design a disaster recovery plan. The company has a...
  93. 193.An e-commerce company is designing its disaster recovery (DR) strategy for an application running on AWS. The...
  94. 194.Your company runs a critical e-commerce application on AWS. The application uses Amazon RDS for its database...
  95. 195.Your company runs a critical e-commerce application on AWS. The application must be highly available, and any...
  96. 196.An e-commerce company runs a highly available, multi-region application on AWS. To ensure disaster recovery...
  97. 197.A company is designing a disaster recovery (DR) strategy for their web application hosted on AWS. The...
  98. 198.Your company hosts a mission-critical application on AWS using an active-passive disaster recovery strategy....
  99. 199.An e-commerce company runs its infrastructure on AWS. The company’s production environment consists of an...
  100. 200.Your company runs a high-availability application on an Amazon EKS cluster. The cluster is configured to use...