DVA-C02 exam dumps

DVA-C02 practice question 260 of 399

AWS Certified Developer - Associate. Associate level, Amazon Web Services. Free question with the correct answer and a full explanation.

DVA-C02 Question 260

Single answer

Your development team is working on an application that is deployed using AWS CodePipeline. To ensure the application behaves as expected, you want to automatically run integration tests after the application is deployed to the staging environment. Which approach will allow you to automate deployment testing in the most efficient way?

  1. A

    Add an AWS CodeBuild action in the pipeline after the deployment stage and configure it to run the integration test scripts.

  2. B

    Manually trigger integration tests using AWS Lambda after the deployment is complete.

  3. C

    Use AWS CloudWatch Events to monitor the deployment status and trigger a Lambda function to run integration tests.

  4. D

    Add an Amazon SNS notification in the pipeline to request a manual review before running the integration tests.

Show answer and explanation

Correct answer: A

Explanation

Using AWS CodePipeline with an AWS CodeBuild action is the most efficient way to automate deployment testing. CodePipeline integrates seamlessly with CodeBuild, allowing you to define a testing stage where integration tests can automatically run after the deployment stage. This approach eliminates the need for manual intervention and ensures that testing is part of the automated pipeline process.

  • A. Correct.

    This is the correct option. AWS CodeBuild can be integrated directly into the CodePipeline as a testing stage, allowing you to automate the execution of integration test scripts after the deployment stage.

  • B. Incorrect.

    This is incorrect. Manually triggering tests does not achieve automation, which is a key requirement in this scenario.

  • C. Incorrect.

    This is incorrect. While AWS CloudWatch Events can trigger Lambda functions, this approach introduces unnecessary complexity compared to using CodePipeline's native integration with CodeBuild.

  • D. Incorrect.

    This is incorrect. Adding an Amazon SNS notification for manual review does not automate the deployment testing process. It introduces a manual step, which goes against the goal of automation.

Timed practice exam

Take a DVA-C02 practice test under exam conditions

65 questions in 130 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam