AWS Certified Cloud Practitioner / Question #1364 of 719

Question #1364

A company needs an AWS service to orchestrate application code deployments across hybrid environments (Amazon EC2 instances and on-premises servers). Which AWS service should they use?

A

AWS CodeCommit

B

AWS CodeBuild

C

AWS CodeDeploy

D

AWS CodePipeline

Explanation

AWS CodeDeploy is designed to automate application deployments across EC2 instances and on-premises servers, making it ideal for hybrid environments. It handles deployment orchestration, including version management, traffic shifting, and rollback capabilities.

- Why C is correct: CodeDeploy directly manages deployments to compute services, ensuring code is deployed consistently and reliably across hybrid infrastructure.
- Why others are incorrect:
- A (CodeCommit): A source control service for storing code, not deploying it.
- B (CodeBuild): A build service for compiling code and running tests, not deployment.
- D (CodePipeline): A CI/CD orchestration service that coordinates stages (e.g., build, test, deploy) but relies on CodeDeploy for the actual deployment step.

Key Points: CodeDeploy specializes in deployment automation, while CodePipeline manages the broader CI/CD workflow. Hybrid deployments require a service like CodeDeploy that supports both AWS and on-premises targets.

Answer

The correct answer is: C