DOP-C02 practice question 32 of 35
A company has deployed a new platform that runs on Amazon Elastic Kubernetes Service (Amazon EKS). The new platform hosts web applications that users…
Full set: 449 questionsA company has deployed a new platform that runs on Amazon Elastic Kubernetes Service (Amazon
EKS). The new platform hosts web applications that users frequently update. The application
developers build the Docker images for the applications and deploy the Docker images manually to
the platform.
The platform usage has increased to more than 500 users every day. Frequent updates, building the
updated Docker images for the applications, and deploying the Docker images on the platform
manually have all become difficult to manage.
The company needs to receive an Amazon Simple Notification Service (Amazon SNS) notification if
Docker image scanning returns any HIGH or CRITICAL findings for operating system or programming
language package vulnerabilities.
Which combination of steps will meet these requirements? (Select TWO.)
Correct Answer:
B, D
Step 1: Automate Docker Image Deployment using AWS CodePipeline
The first challenge is the manual process of building and deploying Docker images. To address this,
you can use AWS CodePipeline to automate the process. AWS CodePipeline integrates with
CodeCommit (for source code and Dockerfile storage) and CodeBuild (to build Docker images and
store them in Amazon Elastic Container Registry (ECR)).
Action: Create an AWS CodeCommit repository to store the Dockerfile and Kubernetes deployment
files. Then, create a pipeline in AWS CodePipeline that triggers on new commits via an Amazon
EventBridge event.
Why: This automation significantly reduces the manual effort of building and deploying Docker
images when updates are made to the codebase.
Reference: AWS documentation on AWS CodePipeline and CodeCommit Integration.
This corresponds to Option B: Create an AWS CodeCommit repository to store the Dockerfile and
Kubernetes deployment files. Create a pipeline in AWS CodePipeline. Use an Amazon EventBridge
event to invoke the pipeline when a newer version of the Dockerfile is committed. Add a step to the
pipeline to initiate the AWS CodeBuild project.
Step 2: Enabling Enhanced Scanning on Amazon ECR and Monitoring Vulnerabilities
To scan for vulnerabilities in Docker images, Amazon ECR provides both basic and enhanced scanning
options. Enhanced scanning offers deeper and more frequent scans, and integrates with Amazon
EventBridge to send notifications based on findings.
Action: Turn on enhanced scanning for the Amazon ECR repository where the Docker images are
stored. Use Amazon EventBridge to monitor image scan events and trigger an Amazon SNS
notification if any HIGH or CRITICAL vulnerabilities are found.
Why: Enhanced scanning provides a detailed analysis of operating system and programming
language package vulnerabilities, which can trigger notifications in real-time.
Reference: AWS documentation on Enhanced Scanning for Amazon ECR.
This corresponds to Option D: Create an AWS CodeBuild project that builds the Docker images and
stores the Docker images in an Amazon Elastic Container Registry (Amazon ECR) repository. Turn on
enhanced scanning for the ECR repository. Create an Amazon EventBridge rule that monitors ECR
image scan events. Configure the EventBridge rule to send an event to an SNS topic when the
finding-severity-counts parameter is more than 0 at a CRITICAL or HIGH level.
Keep practicing
Take the free DOP-C02 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other DOP-C02 practice questions
- Question 1A company has enabled all features for its organization in AWS Organizations. The organiz…
- Question 2A company is developing a web application's infrastructure using AWS CloudFormation The d…
- Question 3A company uses Amazon Redshift as its data warehouse solution. The company wants to creat…
- Question 4A company recently deployed its web application on AWS. The company is preparing for a la…
- Question 5A company is migrating from its on-premises data center to AWS. The company currently use…
- Question 6A security team is concerned that a developer can unintentionally attach an Elastic IP ad…
