exam questions

Exam AWS Certified Developer Associate All Questions

View all questions & answers for the AWS Certified Developer Associate exam

Exam AWS Certified Developer Associate topic 1 question 225 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 225
Topic #: 1
[All AWS Certified Developer Associate Questions]

A developer is using an AWS CodeCommit repository to store source code for an application. The developer is using an AWS CodePipeline pipeline to deploy the application. The pipeline does not start automatically and must be started manually when a deployment is needed.

The developer needs to configure the pipeline to start automatically.

Which solution meets this requirement with the LEAST delay?

  • A. Create a webhook in the CodeCommit repository to directly call the CodePipeline API to start the pipeline.
  • B. Create an Amazon EventBridge (Amazon CloudWatch Events) rule to start the pipeline upon the detection of changes in the CodeCommit repository.
  • C. Configure the pipeline to poll the CodeCommit repository for changes and to start automatically when changes are detected.
  • D. Create a CodeCommit trigger for an Amazon Simple Notification Service (Amazon SNS) topic. Configure the SNS topic to post to the CodePipeline API to start the pipeline.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
51b1f29
1 year, 1 month ago
Option B choose Use CloudWatch Events to automatically start my pipeline when a change occurs (recommended). https://docs.aws.amazon.com/codepipeline/latest/userguide/update-change-detection.html
upvoted 1 times
...
Paul_101
1 year, 7 months ago
Selected Answer: B
Based on this article B looks to be the correct answer https://docs.aws.amazon.com/codepipeline/latest/userguide/pipelines-about-starting.html
upvoted 1 times
...
rcaliandro
1 year, 9 months ago
Selected Answer: C
In my opinion A or C because a codepipeline should be designed to be run as soon as a developer push the source control system. Even if it is possible, why we do have to configure it by using CloudWatch Event to detect changes in the repository?
upvoted 1 times
...
jra777
2 years, 2 months ago
Selected Answer: A
AAAAAAAAAAA 'not a shared service as Ankit1010 commented
upvoted 1 times
...
zek
2 years, 2 months ago
Why not C ?
upvoted 1 times
...
Ankit1010
2 years, 2 months ago
LEAST DELAY - A (Webhook) Both AWS CodePipeline's webhook feature and AWS EventBridge can be used to trigger AWS CodePipeline when changes are made to the AWS CodeCommit repository. However, in terms of speed, AWS CodePipeline's webhook feature is faster since it is specifically designed to work with AWS CodePipeline and can trigger the pipeline immediately when changes are pushed to the CodeCommit repository. On the other hand, AWS EventBridge is a more general event-driven service and may have some additional overhead when routing events to the appropriate target, such as the AWS CodePipeline service. This can introduce some delay between the time changes are made to the CodeCommit repository and the time the pipeline is triggered. Overall, if the goal is to trigger the AWS CodePipeline with the least delay possible, using AWS CodePipeline's webhook feature is the recommended approach.
upvoted 2 times
...
Krt5894
2 years, 2 months ago
Selected Answer: B
When using CodeCommit, Amazon ECR, or Amazon S3 as the source for a pipeline, CodePipeline uses an Amazon CloudWatch Event to detect changes in the source and immediately kick off a pipeline. When using GitHub as the source for a pipeline, CodePipeline uses a webhook to detect changes in a remote branch and kick off the pipeline
upvoted 4 times
pancman
2 years, 2 months ago
Thank you
upvoted 1 times
...
...
hb0011
2 years, 3 months ago
Selected Answer: A
Webhook is slightly faster than Eventbridge rule according to chatgpt. I'm going with A.
upvoted 2 times
...
michaldavid
2 years, 5 months ago
Selected Answer: B
Should be B
upvoted 2 times
...
k1kavi1
2 years, 5 months ago
Selected Answer: B
https://aws.amazon.com/blogs/devops/adding-custom-logic-to-aws-codepipeline-with-aws-lambda-and-amazon-cloudwatch-events/
upvoted 2 times
...
kapil206001
2 years, 5 months ago
B Use event based fr least delay . https://docs.aws.amazon.com/codepipeline/latest/userguide/update-change-detection.html
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago