exam questions

Exam AWS Certified Solutions Architect - Professional SAP-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional SAP-C02 exam

Exam AWS Certified Solutions Architect - Professional SAP-C02 topic 1 question 54 discussion

A company runs a new application as a static website in Amazon S3. The company has deployed the application to a production AWS account and uses Amazon CloudFront to deliver the website. The website calls an Amazon API Gateway REST API. An AWS Lambda function backs each API method.

The company wants to create a CSV report every 2 weeks to show each API Lambda function’s recommended configured memory, recommended cost, and the price difference between current configurations and the recommendations. The company will store the reports in an S3 bucket.

Which solution will meet these requirements with the LEAST development time?

  • A. Create a Lambda function that extracts metrics data for each API Lambda function from Amazon CloudWatch Logs for the 2-week period. Collate the data into tabular format. Store the data as a .csv file in an S3 bucket. Create an Amazon EventBridge rule to schedule the Lambda function to run every 2 weeks.
  • B. Opt in to AWS Compute Optimizer. Create a Lambda function that calls the ExportLambdaFunctionRecommendations operation. Export the .csv file to an S3 bucket. Create an Amazon EventBridge rule to schedule the Lambda function to run every 2 weeks.
  • C. Opt in to AWS Compute Optimizer. Set up enhanced infrastructure metrics. Within the Compute Optimizer console, schedule a job to export the Lambda recommendations to a .csv file. Store the file in an S3 bucket every 2 weeks.
  • D. Purchase the AWS Business Support plan for the production account. Opt in to AWS Compute Optimizer for AWS Trusted Advisor checks. In the Trusted Advisor console, schedule a job to export the cost optimization checks to a .csv file. Store the file in an S3 bucket every 2 weeks.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
