exam questions

Exam AWS Certified DevOps Engineer - Professional DOP-C02 All Questions

View all questions & answers for the AWS Certified DevOps Engineer - Professional DOP-C02 exam

Exam AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 90 discussion

A company deploys updates to its Amazon API Gateway API several times a week by using an AWS CodePipeline pipeline. As part of the update process, the company exports the JavaScript SDK for the API from the API Gateway console and uploads the SDK to an Amazon S3 bucket.

The company has configured an Amazon CloudFront distribution that uses the S3 bucket as an origin. Web clients then download the SDK by using the CloudFront distribution’s endpoint. A DevOps engineer needs to implement a solution to make the new SDK available automatically during new API deployments.

Which solution will meet these requirements?

  • A. Create a CodePipeline action immediately after the deployment stage of the API. Configure the action to invoke an AWS Lambda function. Configure the Lambda function to download the SDK from API Gateway, upload the SDK to the S3 bucket, and create a CloudFront invalidation for the SDK path.
  • B. Create a CodePipeline action immediately after the deployment stage of the API. Configure the action to use the CodePipeline integration with API Gateway to export the SDK to Amazon S3. Create another action that uses the CodePipeline integration with Amazon S3 to invalidate the cache for the SDK path.
  • C. Create an Amazon EventBridge rule that reacts to UpdateStage events from aws.apigateway. Configure the rule to invoke an AWS Lambda function to download the SDK from API Gateway, upload the SDK to the S3 bucket, and call the CloudFront API to create an invalidation for the SDK path.
  • D. Create an Amazon EventBridge rule that reacts to CreateDeployment events from aws.apigateway. Configure the rule to invoke an AWS Lambda function to download the SDK from API Gateway, upload the SDK to the S3 bucket, and call the S3 API to invalidate the cache for the SDK path.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
thanhnv142
Highly Voted 9 months ago
Selected Answer: A
A is correct: <by using an AWS CodePipeline pipeline> means we need CodePipeline. C and D: no mention of CodePipeline. B: < Configure the action to use the CodePipeline integration with API Gateway to export the SDK to Amazon S3>: codepipeline need to invoke other tools to do its task. There is not integration with API gateway
upvoted 6 times
...
GripZA
Most Recent 1 week, 6 days ago
Selected Answer: A
A - AWS Lambda is a compute service that lets you run code without provisioning or managing servers. You can create Lambda functions and add them as actions in your pipelines. Don't need eventbridge
upvoted 1 times
...
zanhsieh
1 year ago
Selected Answer: A
Vote A. Reasons: C: No. "aws.apigateway needs API Gateway AWS integration to send events to EventBridge without using compute service, such as Lambda or Amazon EC2." https://aws.amazon.com/blogs/compute/capturing-client-events-using-amazon-api-gateway-and-amazon-eventbridge/ B&D: No. S3 API doesn't contain invalidate cache call, whereas CloudFront does. Search "invalidat" in https://docs.aws.amazon.com/cli/latest/reference/s3api/ https://docs.aws.amazon.com/cli/latest/reference/cloudfront/
upvoted 4 times
...
RVivek
1 year, 1 month ago
Selected Answer: A
B & D are wrong as it suggests to invalidate the cache fro S3 D uses event bridge rule to invoke lambada however we know Codepipeline is available and that can be used to perform the action
upvoted 2 times
...
FEEREWMWKA
1 year, 2 months ago
I pick C due to it stating during the deployment rather than at the end.
upvoted 1 times
...
ProfXsamson
1 year, 4 months ago
Selected Answer: A
Lambda is king
upvoted 4 times
habros
1 year, 3 months ago
??????
upvoted 4 times
...
...
devnv
1 year, 5 months ago
A is the right answer
upvoted 3 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