ExamGecko
Home / Amazon / CLF-C01 / List of questions
Ask Question

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

List of questions

Question 581

Report
Export
Collapse

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?

Add a Host header to the HTTP server log configuration file.
Add a Host header to the HTTP server log configuration file.
Install the Amazon CloudWatch Logs agent on each EC2 instance Configure the agent to write to the log filwww.VCEplus.ie o
Install the Amazon CloudWatch Logs agent on each EC2 instance Configure the agent to write to the log filwww.VCEplus.ie o
Install the AWS X-Ray daemon on each EC2 instance. Configure the daemon to write to the log file
Install the AWS X-Ray daemon on each EC2 instance. Configure the daemon to write to the log file
Add an X-Forwarded-For header to the HTTP server log configuration file
Add an X-Forwarded-For header to the HTTP server log configuration file
Suggested answer: D
asked 16/09/2024
Paula Castanheira
36 questions

Question 582

Report
Export
Collapse

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?

Make an HTTP request directly to the S3 API to upload the file
Make an HTTP request directly to the S3 API to upload the file
Include the AWS SDK for Python in the Lambda function Use the SDK to upload the file
Include the AWS SDK for Python in the Lambda function Use the SDK to upload the file
Use the AWS SDK for Python that is installed in the Lambda environment to upload the file
Use the AWS SDK for Python that is installed in the Lambda environment to upload the file
Use the AWS CLI that is installed in the Lambda environment to upload the file
Use the AWS CLI that is installed in the Lambda environment to upload the file
Suggested answer: C
asked 16/09/2024
Enayat Meer
34 questions

Question 583

Report
Export
Collapse

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?

Write to the cache directly Synchronize the backend later
Write to the cache directly Synchronize the backend later
Write to the backend first Wait for the cache to expire
Write to the backend first Wait for the cache to expire
Write to the cache and the backend at the same time
Write to the cache and the backend at the same time
Write to the backend first. Then update the TTL of the item in the cache=
Write to the backend first. Then update the TTL of the item in the cache=
Suggested answer: C
asked 16/09/2024
Korrakot Tianniam
34 questions

Question 584

Report
Export
Collapse

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?

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.
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.
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
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
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
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
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.
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.
Suggested answer: C
asked 16/09/2024
fritz villanueva
48 questions

Question 585

Report
Export
Collapse

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?

Write data to Amazon ElastiCache.
Write data to Amazon ElastiCache.
Write data to Amazon Elastic Block Store
Write data to Amazon Elastic Block Store
Write data to Amazon EC2 Instance Store
Write data to Amazon EC2 Instance Store
Write data to the root filesystem
Write data to the root filesystem
Suggested answer: A
asked 16/09/2024
Thanh Phan
37 questions

Question 586

Report
Export
Collapse

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?

Use ResultPath in a Catch statement to include the error with the original input
Use ResultPath in a Catch statement to include the error with the original input
Use InputPath in a Catch statement and set the value to null.
Use InputPath in a Catch statement and set the value to null.
Use ErrorEquals in a Retry statement to include the error with the original input
Use ErrorEquals in a Retry statement to include the error with the original input
Use OutputPath in a Retry statement and set the value to $.
Use OutputPath in a Retry statement and set the value to $.
Suggested answer: A
asked 16/09/2024
Gaston Cruz
37 questions

Question 587

Report
Export
Collapse

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?

Add local secondary indexes (LSIs) for the trading data
Add local secondary indexes (LSIs) for the trading data
Store the trading data in Amazon S3 and use S3 Transfer Acceleration
Store the trading data in Amazon S3 and use S3 Transfer Acceleration
Add retries with exponential backoff for DynamoDB queries
Add retries with exponential backoff for DynamoDB queries
Use DynamoDB Accelerator (DAX) to cache the trading data
Use DynamoDB Accelerator (DAX) to cache the trading data
Suggested answer: D
asked 16/09/2024
Josh Davis
36 questions

Question 588

Report
Export
Collapse

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?

The referenced Amazon S3 bucket is in another region
The referenced Amazon S3 bucket is in another region
The images must be stored in the same Amazon S3 bucket
The images must be stored in the same Amazon S3 bucket
Port 80 must be opened on the security group in which the Amazon S3 bucket is located
Port 80 must be opened on the security group in which the Amazon S3 bucket is located
Cross Origin Resource Sharing must be enabled on the Amazon S3 bucket
Cross Origin Resource Sharing must be enabled on the Amazon S3 bucket
Suggested answer: D
asked 16/09/2024
FARIZA MANNAN
39 questions

Question 589

Report
Export
Collapse

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:

Amazon CLF-C01 image Question 589 1350 09162024005437000000

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

Enable server-side encryption on the SNS topic
Enable server-side encryption on the SNS topic
Add a Deny statement to the Lambda execution role Specify the SNS topic ARN as the resource Specify "aws.SecureTransport" "true" as the condition.
Add a Deny statement to the Lambda execution role Specify the SNS topic ARN as the resource Specify "aws.SecureTransport" "true" as the condition.
Create a VPC endpoint for Amazon SNS
Create a VPC endpoint for Amazon SNS
Add a StringEquals condition of "sns Protocol" "https" to the Lambda execution role
Add a StringEquals condition of "sns Protocol" "https" to the Lambda execution role
Add a Deny statement to the Lambda execution role Specify the SNS topic ARN as the resource Specify "aws.SecureTransport" "false" as the condition.
Add a Deny statement to the Lambda execution role Specify the SNS topic ARN as the resource Specify "aws.SecureTransport" "false" as the condition.
Suggested answer: A, E
asked 16/09/2024
Rajiesh George
39 questions

Question 590

Report
Export
Collapse

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?

Specify the developer's IAM access key ID and secret access key as parameters for each CLI command
Specify the developer's IAM access key ID and secret access key as parameters for each CLI command
Run the aws configure CLI command Provide the developer's IAM access key ID and secret access key
Run the aws configure CLI command Provide the developer's IAM access key ID and secret access key
Specify the developer's IAM profile as a parameter for each CLI command
Specify the developer's IAM profile as a parameter for each CLI command
Run the get-session-token CLI command with the developer's IAM user. Use the returned credentials to call the CLI
Run the get-session-token CLI command with the developer's IAM user. Use the returned credentials to call the CLI
Suggested answer: B
asked 16/09/2024
Chini Nicola
37 questions
Total 944 questions
Go to page: of 95
Search