Master Amazon AWS Certified DevOps Engineer - Professional Exam DOP-C02 Your Way
A company has set up AWS CodeArtifact repositories with public upstream repositories The company's development team consumes open source dependencies from the repositories in the company's internal network.
The company's security team recently discovered a critical vulnerability in the most recent version of a package that the development team consumes. The security team has produced a patched version to fix the vulnerability. The company needs to prevent the vulnerable version from being downloaded. The company also needs to allow the security team to publish the patched version.
Which combination of steps will meet these requirements? {Select TWO.)
Correct : B, D
Update the status of the affected CodeArtifact package version to deleted:
Deleting the vulnerable package version prevents it from being available for download by any users or systems, ensuring that the compromised version is not consumed.
Update the CodeArtifact package origin control settings to allow direct publishing and to block upstream operations:
By allowing direct publishing, the security team can publish the patched version of the package directly to the CodeArtifact repository.
Blocking upstream operations prevents the repository from automatically fetching and serving the vulnerable package version from upstream public repositories.
By deleting the vulnerable version and configuring the origin control settings to allow direct publishing and block upstream operations, the company ensures that only the patched version is available and the vulnerable version cannot be downloaded.
Start a Discussions
A company wants to use AWS Systems Manager documents to bootstrap physical laptops for developers The bootstrap code Is stored in GitHub A DevOps engineer has already created a Systems Manager activation, installed the Systems Manager agent with the registration code, and installed an activation ID on all the laptops.
Which set of steps should be taken next?
Correct : C
Configure the Systems Manager Document to Use the aws-downloadContent Plugin with a sourceType of GitHub and sourcelnfo with the Repository Details:
The aws-downloadContent plugin can download content from various sources, including GitHub, which is necessary for bootstrapping the laptops with the code stored in the GitHub repository.
schemaVersion: '2.2'
description: 'Download and run bootstrap script from GitHub'
mainSteps:
- action: aws:downloadContent
name: downloadBootstrapScript
inputs:
sourceType: GitHub
sourceInfo: '{'owner':'my-org','repository':'my-repo','path':'scripts/bootstrap.sh','getOptions':'branch:main'}'
destinationPath: /tmp/bootstrap.sh
- action: aws:runShellScript
name: runBootstrapScript
inputs:
runCommand:
- chmod +x /tmp/bootstrap.sh
- /tmp/bootstrap.sh
This setup ensures that the bootstrap code is downloaded from GitHub and executed on the laptops using Systems Manager.
Start a Discussions
A company hired a penetration tester to simulate an internal security breach The tester performed port scans on the company's Amazon EC2 instances. The company's security measures did not detect the port scans.
The company needs a solution that automatically provides notification when port scans are performed on EC2 instances. The company creates and subscribes to an Amazon Simple Notification Service (Amazon SNS) topic.
What should the company do next to meet the requirement?
Correct : A
* Ensure that Amazon GuardDuty is Enabled:
Amazon GuardDuty is a threat detection service that continuously monitors for malicious activity and unauthorized behavior.
It can detect port scans and generate findings for these events.
* Create an Amazon CloudWatch Alarm for Detected EC2 and Port Scan Findings:
Configure GuardDuty to monitor for port scans and other threats.
Create a CloudWatch alarm that triggers when GuardDuty detects port scan activities.
* Connect the Alarm to the SNS Topic:
The CloudWatch alarm should be configured to send notifications to the SNS topic subscribed by the security team.
This setup ensures that the security team receives near-real-time notifications when a port scan is detected on the EC2 instances.
Example configuration steps:
Enable GuardDuty and ensure it is monitoring the relevant AWS accounts.
Create a CloudWatch alarm:
{
'AlarmName': 'GuardDutyPortScanAlarm',
'MetricName': 'ThreatIntelIndicator',
'Namespace': 'AWS/GuardDuty',
'Statistic': 'Sum',
'Dimensions': [
{
'Name': 'FindingType',
'Value': 'Recon:EC2/Portscan'
}
],
'Period': 300,
'EvaluationPeriods': 1,
'Threshold': 1,
'ComparisonOperator': 'GreaterThanOrEqualToThreshold',
'AlarmActions': ['arn:aws:sns:region:account-id:SecurityAlerts']
}
Start a Discussions
A company uses containers for its applications The company learns that some container Images are missing required security configurations
A DevOps engineer needs to implement a solution to create a standard base image The solution must publish the base image weekly to the us-west-2 Region, us-east-2 Region, and eu-central-1 Region.
Which solution will meet these requirements?
Correct : C
Create an EC2 Image Builder Pipeline that Uses a Container Recipe to Build the Image:
EC2 Image Builder simplifies the creation, maintenance, validation, and sharing of container images.
By using a container recipe, you can define the base image, components, and validation tests for your container image.
Configure the Pipeline to Distribute the Image to Amazon Elastic Container Registry (Amazon ECR) Repositories in All Three Regions:
Amazon ECR provides a secure, scalable, and reliable container registry.
Configuring the pipeline to distribute the image to ECR repositories in us-west-2, us-east-2, and eu-central-1 ensures that the image is available in all required regions.
Configure the Pipeline to Run Weekly:
Setting the pipeline to run on a weekly schedule ensures that the base image is regularly updated and published, incorporating any new security configurations or updates.
By using EC2 Image Builder to automate the creation and distribution of the container image, the solution ensures that the base image is consistently maintained and available across multiple regions with minimal management overhead.
Start a Discussions
A company has configured Amazon RDS storage autoscaling for its RDS DB instances. A DevOps team needs to visualize the autoscaling events on an Amazon CloudWatch dashboard. Which solution will meet this requirement?
Correct : A
This corresponds to Option A: Create an Amazon EventBridge rule that reacts to RDS storage autoscaling events from RDS events. Create an AWS Lambda function that publishes a CloudWatch custom metric. Configure the EventBridge rule to invoke the Lambda function. Visualize the custom metric by using the CloudWatch dashboard.
Start a Discussions
Total 250 questions