SAP-C02 exam dumps

SAP-C02 practice question 168 of 678

AWS Certified Solutions Architect - Professional. Professional level, Amazon Web Services. Free question with the correct answer and a full explanation.

SAP-C02 Question 168

Select 4

A company is developing a serverless application on AWS and wants to implement a CI/CD pipeline to automate deployments. The application consists of AWS Lambda functions, an Amazon API Gateway, and an Amazon DynamoDB table. The company requires automated testing, approval workflows before production deployment, and rollback capabilities in case of a failure. Which combination of AWS services and features should you recommend to meet these requirements?

  1. A

    AWS CodePipeline with manual approval actions and rollback settings

  2. B

    AWS CodeBuild for building and testing the application

  3. C

    AWS CloudFormation for deploying infrastructure as code and enabling rollback

  4. D

    Amazon S3 for hosting the entire CI/CD pipeline

  5. E

    AWS CodeDeploy for blue/green deployments of the Lambda functions

Show answer and explanation

Correct answers: A, B, C, E

Explanation

A robust CI/CD pipeline for a serverless application requires services that handle orchestration, building/testing, infrastructure as code, and deployment. AWS CodePipeline acts as the central orchestrator, integrating with AWS CodeBuild for building and testing. AWS CloudFormation ensures infrastructure is deployed consistently and supports rollback on failure. AWS CodeDeploy provides advanced deployment strategies, such as blue/green deployments, for AWS Lambda functions. Amazon S3, while useful for artifact storage, does not fulfill the requirements for hosting or managing the CI/CD pipeline.

  • A. Correct.

    Correct: AWS CodePipeline orchestrates the CI/CD pipeline and supports manual approval actions. It also integrates with other AWS services to automate the deployment process and enables rollback settings during failed deployments.

  • B. Correct.

    Correct: AWS CodeBuild is used to build and test the application in an isolated environment. It supports running unit tests and ensures that the application is ready for deployment.

  • C. Correct.

    Correct: AWS CloudFormation allows the deployment of infrastructure as code and supports rollback on failure, ensuring a consistent and reliable infrastructure deployment process.

  • D. Incorrect.

    Incorrect: While Amazon S3 is useful for storing build artifacts, it cannot host or orchestrate the entire CI/CD pipeline.

  • E. Correct.

    Correct: AWS CodeDeploy supports blue/green deployments for Lambda functions, which enhances the deployment process by minimizing downtime and enabling rollback in case of issues.

Timed practice exam

Take a SAP-C02 practice test under exam conditions

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

Start timed exam