PracticeCF

DOP-C02 Question Bank · Latest 50 Questions Free Preview (Page 2/5)

Questions 11–20 of the latest 50 DOP-C02 questions (5 pages total), with answers and explanations, no login required. Practice all 951 questions online.

Question 11 · No. 912 · Single choice

A company builds container images and stores them on Amazon Elastic Container Registry (Amazon ECR) in the company's primary AWS Region. A DevOps engineer wants to replicate all the company's ECR repository images to a secondary Region. The DevOps engineer creates a new ECR repository in the secondary Region and configures permission on the new repository to allow replication. Which solution will meet these requirements with the MOST operational efficiency?

Answer: A

Question 12 · No. 913 · Single choice

A company has deployed a microservices-based application on Amazon Elastic Container Service (Amazon ECS). The application is experiencing performance issues. The company needs to identify which microservices are causing the issues. Which solution will provide this information?

Answer: B

Explanation: Option B is the most effective solution because AWS X-Ray is specifically designed for distributed tracing in microservices architectures. It provides a service map that visualizes the application’s architecture and request flow, allowing engineers to quickly identify performance bottlenecks. By filtering traces based on response time and error rate, and then analyzing individual traces, teams can pinpoint which microservices are causing latency or errors. While Option A also uses X-Ray, it adds unnecessary complexity with custom subsegments and groups, which aren't required for basic identification of slow services. Options C and D rely on CloudWatch Container Insights, which provides infrastructure-level metrics (like CPU, memory) but lacks the detailed request-level tracing that X-Ray offers, making it less suitable for identifying problematic microservices in a distributed system.
Question 13 · No. 914 · Single choice

A company is developing a web application that runs on Amazon EC2 Linux instances. The application requires monitoring of custom performance metrics. The company must collect metrics for API response times and database query latency across multiple instances. Which solution will generate the custom metrics with the LEAST operational overhead?

Answer: A

Explanation: Option A is the best solution because the Amazon CloudWatch agent is purpose-built for collecting custom metrics from EC2 instances with minimal operational overhead. Once installed and configured, it can continuously collect custom metrics (such as API response times and database query latency) via the StatsD protocol or by running collection scripts. The agent is natively integrated with CloudWatch, so no additional forwarding services are required. Option B adds overhead by introducing Prometheus and requiring metric forwarding. Option C requires creating and maintaining a Lambda function with polling logic and API calls, which is operationally intensive. Option D requires custom logging and using CloudWatch Logs Insights to derive metrics, which is not efficient for metric generation. Therefore, Option A provides the least operational overhead while effectively meeting the requirements.
Question 14 · No. 915 · Single choice

A company's applications run on Amazon EC2 instances and use AWS Lambda functions in multiple AWS accounts. All EC2 instances have the Amazon CloudWatch agent installed. All accounts belong to the same organization in AWS Organizations. The company has created a dedicated central log account. All logs that the applications produce must be sent to a central location. The logs must be encrypted with keys that the company manages. Which solution meets these requirements with the LEAST operational overhead?

Answer: A

Explanation: Option A uses CloudWatch cross-account observability, which is designed specifically for centralizing logs and metrics across accounts within an AWS Organization. By enabling logs as a data source in the central log account and using a CloudFormation StackSet provided by CloudWatch, the setup is automated across all organization accounts with minimal manual configuration. This approach has the least operational overhead compared to the other options, which require creating multiple resources (Firehose streams, SQS queues, Lambda functions, log subscriptions) in each individual account and maintaining them separately. CloudWatch cross-account observability also supports encryption using customer-managed KMS keys, meeting the encryption requirement.
Question 15 · No. 916 · Single choice

A company uses Amazon Elastic Kubernetes Services (Amazon EKS) to host containerized applications that are available in Amazon Elastic Container Registry (Amazon ECR). The company currently launches EKS clusters in the company's development environment by using the AWS CLI aws eks create-cluster command. The company uses the aws eks create-addon command to install required add-ons. All installed add-ons are currently version compatible with the version of Kubernetes that the company uses. All clusters exclusively use managed node groups for compute capacity. Some of the EKS clusters require a version upgrade. A DevOps engineer must ensure that upgrades continuously occur within the AWS standard support schedule. Which solution will meet this requirement with the LEAST operational overhead?

Answer: B

Explanation: EKS Auto Mode is designed to automate cluster management tasks including Kubernetes version upgrades. It automatically manages version upgrades to keep clusters within the AWS standard support schedule, which requires the least operational overhead for continuous upgrades. While option A and C involve manual execution of CLI commands for each upgrade, and option D requires significant refactoring to use IaC, EKS Auto Mode handles upgrades automatically once enabled.
Question 16 · No. 917 · Single choice

A company uses a pipeline in AWS CodePipeline to upload AWS CloudFormation templates to an Amazon S3 bucket. The pipeline uses the templates to deploy CloudFormation stacks that match the names of the templates. The company has experienced issues when it tries to revert templates to a previous version. To prevent these issues, the company must have the ability to review template modifications before the modifications are deployed to production. Which solution will meet these requirements with the LEAST operational overhead?

Answer: A

Question 17 · No. 918 · Single choice

A company manages environments for its application in multiple AWS accounts. Each environment account is in a different OU in AWS Organizations. A DevOps team is responsible for the application deployment process across the environments. The deployment process uses an AWS CodePipeline pipeline in a Shared Services account. The DevOps team members are in the same user group. The team members have administrative access to all accounts through AWS IAM Identity Center. A recent deployment problem in the development environment required the DevOps team to perform manual steps. The deployment to the production environment then resulted in an incident that caused the pipeline to fail, which blocked new deployments for several hours. A DevOps engineer needs to ensure that only the pipeline can perform deployments in the production environment. The DevOps engineer must have access to the environment in case of an emergency. Which solution will meet these requirements with the MOST operational efficiency?

Answer: A

Explanation: Option A is the most operationally efficient solution. It modifies the existing DevOps group's permission set to ReadOnlyAccess for production accounts (limiting team member access), creates a new permission set for the DevOps engineer with AdministratorAccess and the ability to assume the pipeline role, and adds an SCP that denies resource modification by any entity other than the pipeline role. This approach: (1) Ensures only the pipeline performs deployments because team members have ReadOnlyAccess and the SCP blocks direct modification by anyone except the pipeline role; (2) Gives the DevOps engineer emergency access by allowing them to assume the pipeline role; (3) Maintains operational efficiency by using the existing engineer identity rather than creating a new user (unlike options B and C), and avoids the tagging complexity and pipeline update restrictions of option D.
Question 18 · No. 919 · Single choice

A company is experiencing failures in its AWS CodeDeploy deployments for a critical application. The application is deployed on Amazon EC2 instances. A DevOps engineer must analyze the failed deployments to identify the root cause of the failures. Which solution will provide the appropriate information to troubleshoot the deployment issues?

Answer: C

Explanation: Option C is the correct answer because it provides the most appropriate tools for troubleshooting CodeDeploy deployment failures. Amazon CloudWatch Logs is the standard service for collecting and reviewing application logs. The /opt/codedeploy-agent/deployment-root/ directory is the exact location where the CodeDeploy agent stores its deployment logs on EC2 instances, which is essential for identifying what went wrong during the deployment process. AWS X-Ray helps trace requests through application components, which is useful for identifying application-level issues that may have caused the failure. Option A uses tools not designed for CodeDeploy troubleshooting. Option B incorrectly suggests using CloudTrail logs to analyze Run Command results (CloudTrail logs API calls, not script output). Option D uses Trusted Advisor and Health Dashboard, which are not designed for diagnosing specific CodeDeploy deployment failures.
Question 19 · No. 920 · Multiple choice

A company has developed a web application that conducts seasonal sales on public holidays. The web application is deployed on AWS and uses AWS services for storage, database, computing, and encryption. During seasonal sales, the company expects high network traffic from a large number of users. The company must receive insights regarding any unexpected behavior during the sale. A DevOps team wants to review the insights upon detecting anomalous behaviors during the sale. The DevOps team wants to receive recommended actions to resolve the anomalous behaviors. The recommendations must be provided on the provisioned infrastructure to address the issues that might occur in the future. Which combination of steps will meet these requirements with the LEAST operational overhead? (Choose two.)

Answer: A, B

Explanation: Options A and B together best meet the requirements with the least operational overhead. Option A enables Amazon DevOps Guru, which is a fully managed ML-powered service that automatically detects anomalous behaviors, provides insights, and gives recommendations on provisioned infrastructure through its dashboard. Option B complements this by creating an SNS topic that DevOps Guru can integrate with to send notifications to the DevOps team when anomalies are identified, allowing them to review insights promptly. Options C, D, and E require manual setup, custom dashboards, or use services (like Athena) that are not designed for automatic anomaly detection, resulting in much higher operational overhead.
Question 20 · No. 921 · Single choice

A DevOps engineer needs to design a cloud-based solution to standardize deployment artifacts for AWS Cloud deployments and on-premises deployments. There is currently no routing traffic between the on-premises data center and the AWS environment. The solution must be able to consume downstream packages from public repositories and must be highly available. Data must be encrypted in transit and at rest. The solution must store the deployment artifacts in object storage and deploy the deployment artifacts into Amazon Elastic Container Service (Amazon ECS). The deployment artifacts must be encrypted in transit if the deployment artifacts travel across the public internet. The DevOps engineer needs to deploy this solution in less than two weeks. Which solution will meet these requirements?

Answer: C

Explanation: Option C is the best choice because it uses AWS VPN connections, which can be provisioned within days, easily meeting the 'less than two weeks' deployment requirement. AWS CodeArtifact is a fully managed service that is highly available by default, stores artifacts encrypted in object storage (S3), supports consuming downstream packages from public repositories (npm, PyPI, Maven, NuGet, etc.), and encrypts data both in transit (via TLS) and at rest. In contrast, Options B and D rely on AWS Direct Connect, which typically takes 1-3 months to establish and therefore cannot meet the two-week deadline. Additionally, deploying third-party artifact management software on EC2 instances requires more manual configuration to achieve high availability and encryption requirements compared to using the fully managed CodeArtifact service.
Prev 12345 Next