PracticeCF

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

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

Question 21 · No. 922 · Single choice

A company is developing an ecommerce application that has a backend that runs on Amazon EC2 instances. The application has a static frontend website that is hosted in an Amazon S3 bucket. The company uses a GitHub repository for version control and must automate builds and deployments whenever code is pushed to the main branch. The company must deploy changes to the frontend and backend independently of each other. Which solution will meet these requirements?

Answer: D

Explanation: The key requirements are: (1) automate builds and deployments when code is pushed to the main branch, and (2) deploy the frontend and backend independently of each other. Option D uses two separate AWS CodePipeline pipelines—one for the frontend and one for the backend—which allows independent deployments. Additionally, it correctly uses Amazon S3 as the action provider for the frontend (since the frontend is hosted in S3) and AWS CodeDeploy for the backend (since the backend runs on EC2 instances). Options A and C fail because AWS CodeDeploy cannot deploy static frontend assets to an S3 bucket (S3 has its own native deployment integration). Option B fails because using a single pipeline means any change pushed to the main branch would trigger deployments for both frontend and backend together, violating the requirement to deploy them independently.
Question 22 · No. 923 · Single choice

A company has an RPO of 24 hours and an RTO of 10 minutes for a critical web application that runs on Amazon EC2 instances. The company uses AWS Organizations to manage its AWS account. The company wants to set up AWS Backup for its AWS environment. A DevOps engineer configures AWS Organizations for AWS Backup. The DevOps engineer creates a new centralized AWS account to store the backups. Each EC2 instance has four Amazon Elastic Block Store (Amazon EBS) volumes attached. Which solution will meet this requirement MOST securely?

Answer: A

Explanation: Option A is the most secure because it uses customer managed KMS keys in both the source and centralized accounts. This gives the company full control over encryption keys, including key rotation, access policies, and audit capabilities. Customer managed keys provide better security boundaries between accounts and ensure that the organization maintains control over its encryption infrastructure. Using customer managed keys in both accounts also allows for proper separation of duties and compliance with regulatory requirements that may mandate customer-controlled encryption keys.
Question 23 · No. 924 · Single choice

A company wants to proactively monitor and respond to AWS service issues that might affect an application. The company must correlate AWS Health events with application performance metrics and must set up automated alerts. The solution must give the company the ability to archive events, test the application's latency in different scenarios, and create custom metrics. Which solution will meet these requirements?

Answer: B

Explanation: Option B is the best solution because it meets all the requirements: 1) Amazon EventBridge can natively capture and route AWS Health events; 2) CloudWatch Logs provides the ability to archive events; 3) Custom metrics can be created in CloudWatch based on application performance data; 4) CloudWatch alarms can correlate AWS Health events with the custom metrics to provide automated alerts; and 5) CloudWatch allows testing application latency in different scenarios (e.g., using CloudWatch Synthetics canaries). Option A is incorrect because AWS CloudTrail is for API auditing, not AWS Health events, and AWS Chatbot doesn't provide correlation capabilities. Option C is incorrect because the AWS Health Dashboard has limited automation capabilities and doesn't provide comprehensive event archiving. Option D is incorrect because X-Ray is for application tracing (not AWS Health events), GuardDuty is for security threat detection (not performance correlation), and QuickSight is for visualization (not automated correlation).
Question 24 · No. 925 · Multiple choice

A company uses a CI/CD pipeline to deploy its workload in the ap-southeast-2 Region. The company receives images through a Network Load Balancer (NLB) and processes the images in AWS Fargate tasks on an Amazon Elastic Container Service (Amazon ECS) cluster. An Amazon Elastic Container Registry (Amazon ECR) repository stores the images as Docker images. The company uses Amazon Route 53 to configure DNS. The company saves the images in an Amazon S3 bucket and saves the metadata from the images in an Amazon DynamoDB table. The company wants to expand the workload to a second Region. A DevOps engineer needs to build a highly available and resilient design to expand the workload to the eu-west-2 Region. Which combination of steps will meet these requirements with the FEWEST configuration changes? (Choose three.)

Answer: A, C, E

Question 25 · No. 926 · Single choice

A company uses AWS Organizations, AWS Control Tower, AWS Config, and Terraform to manage its AWS accounts and resources. The company must ensure that users deploy only AWS Lambda functions that are connected to a VPC in member AWS accounts. Which solution will meet these requirements with the LEAST operational effort?

Answer: D

Question 26 · No. 927 · Single choice

A DevOps engineer is planning to use the AWS Cloud Development Kit (AWS CDK) to manage infrastructure as code (IaC) for a microservices-based application. The DevOps engineer must create reusable components for common infrastructure patterns and must apply the same cost allocation tags across different microservices. Which solution will meet these requirements?

Answer: B

Explanation: The correct solution is Option B for the following reasons: 1) A custom CDK construct library is the best approach for creating reusable components for common infrastructure patterns, as CDK constructs are designed specifically for this purpose and allow code reuse. 2) The Tags class (from aws-cdk-lib) is the proper public API for applying tags globally to all resources in a CDK app, ensuring the same cost allocation tags are consistently applied across different microservices. TagManager is a lower-level internal class, not typically used directly at the app level. 3) Deploying microservices as separate CDK stacks provides better isolation, independent deployment capabilities, and allows environment-specific configurations. 4) Using higher-level constructs for each microservice maintains reusability while providing the flexibility needed for independent microservice management.
Question 27 · No. 928 · Multiple choice

A company runs an application that uses an Amazon S3 bucket to store images. A DevOps engineer needs to implement a multi-Region disaster recover (DR) strategy for the S3 objects. The DevOps engineer enables two-way replication between the S3 buckets. The company must be able to fail over to a second S3 bucket that is in a second AWS Region. When an image is added to either S3 bucket, the image must be replicated to the other S3 bucket within 15 minutes. Which combination of steps will meet these requirements in the MOST operationally efficient way? (Choose three.)

Answer: A, B, C

Explanation: The correct answers are A, B, and C. A: Enable S3 Replication Time Control (S3 RTC) - This provides a 15-minute SLA for replication, which directly meets the requirement that images must be replicated within 15 minutes. B: Create an S3 Multi-Region Access Point in an active-passive configuration - This provides a unified access point for the S3 buckets across regions and allows for failover configuration with active-passive setup. C: Call the SubmitMultiRegionAccessPointRoutes operation in the Amazon S3 API when the company needs to fail over - This is the API used to shift traffic from the primary bucket to the failover bucket in a Multi-Region Access Point configuration. Option D is incorrect because Transfer Acceleration is for faster uploads from end users, not for cross-region replication or DR failover. Options E and F are incorrect because while Route 53 Application Recovery Controller can be used for orchestrated traffic shifting, for S3 buckets specifically, the Multi-Region Access Point with the SubmitMultiRegionAccessPointRoutes API is the more operationally efficient native solution that doesn't require additional DNS configuration.
Question 28 · No. 929 · Single choice

A company is developing a mobile app that requires extensive automated testing across multiple device types. The company is using AWS CodePipeline for its CI/CD pipeline. The company must implement a scalable testing solution that can handle increased test loads as the app grows. Which solution will meet these requirements with the LEAST management overhead?

Answer: A

Explanation: AWS Device Farm is a fully managed service specifically designed for testing mobile applications across a wide range of real devices. It automatically scales to handle increased test loads without requiring the company to manage any infrastructure. Compared to the other options, it requires the least management overhead because: Option B requires provisioning and managing EC2 instances with emulators; Option C requires managing containers and ECS clusters; and Option D would require complex custom development for running mobile device emulators in Lambda. Device Farm integrates seamlessly with CodePipeline and handles the scaling automatically.
Question 29 · No. 930 · Single choice

A company has an application that streams logs to an Amazon CloudWatch Logs log group. The logs must be available for the team to search in CloudWatch for at least 30 days. Logs must be accessible with low latency for at least 90 days. After 180 days, log retrieval is rare and latency is not important. A DevOps engineer creates an Amazon S3 bucket to store the logs. Log availability metrics and data protection are important to the company. Which solution will meet these requirements in the MOST cost-effective way?

Answer: D

Explanation: Option D is the most cost-effective solution that meets all requirements: (1) 30-day retention in CloudWatch (Standard log class) allows real-time searching during the first 30 days. (2) CloudWatch subscription filter with Amazon Data Firehose is more cost-effective than Kinesis Data Streams because Firehose is fully managed and serverless with automatic scaling. (3) S3 Standard-IA after 90 days provides low-latency access and multi-AZ data protection for the 30-180 day period. (4) S3 Glacier Deep Archive after 180 days is the cheapest storage tier for long-term archival where latency is not important. Options A and B are incorrect because they use the CloudWatch Logs Infrequent Access log class, which does not support real-time search/queries in CloudWatch Logs Insights. Option C uses Kinesis Data Streams (more expensive than Firehose) and Glacier Instant Retrieval (more expensive than Deep Archive for rare access). Option B uses S3 One Zone-IA, which only stores data in a single AZ, failing the data protection requirement.
Question 30 · No. 931 · Single choice

A company has an organization in AWS Organizations. The organization has all features enabled and has AWS CloudTrail trusted access configured for the management account. An Amazon Simple Notification Service (Amazon SNS) topic is configured for notifications. The company needs all AWS events in all AWS Regions in the organization to be recorded and retained in an audit account. The company needs near real-time notifications of any failed login attempts. A DevOps engineer has created an organization trail in the management account to log events for all Regions. Which solution will meet these requirements with the LEAST operational effort?

Answer: C

Prev 12345 Next