Q98 — AWS DOP-C02 Ch.3
Question 98 of 100 | ← Chapter 3
A company operates an application in a single AWS Region. The application runs on an Amazon Elastic Kubernetes Service (Amazon EKS) cluster and connects to an Amazon Aurora MySQL cluster. The application is built in an AWS CodeBuild project. Container images are published to Amazon Elastic Container Registry (Amazon ECR). The company needs to replicate the container images and database state to a second Region. Which solution meets these requirements most efficiently?
- A. Enable Amazon S3 Cross-Region Replication (CRR) on the bucket holding ECR container images. Deploy the application to an EKS cluster in the second Region, referencing the new S3 bucket object URL in the Kubernetes deployment files for the container image. Configure cross-Region Aurora replicas in the second Region. Configure the new application deployment to use the endpoint of the cross-Region Aurora replica.
- B. Create an Amazon EventBridge rule that responds to image pushes to the ECR repository. Configure the EventBridge rule to invoke an AWS Lambda function that copies the image to a new ECR repository in the second Region. Deploy the application to an EKS cluster in the second Region, referencing the new ECR repository in the Kubernetes deployment files. Configure cross-Region Aurora replicas in the second Region. Configure the new application deployment to use the endpoint of the cross-Region Aurora replica.
- C. Enable cross-Region replication to replicate the ECR repository to the second Region. Deploy the application to an EKS cluster in the second Region, referencing the new ECR repository in the Kubernetes deployment files. Configure an Aurora Global Database spanning the initial Region and the second Region. Configure the new application deployment to use the endpoint of the second Region’s cluster in the Aurora Global Database. ✓
- D. Modify the CodeBuild project to also push container images to an ECR repository in the second Region. Deploy the application to an EKS cluster in the second Region, referencing the new ECR repository in the Kubernetes deployment files. Configure an Aurora MySQL cluster in the second Region as a binary log replication target from the Aurora MySQL cluster in the initial Region. Configure the new application deployment to use the endpoint of the second Region’s cluster.
Correct Answer: C. Enable cross-Region replication to replicate the ECR repository to the second Region. Deploy the application to an EKS cluster in the second Region, referencing the new ECR repository in the Kubernetes deployment files. Configure an Aurora Global Database spanning the initial Region and the second Region. Configure the new application deployment to use the endpoint of the second Region’s cluster in the Aurora Global Database.
Explanation
Amazon ECR supports cross-Region replication of container images, automatically synchronizing them to a target Region’s ECR repository. Amazon Aurora Global Database enables cross-Region deployment with one primary (read-write) cluster and secondary (read-only) clusters, providing low-latency global reads and disaster recovery capabilities. Option C leverages native ECR cross-Region replication for container images and Aurora Global Database for database replication. Other options either avoid using ECR’s native replication or rely on non-Global Database replication mechanisms, resulting in lower efficiency or functional limitations.