A company has developed an AWS Lambda function that handles orders received through an API. The company is using AWS CodeDeploy to deploy the Lambda function as the final stage of a CI/CD pipeline. A DevOps Engineer has notices there are intermittent failures of the ordering API for a few seconds after deployment. After some investigation, the DevOps Engineer believes the failures are due to database changes not having fully propagated before the lambda function begins executing. How should the DevOps Engineer overcome this?
A) Add a BeforeAllowTraffic hook to the AppSpec file that tests and waits for any necessary database changes before traffic can flow to the new version of the Lambda function
B) Add an AfterAllowTraffic hook to the AppSpec file that forces traffic to wait for any pending database changes before allowing the new version of the Lambda function to respond
C) Add a BeforeInstall hook to the AppSpec file that tests and waits for any necessary database changes before deploying the new version of the Lambda function
D) Add a ValidateService hook to the AppSpec file that inspects incoming traffic and rejects the payload if dependent services such as the database are not yet ready
Correct Answer:
Verified
Q156: A DevOps Engineer is setting up a
Q157: A company has containerized all of its
Q158: A DevOps Engineer is tasked with migrating
Q159: An ecommerce company is looking for ways
Q160: A company's popular global web application is
Q162: An Information Security policy requires that all
Q163: A company uses a complex system that
Q164: An Application team has three environments for
Q165: A highly regulated company has a policy
Q166: A company is reviewing its IAM policies.
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents