ExamGecko
Home Home / Amazon / CLF-C01

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

Question list
Search
Search

List of questions

Search

Related questions











A developer is writing an application to analyze the traffic to a fleet of Amazon EC2 instances. The EC2 instances run behind a public Application Load Balancer (ALB) An HTTP server runs on each of the EC2 instances, logging all requests to a log file.

The developer wants to capture the client public IP addresses. The developer analyzes the log files and notices only the IP address of the ALB What must the developer do to capture the client public IP addresses in the log file?

A.
Add a Host header to the HTTP server log configuration file.
A.
Add a Host header to the HTTP server log configuration file.
Answers
B.
Install the Amazon CloudWatch Logs agent on each EC2 instance Configure the agent to write to the log filwww.VCEplus.ie o
B.
Install the Amazon CloudWatch Logs agent on each EC2 instance Configure the agent to write to the log filwww.VCEplus.ie o
Answers
C.
Install the AWS X-Ray daemon on each EC2 instance. Configure the daemon to write to the log file
C.
Install the AWS X-Ray daemon on each EC2 instance. Configure the daemon to write to the log file
Answers
D.
Add an X-Forwarded-For header to the HTTP server log configuration file
D.
Add an X-Forwarded-For header to the HTTP server log configuration file
Answers
Suggested answer: D

A developer is writing an application in Python. The application runs on AWS Lambd a. The application generates a file and needs to upload this file to Amazon S3. The developer must implement this upload functionality with the least possible change to the application code Which solution meets these requirements?

A.
Make an HTTP request directly to the S3 API to upload the file
A.
Make an HTTP request directly to the S3 API to upload the file
Answers
B.
Include the AWS SDK for Python in the Lambda function Use the SDK to upload the file
B.
Include the AWS SDK for Python in the Lambda function Use the SDK to upload the file
Answers
C.
Use the AWS SDK for Python that is installed in the Lambda environment to upload the file
C.
Use the AWS SDK for Python that is installed in the Lambda environment to upload the file
Answers
D.
Use the AWS CLI that is installed in the Lambda environment to upload the file
D.
Use the AWS CLI that is installed in the Lambda environment to upload the file
Answers
Suggested answer: C

A company's ecommerce website is experiencing sudden and significant traffic changes that are causing performance problems in the company database. Users report that attempts to access the website are taking too long. A developer needs to implement a caching layer by using Amazon ElastiCache. The website must be responsive, no matter which product a user views Updates to product information and prices must be strongly consistent.

Which cache-writing strategy will meet these requirements?

A.
Write to the cache directly Synchronize the backend later
A.
Write to the cache directly Synchronize the backend later
Answers
B.
Write to the backend first Wait for the cache to expire
B.
Write to the backend first Wait for the cache to expire
Answers
C.
Write to the cache and the backend at the same time
C.
Write to the cache and the backend at the same time
Answers
D.
Write to the backend first. Then update the TTL of the item in the cache=
D.
Write to the backend first. Then update the TTL of the item in the cache=
Answers
Suggested answer: C

A developer needs to migrate an application from on premises to AWS. The application is written m PHP, uses a MySQL database, and has a small number of users. The application receives a significant load for 1 week each month The developer must minimize the cost of migrating and running the application Which solution will meet these requirements?

A.
Migrate the database to an Amazon Aurora single-instance cluster Deploy the application on Amazon EC2 instances that are in an Auto Scaling group behind an Application Load Balancer Set the Auto Scaling group's minimum capacityto 1 Set up an Amazon ElastiCache for Memcached instance for sessions.
A.
Migrate the database to an Amazon Aurora single-instance cluster Deploy the application on Amazon EC2 instances that are in an Auto Scaling group behind an Application Load Balancer Set the Auto Scaling group's minimum capacityto 1 Set up an Amazon ElastiCache for Memcached instance for sessions.
Answers
B.
Redevelop the application to use serverless capabilities that include AWS Lambda. Amazon API Gateway, and Amazon Aurora Serverless Run the application code by using the standard Lambda PHP runtime environment Migrate thedatabase to Aurora Serverless
B.
Redevelop the application to use serverless capabilities that include AWS Lambda. Amazon API Gateway, and Amazon Aurora Serverless Run the application code by using the standard Lambda PHP runtime environment Migrate thedatabase to Aurora Serverless
Answers
C.
Migrate the database to an Amazon Aurora single-instance cluster Deploy the application on Amazon EC2 instances that are in an Auto Scaling group behind an Application Load Balancer (ALB) Set the Auto Scaling group's minimumcapacity to 1 Enable session affinity (sticky sessions) on the ALB
C.
Migrate the database to an Amazon Aurora single-instance cluster Deploy the application on Amazon EC2 instances that are in an Auto Scaling group behind an Application Load Balancer (ALB) Set the Auto Scaling group's minimumcapacity to 1 Enable session affinity (sticky sessions) on the ALB
Answers
D.
Migrate the application to an Amazon Aurora two-instance cluster. Deploy the application on Amazon EC2 instances that are in an Auto Scaling group behind an Application Load Balancer Set the Auto Scaling group's minimum capacityto 2 Set up an Amazon ElastiCache for Memcached twoinstance cluster.
D.
Migrate the application to an Amazon Aurora two-instance cluster. Deploy the application on Amazon EC2 instances that are in an Auto Scaling group behind an Application Load Balancer Set the Auto Scaling group's minimum capacityto 2 Set up an Amazon ElastiCache for Memcached twoinstance cluster.
Answers
Suggested answer: C

