A developer is creating an AWS Lambda function that generates a new file each time it runs. Each new file must be checked into an AWS CodeCommit repository hosted in the same AWS account. How should the developer accomplish this?
A) When the Lambda function starts, use the Git CLI to clone the repository. Check the new file into the cloned repository and push the change.
B) After the new file is created in Lambda, use cURL to invoke the CodeCommit API. Send the file to the repository.
C) Use an AWS SDK to instantiate a CodeCommit client. Invoke the put_file method to add the file to the repository.
D) Upload the new to an Amazon S3 bucket. Create an AWS Step Function to accept S3 events. In the Step Function, add the new file to the repository.
Correct Answer:
Verified
Q137: Two containerized microservices are hosted on Amazon
Q138: An application is using a single-node Amazon
Q139: A developer is migrating code to an
Q140: A developer is writing an application that
Q141: A developer is writing a web application
Q143: An application needs to encrypt data that
Q144: An ecommerce startup is preparing for an
Q145: A developer is creating a role to
Q146: A developer receives the following error message
Q147: A global company has an application running
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