exam questions

Exam AWS Certified Developer Associate All Questions

View all questions & answers for the AWS Certified Developer Associate exam

Exam AWS Certified Developer Associate topic 1 question 393 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 393
Topic #: 1
[All AWS Certified Developer Associate Questions]

A company needs an application that consumes logs from Apache HTTP servers at a large scale with near real-time processing. The logs will vary in size from 300 KB to 500 KB. As part of processing, the company needs to convert the logs to JSON format and then upload the logs to an Amazon OpenSearch Service cluster.

Which combination of steps will meet these requirements? (Choose two.)

  • A. Install the Amazon CloudWatch agent on the Apache HTTP servers. Configure the CloudWatch agent to push the logs to an Amazon Simple Queue Service (Amazon SQS) queue.
  • B. Install the Amazon CloudWatch agent on the Apache HTTP servers. Configure the CloudWatch agent to push the logs to the Amazon Kinesis Data Firehose delivery stream.
  • C. Install the Amazon Kinesis agent on the Apache HTTP servers. Configure the Kinesis agent to push the logs to the Amazon Kinesis Data Firehose delivery stream.
  • D. Create an AWS Lambda function that converts the logs to JSON format and pushes the results to the OpenSearch Service cluster. Consume the logs from the Amazon Simple Queue Service (Amazon SQS) queue by using the Lambda function.
  • E. Create an Amazon Kinesis Data Firehose delivery stream. Set the source as Direct PUT. Implement an AWS Lambda function to convert the logs to JSON format. Enable source record transformation on the Kinesis Data Firehose delivery stream for the Lambda function. Set the OpenSearch Service cluster as the destination.
Show Suggested Answer Hide Answer
Suggested Answer: CE 🗳️

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
rlnd2000
2 years ago
Selected Answer: CE
In my opinion using the Amazon CloudWatch agent and CloudWatch Logs introduces an additional step of collecting the logs in CloudWatch Logs before processing them and forwarding them to the Kinesis Data Firehose delivery stream. Although CloudWatch Logs provides real-time log collection, there might be some delay in the processing and forwarding steps, which could affect the overall near real-time processing requirement.
upvoted 1 times
...
joanneli77
2 years, 4 months ago
Selected Answer: CE
"at a large scale" indicates Kinesis. BE could be right, but it is not AWS "large scale" streaming of logs platform.
upvoted 3 times
...
robotgeek
2 years, 4 months ago
Selected Answer: BE
I think it does not make sense to use a Java app to collect logs in an Apache server, cloudwatch agent is ideal for that, then you bridge CloudWatch to Kinesis in AWS
upvoted 2 times
...
Smartiup
2 years, 4 months ago
Selected Answer: BE
https://docs.aws.amazon.com/firehose/latest/dev/writing-with-cloudwatch-logs.html download pdf, page 41 tells you how cloudwatch agent can write to kinesis firehose
upvoted 1 times
a15ce96
1 year, 3 months ago
There's a Kinesis agent for these needs: https://docs.aws.amazon.com/streams/latest/dev/writing-with-agents.html. Didn't know that. So CE should work.
upvoted 1 times
...
llw33
1 year, 8 months ago
Still can't find, it says that CloudWatch Logs Subscriptions can send data to Firehose, but not CW Agent
upvoted 1 times
...
...
Drey
2 years, 4 months ago
Selected Answer: BE
It's BE.
upvoted 2 times
...
JagpreetLM10
2 years, 5 months ago
Selected Answer: BE
B. Install the Amazon CloudWatch agent on the Apache HTTP servers. Configure the CloudWatch agent to push the logs to the Amazon Kinesis Data Firehose delivery stream. E. Create an Amazon Kinesis Data Firehose delivery stream. Set the source as Direct PUT. Implement an AWS Lambda function to convert the logs to JSON format. Enable source record transformation on the Kinesis Data Firehose delivery stream for the Lambda function. Set the OpenSearch Service cluster as the destination. By installing the CloudWatch agent on the Apache HTTP servers, the company can push the logs to the Kinesis Data Firehose delivery stream. The delivery stream can then be configured to automatically convert the logs to JSON format by using an AWS Lambda function, and then pushes the logs to OpenSearch Service cluster. This allows the company to consume logs from Apache HTTP servers at a large scale with near real-time processing.
upvoted 3 times
tieyua
2 years, 5 months ago
cloudwatch is not realtime. There're some defaults like 5min, 1min, and high resolution custom metric in seconds.
upvoted 1 times
Drey
2 years, 5 months ago
CloudWatch is near real-time.
upvoted 1 times
Drey
2 years, 5 months ago
https://aws.amazon.com/about-aws/whats-new/2015/09/near-real-time-processing-of-amazon-cloudwatch-logs-with-aws-lambda/
upvoted 1 times
...
...
...
...
Phinx
2 years, 5 months ago
Selected Answer: CE
https://docs.aws.amazon.com/streams/latest/dev/writing-with-agents.html https://docs.aws.amazon.com/firehose/latest/dev/create-destination.html
upvoted 2 times
...
breathingcloud
2 years, 5 months ago
Selected Answer: CE
Agreeing for C E Kinesis Data firehouse does the job
upvoted 3 times
...
KT_Yu
2 years, 5 months ago
Selected Answer: CE
most likely C and E. SQS queue is not applicable here because it is not near-real time and the maximum message size is 256kb.
upvoted 2 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 ...