An application runs on multiple EC2 instances behind an ELB.

Where is the session data best written so that it can be served reliably across multiple requests?

A.
Write data to Amazon ElastiCache.
A.
Write data to Amazon ElastiCache.
Answers
B.
Write data to Amazon Elastic Block Store
B.
Write data to Amazon Elastic Block Store
Answers
C.
Write data to Amazon EC2 Instance Store
C.
Write data to Amazon EC2 Instance Store
Answers
D.
Write data to the root filesystem
D.
Write data to the root filesystem
Answers
Suggested answer: A

A company is developing a report implemented using AWS Step Functions. Amazon CloudWatch shows errors in the Step Functions task state machine. To troubleshoot each task the state input needs to be included along with the error message in the state output.

Which coding practice can preserve both the original input and the error for the state?

A.
Use ResultPath in a Catch statement to include the error with the original input
A.
Use ResultPath in a Catch statement to include the error with the original input
Answers
B.
Use InputPath in a Catch statement and set the value to null.
B.
Use InputPath in a Catch statement and set the value to null.
Answers
C.
Use ErrorEquals in a Retry statement to include the error with the original input
C.
Use ErrorEquals in a Retry statement to include the error with the original input
Answers
D.
Use OutputPath in a Retry statement and set the value to $.
D.
Use OutputPath in a Retry statement and set the value to $.
Answers
Suggested answer: A

A company is building an application for stock trading. The application needs sub-millisecond latency for processing trade requests. The company uses Amazon DynamoDB to store all the trading data that is used to process each trading request A development team performs load testing on the application and finds that the data retrieval time is higher than expected. The development team needs a solution that reduces the data retrieval time with the least possible effort Which solution meets these requirements?

A.
Add local secondary indexes (LSIs) for the trading data
A.
Add local secondary indexes (LSIs) for the trading data
Answers
B.
Store the trading data in Amazon S3 and use S3 Transfer Acceleration
B.
Store the trading data in Amazon S3 and use S3 Transfer Acceleration
Answers
C.
Add retries with exponential backoff for DynamoDB queries
C.
Add retries with exponential backoff for DynamoDB queries
Answers
D.
Use DynamoDB Accelerator (DAX) to cache the trading data
D.
Use DynamoDB Accelerator (DAX) to cache the trading data
Answers
Suggested answer: D

A static website is hosted in an Amazon S3 bucket Several HTML pages on the site use JavaScript to download images from another Amazon S3 bucket These images are not displayed when users browse the site. What is the possible cause for the issue?

A.
The referenced Amazon S3 bucket is in another region
A.
The referenced Amazon S3 bucket is in another region
Answers
B.
The images must be stored in the same Amazon S3 bucket
B.
The images must be stored in the same Amazon S3 bucket
Answers
C.
Port 80 must be opened on the security group in which the Amazon S3 bucket is located
C.
Port 80 must be opened on the security group in which the Amazon S3 bucket is located
Answers
D.
Cross Origin Resource Sharing must be enabled on the Amazon S3 bucket
D.
Cross Origin Resource Sharing must be enabled on the Amazon S3 bucket
Answers
Suggested answer: D

A developer creates an AWS Lambda function to publish a message to an Amazon Simple Notification Service (Amazon SNS) topic All message content must be encrypted in transit and at rest between Lambda and Amazon SNS. A part of the Lambda execution role is as follows:

Which combination of steps should the developer take to meet these requirements'? (Select TWO.)

A.
Enable server-side encryption on the SNS topic
A.
Enable server-side encryption on the SNS topic
Answers
B.
Add a Deny statement to the Lambda execution role Specify the SNS topic ARN as the resource Specify "aws.SecureTransport" "true" as the condition.
B.
Add a Deny statement to the Lambda execution role Specify the SNS topic ARN as the resource Specify "aws.SecureTransport" "true" as the condition.
Answers
C.
Create a VPC endpoint for Amazon SNS
C.
Create a VPC endpoint for Amazon SNS
Answers
D.
Add a StringEquals condition of "sns Protocol" "https" to the Lambda execution role
D.
Add a StringEquals condition of "sns Protocol" "https" to the Lambda execution role
Answers
E.
Add a Deny statement to the Lambda execution role Specify the SNS topic ARN as the resource Specify "aws.SecureTransport" "false" as the condition.
E.
Add a Deny statement to the Lambda execution role Specify the SNS topic ARN as the resource Specify "aws.SecureTransport" "false" as the condition.
Answers
Suggested answer: A, E

A developer needs to use the AWS CLI on an on-premises development server temporarily to access AWS services while performing maintenance. The developer needs to authenticate to AWS with their identity for several hours. What is the MOST secure way to call AWS CLI commands with the developer's IAM identity?

A.
Specify the developer's IAM access key ID and secret access key as parameters for each CLI command
A.
Specify the developer's IAM access key ID and secret access key as parameters for each CLI command
Answers
B.
Run the aws configure CLI command Provide the developer's IAM access key ID and secret access key
B.
Run the aws configure CLI command Provide the developer's IAM access key ID and secret access key
Answers
C.
Specify the developer's IAM profile as a parameter for each CLI command
C.
Specify the developer's IAM profile as a parameter for each CLI command
Answers
D.
Run the get-session-token CLI command with the developer's IAM user. Use the returned credentials to call the CLI
D.
Run the get-session-token CLI command with the developer's IAM user. Use the returned credentials to call the CLI
Answers
Suggested answer: B
Total 944 questions
Go to page: of 95