ExamGecko
Home Home / Amazon / CLF-C01

Amazon CLF-C01 Practice Test - Questions Answers, Page 57

Question list
Search
Search

List of questions

Search

Related questions











A company has a web application that runs on Amazon EC2 instances with a custom Amazon Machine Image (AMI) The company uses AWS CloudFormation to provision the application. The application runs in the us-east-1 Region, and the company needs to deploy the application to the uswest- 1 Region An attempt to create the AWS CloudFormation stack in us-west-1 fails An error message states that the AMI ID does not exist A developer must resolve this error with a solution that uses the least amount of operational overhead. Which solution meets these requirements?

A.
Change the AWS CloudFormation templates for us-east-1 and us-west-1 to use an AWS AMI Relaunch the stack for both Regions
A.
Change the AWS CloudFormation templates for us-east-1 and us-west-1 to use an AWS AMI Relaunch the stack for both Regions
Answers
B.
Copy the custom AMI from us-east-1 to us-west-1 Update the AWS CloudFormation template for us-west-1 to refer to AMI ID for the copied AMI. Relaunch the stack.
B.
Copy the custom AMI from us-east-1 to us-west-1 Update the AWS CloudFormation template for us-west-1 to refer to AMI ID for the copied AMI. Relaunch the stack.
Answers
C.
Build the custom AMI in us-west-1 Create a new AWS CloudFormation template to launch the stack in us-west-1 with the new AMI ID
C.
Build the custom AMI in us-west-1 Create a new AWS CloudFormation template to launch the stack in us-west-1 with the new AMI ID
Answers
D.
Manually deploy the application outside AWS CloudFormation in us-west-1
D.
Manually deploy the application outside AWS CloudFormation in us-west-1
Answers
Suggested answer: B

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.
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.
Answers
B.
After the new file is created in Lambda, use cURL to invoke the CodeCommit API Send the file to the repository
B.
After the new file is created in Lambda, use cURL to invoke the CodeCommit API Send the file to the repository
Answers
C.
Use an AWS SDK to instantiate a CodeCommit client Invoke the put_file method to add 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
Answers
D.
Upload the new file 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
D.
Upload the new file 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
Answers
Suggested answer: C

A gaming application stores scores for players in an Amazon DynamoDB table that has four attributes user_id. user_name, user_score: and userrank The users are allowed to update their names only. A user is authenticated by web identity federation.

Which set of conditions should be added in the policy attached to the role for the dynamodb Putltem API call?

A.
A.
Answers
B.
B.
Answers
C.
C.
Answers
D.
D.
Answers
Suggested answer: A

A company is using an AWS Lambda function to process records from an Amazon Kinesis data stream The company recently observed slow processing of the records .A developer notices that the iterator age metric for the function is increasing and that the Lambda run duration is constantly above normal.

Which actions should the developer take to increase the processing speed? (Select TWO.)

A.
Increase the number of shards of the Kinesis data stream.
A.
Increase the number of shards of the Kinesis data stream.
Answers
B.
Decrease the timeout of the Lambda function
B.
Decrease the timeout of the Lambda function
Answers
C.
Increase the memory that is allocated to the Lambda function
C.
Increase the memory that is allocated to the Lambda function
Answers
D.
Decrease the number of shards of the Kinesis data stream
D.
Decrease the number of shards of the Kinesis data stream
Answers
E.
Increase the timeout of the Lambda function.
E.
Increase the timeout of the Lambda function.
Answers
Suggested answer: A, C

A developer has created a web API that uses Amazon Elastic Container Service (Amazon ECS) and an Application Load Balancer (ALB) An Amazon CloudFront distribution uses the API as an origin for web clients The application has received millions of requests with a JSON Web Token (JWT) that is not valid in the authorization header The developer has scaled out the application to handle the unauthenticated requests What should the developer do to reduce the number of unauthenticated requests to the API?

A.
Add a request routing rule to the ALB to return a 401 status code if the authorization header is missing
A.
Add a request routing rule to the ALB to return a 401 status code if the authorization header is missing
Answers
B.
Add a container to the ECS task definition to validate JWTs Set the new container as a dependency of the application container
B.
Add a container to the ECS task definition to validate JWTs Set the new container as a dependency of the application container
Answers
C.
Create a CloudFront function for the distribution Use the crypto module in the function to validate the JWT
C.
Create a CloudFront function for the distribution Use the crypto module in the function to validate the JWT
Answers
D.
Add a custom authorizer for AWS Lambda to the CloudFront distribution to validate the JWT
D.
Add a custom authorizer for AWS Lambda to the CloudFront distribution to validate the JWT
Answers
Suggested answer: D

A company is using continuous integration/continuous delivery (CI/CD) systems A developer must automate the deployment of an application software package to Amazon EC2 instances and virtual servers that run on premises Which AWS service should the developer use to meet these requirements?

A.
AWS Cloud9
A.
AWS Cloud9
Answers
B.
AWS CodeBuild
B.
AWS CodeBuild
Answers
C.
AWS Elastic Beanstalk
C.
AWS Elastic Beanstalk
Answers
D.
AWS CodeDeploy
D.
AWS CodeDeploy
Answers
Suggested answer: D

An application needs to encrypt data that is written to Amazon S3 where the keys are managed in an on-premises data center and the encryption is handled by S3 Which type of encryption should be used?

A.
Use server-side encryption with Amazon S3-managed keys
A.
Use server-side encryption with Amazon S3-managed keys
Answers
B.
Use server-side encryption with AWS KMS-managed keys
B.
Use server-side encryption with AWS KMS-managed keys
Answers
C.
Use client-side encryption with AWS KMS-managed keys
C.
Use client-side encryption with AWS KMS-managed keys
Answers
D.
Use server-side encryption with customer-provided keys.
D.
Use server-side encryption with customer-provided keys.
Answers
Suggested answer: D

A developer is writing a new AWS Serverless Application Model (AWS SAM) template with a new AWS Lambda function. The Lambda function runs complex code. T he developer wants to test the Lambda function with more CPU power

What should the developer do to meet this requirement?

A.
Increase the runtime engine version
A.
Increase the runtime engine version
Answers
B.
Increase the timeout
B.
Increase the timeout
Answers
C.
Increase the number of Lambda layers
C.
Increase the number of Lambda layers
Answers
D.
Increase the memory.
D.
Increase the memory.
Answers
Suggested answer: D

A developer needs to modify an application architecture to meet new functional requirements Application data is stored in Amazon DynamoDB and processed for analysis in a nightly batch. The system analysts do not want to wait until the next day to view the processed data and have asked to have it available in near-real time. Which application architecture pattern would enable the data to be processed as it is received?

A.
Event driven
A.
Event driven
Answers
B.
Client-server driven
B.
Client-server driven
Answers
C.
Fan-out driven
C.
Fan-out driven
Answers
D.
Schedule driven
D.
Schedule driven
Answers
Suggested answer: A

Explanation:

Explanation:

A developer has written code for an application and wants to share it with other developers on the team to receive feedback. The shared application code needs to be stored long-term with multiple versions and batch change tracking Which AWS service should the developer use?

A.
AWS CodeBuild
A.
AWS CodeBuild
Answers
B.
Amazon S3
B.
Amazon S3
Answers
C.
AWS CodeCommit
C.
AWS CodeCommit
Answers
D.
AWS Cloud9
D.
AWS Cloud9
Answers
Suggested answer: C
Total 944 questions
Go to page: of 95