masetromain
Highly Voted 2 years, 4 months ago
Selected Answer: B
The correct answer is B. Opting in to AWS Compute Optimizer and creating a Lambda function that calls the ExportLambdaFunctionRecommendations operation is the least development time solution. This option allows you to use the built-in AWS Compute Optimizer service to extract metrics data and export it as a CSV file, which can then be stored in an S3 bucket. Option A is not correct because it requires the development of a Lambda function that extracts metrics data and collates it into tabular format, which adds development time. Option C is not correct because it requires the setup of enhanced infrastructure metrics, which adds development time. Option D is not correct because it requires purchasing the AWS Business Support plan and using the Trusted Advisor console, which adds development time.
upvoted 23 times
...
zozza2023
Highly Voted 2 years, 3 months ago
Selected Answer: B
AWS compute optimizer+ lambda
upvoted 9 times
...
Aritra88
Most Recent 5 months, 1 week ago
Selected Answer: B
Answer B Solution Steps 1. Use AWS Compute Optimizer for Lambda Recommendations AWS Compute Optimizer provides recommendations for Lambda functions, including: * Recommended memory size to improve performance or reduce cost. * Current and recommended cost comparisons. You can query AWS Compute Optimizer using the AWS Management Console, AWS CLI, or SDKs to retrieve the necessary data for your report. 2. Automate Data Retrieval Set up an AWS Lambda function to automate the process: 1. Query Compute Optimizer: * Use the GetLambdaFunctionRecommendations API to retrieve: * Current memory size * Recommended memory size * Current and recommended cost
upvoted 1 times
...
amministrazione
8 months, 2 weeks ago
B. Opt in to AWS Compute Optimizer. Create a Lambda function that calls the ExportLambdaFunctionRecommendations operation. Export the .csv file to an S3 bucket. Create an Amazon EventBridge rule to schedule the Lambda function to run every 2 weeks.
upvoted 1 times
...
8693a49
9 months, 2 weeks ago
Why would anyone need to memorize whether Compute Optimizer reports can be scheduled from the UI or must be done through API calls? This is so unnecessary *rolls eyes
upvoted 3 times
...
khchan123
1 year, 2 months ago
Selected Answer: C
The correct answer is C. Option A involves creating a custom Lambda function to extract metrics data from CloudWatch Logs and generate the CSV report, which would require more development time compared to using the Compute Optimizer service. Option B is partially correct, as it involves using Compute Optimizer and a Lambda function, but it misses the ability to schedule recurring exports directly within the Compute Optimizer console. Option D suggests using AWS Trusted Advisor, which is a service for monitoring best practices and resources, but it does not provide the specific Lambda function memory and cost recommendations required in this scenario.
upvoted 3 times
helloworldabc
8 months, 2 weeks ago
just B
upvoted 2 times
...
...
8608f25
1 year, 3 months ago
Selected Answer: B
Option B is the most efficient and straightforward solution. By opting into AWS Compute Optimizer, the company can leverage AWS’s service for recommendations on optimal AWS resource configurations based on utilization metrics. Using the ExportLambdaFunctionRecommendations operation allows for automating the retrieval of the desired optimization data with minimal code. Scheduling this operation with an Amazon EventBridge rule to run every 2 weeks and exporting the results directly to a CSV file in an S3 bucket meets all the stated requirements with minimal development effort.
upvoted 1 times
...
ninomfr64
1 year, 4 months ago
Selected Answer: C
Not A. This requires some serious development, also not 100% sure CW Logs alone provides all the required info. Not B. This requires some coding to to call the ExportLambdaFunctionRecommendations API Not D. To create CSV reports (organizational view reports) in Trusted Advisor you need to enable Trusted Advisor in you organization, and AWS Organization is not mentioned in the scenario https://docs.aws.amazon.com/awssupport/latest/user/organizational-view.html C is the right solution as it allows to schedule report with the required info with no development https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html. This is was misleading for me as it mentions to set up enhanced infrastructure metrics that is only available for EC2, but you can do it without development (you can do it from console), this add cost but the ask focus on development effort.
upvoted 2 times
8608f25
1 year, 3 months ago
It is not C. Option C describes using AWS Compute Optimizer and setting up a job within the Compute Optimizer console. However, as of the last update, Compute Optimizer does not provide a direct scheduling feature within the console for exporting recommendations to a CSV file. This option suggests functionality that is not directly available in Compute Optimizer.
upvoted 5 times
...
...
AWSCertification2024
1 year, 4 months ago
Selected Answer: B
B is correct Not C because Enhanced infrastructure metrics is a paid feature of Compute Optimizer that applies to Amazon EC2 instances and instances that are part of Auto Scaling groups.
upvoted 3 times
...
enk
1 year, 5 months ago
Selected Answer: D
Lambda = development. Option D has no development. If you are not familiar with dev'ing - publishing a simple Lambda function can require you to wrap all the Node.js or Python or whatever programming language libraries with it in order to execute correctly within AWS Lambda. Configuring Trusted Advisor (GUI) or scheduling a job is NOT considered Development.
upvoted 3 times
...
KCjoe
1 year, 6 months ago
Selected Answer: D
Basic plan of Trusted Advisor only has 7 core checks. Business plan has all these, so with LEAST development, it must be business plan. Check categories **Cost optimization** Performance Security Fault tolerance Service limits
upvoted 5 times
...
rlf
1 year, 7 months ago
B. Option C is not correct because "Enhanced infrastructure metrics is a paid feature of Compute Optimizer that applies to Amazon EC2 instances." https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html
upvoted 1 times
...
awsent
1 year, 8 months ago
Selected Answer: B
Computer Optimizer could generate Export for Lambda Functions one-time. In order to schedule every 2 weeks, EventBridge Scheduler/Schedule Rule should be used.
upvoted 4 times
...
awsent
1 year, 8 months ago
Answer: B https://aws.amazon.com/blogs/compute/optimizing-aws-lambda-cost-and-performance-using-aws-compute-optimizer/
upvoted 1 times
...
Simon523
1 year, 8 months ago
Selected Answer: B
AWS Compute Optimizer helps avoid overprovisioning and underprovisioning four types of AWS resources—Amazon Elastic Compute Cloud (EC2) instance types, Amazon Elastic Block Store (EBS) volumes, Amazon Elastic Container Service (ECS) services on AWS Fargate, and AWS Lambda functions—based on your utilization data.
upvoted 4 times
...
NikkyDicky
1 year, 10 months ago
Selected Answer: B
its a B
upvoted 1 times
...
EricZhang
1 year, 11 months ago
B - https://docs.aws.amazon.com/compute-optimizer/latest/APIReference/API_ExportLambdaFunctionRecommendations.html
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago