DOP-C02 Pipeline Practice Questions
The free AWS Certified DevOps Engineer - Professional DOP-C02: AWS Certified DevOps Engineer -Professional DOP-C02 questions that deal with pipeline, with answers and explanations. The full bank and the timed practice test cover every topic the exam asks about.
Question #6
A development team is using AWS CodeCommit to version control application code and AWS CodePipeline to orchestrate software deployments. The team has decided to use a remote main branch as the trigger for the pipeline to integrate code changes. A developer has pushed code changes to the CodeCommit repository, but noticed that the pipeline had no reaction, even after 10 minutes. Which of the following actions should be taken to troubleshoot this issue?
Correct answer: A
Explanation
When you create a pipeline from CodePipeline during the step-by-step it creates a CloudWatch Event rule for a given branch and repo like this: { "source": [ "aws.codecommit" ], "detail-type": [ "CodeCommit Repository State Change" ], "resources": [ "arn:aws:codecommit:us-east-1:xxxxx:repo-name" ], "detail": { "event": [ "referenceCreated", "referenceUpdated" ], "referenceType": [ "branch" ], "referenceName": [ "master" ] } } https://docs.aws.amazon.com/codepipeline/latest/userguide/pipelines-trigger-source-repo-changes-console.html
Question #7
A company wants to set up a continuous delivery pipeline. The company stores application code in a private GitHub repository. The company needs to deploy the application components to Amazon Elastic Container Service (Amazon ECS). Amazon EC2, and AWS Lambda. The pipeline must support manual approval actions. Which solution will meet these requirements?
Correct answer: C
Explanation
https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment- steps.html
Question #8
A company has an application and a CI/CD pipeline. The CI/CD pipeline consists of an AWS CodePipeline pipeline and an AWS CodeBuild project. The CodeBuild project runs tests against the application as part of the build process and outputs a test report. The company must keep the test reports for 90 days. Which solution will meet these requirements?
Correct answer: D
Explanation
The correct solution is to add a report group in the AWS CodeBuild project buildspec file with the appropriate path and format for the reports. Then, create an Amazon S3 bucket to store the reports. You should configure an Amazon EventBridge rule that invokes an AWS Lambda function to copy the reports to the S3 bucket when a build is completed. Finally, create an S3 Lifecycle rule to expire the objects after 90 days. This approach allows for the automated transfer of reports to long-term storage and ensures they are retained for the required duration without manual intervention1. References: • AWS CodeBuild User Guide on test reporting1. • AWS CodeBuild User Guide on working with report groups2. • AWS Documentation on using AWS CodePipeline with AWS CodeBuild3.
Continue with AWS Certified DevOps Engineer - Professional DOP-C02: AWS Certified DevOps Engineer -Professional DOP-C02
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in AWS Certified DevOps Engineer - Professional DOP-C02: AWS Certified DevOps Engineer -Professional DOP-C02, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
