exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

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

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 138 discussion

Users are reporting errors in an application. The application consists of several microservices that are deployed on Amazon Elastic Container Service (Amazon ECS) with AWS Fargate.

Which combination of steps should a developer take to fix the errors? (Choose two.)

  • A. Deploy AWS X-Ray as a sidecar container to the microservices. Update the task role policy to allow access to the X-Ray API.
  • B. Deploy AWS X-Ray as a daemonset to the Fargate cluster. Update the service role policy to allow access to the X-Ray API.
  • C. Instrument the application by using the AWS X-Ray SDK. Update the application to use the PutXrayTrace API call to communicate with the X-Ray API.
  • D. Instrument the application by using the AWS X-Ray SDK. Update the application to communicate with the X-Ray daemon.
  • E. Instrument the ECS task to send the stdout and stderr output to Amazon CloudWatch Logs. Update the task role policy to allow the cloudwatch:PullLogs action.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
MG1407
Highly Voted 1 year, 5 months ago
AD A. You can only use X-ray with Fargate as a side car because there is not EC2 image. D. https://github.com/aws-samples/aws-xray-fargate
upvoted 14 times
Iamtany
1 year, 5 months ago
With AWS Fargate, there are no EC2 instances to install the X-Ray daemon onto. However, the X-Ray daemon is actually provided automatically with Fargate - it runs as an additional container alongside the application containers in the task. So there is no need to deploy it as a sidecar. When using X-Ray with Fargate, you just need to: Instrument the application code with the X-Ray SDK The SDK will communicate with the daemon container provided by Fargate So you're right that there are no EC2 hosts to install daemons on directly. But Fargate handles running the X-Ray daemon automatically as part of the task, eliminating the need for a sidecar. The SDK can communicate with the daemon container transparently.
upvoted 2 times
...
Nagasoracle
1 year, 3 months ago
I agree - AD https://github.com/aws-samples/aws-xray-fargate
upvoted 1 times
...
...
e886835
Most Recent 2 days, 6 hours ago
Selected Answer: D
AD- The X-Ray SDK is used to enable the application code to send trace data. By integrating the SDK, the application will automatically collect traces of the requests and responses, helping you understand where errors occur within the microservices.
upvoted 1 times
...
vkovilam
7 months, 4 weeks ago
A. Deploy AWS X-Ray as a sidecar container to the microservices. Update the task role policy to allow access to the X-Ray API. D. Instrument the application by using the AWS X-Ray SDK. Update the application to communicate with the X-Ray daemon.
upvoted 1 times
...
65703c1
8 months, 2 weeks ago
Selected Answer: A
AD is the correct answer.
upvoted 1 times
...
Single
10 months, 2 weeks ago
Selected Answer: AE
ChatGPT:AE
upvoted 1 times
...
41eb566
10 months, 3 weeks ago
Selected Answer: C
CE C. Instrument the application by using the AWS X-Ray SDK. Update the application to use the PutXrayTrace API call to communicate with the X-Ray API. This step involves instrumenting the application code using the AWS X-Ray SDK to generate trace data and communicate it to the X-Ray service for analysis. E. Instrument the ECS task to send the stdout and stderr output to Amazon CloudWatch Logs. Update the task role policy to allow the cloudwatch:PullLogs action.
upvoted 1 times
...
rrshah83
1 year, 1 month ago
Selected Answer: A
AC Fargate cannot have daemon. This rules out B and C. D is distractor.
upvoted 1 times
...
tqiu654
1 year, 2 months ago
Selected Answer: A
CHatGpt: AD
upvoted 1 times
...
ShawnWon
1 year, 2 months ago
DE Option A is incorrect because deploying AWS X-Ray as a sidecar container to the microservices is not the common practice for Fargate deployments. Fargate tasks usually run as a single container, and the application is instrumented to communicate with the X-Ray daemon. Option B is not applicable because deploying AWS X-Ray as a daemonset is a concept related to Kubernetes, not AWS Fargate. Option C is incorrect because using the AWS X-Ray SDK involves instrumenting the application, but the suggested approach is to communicate with the X-Ray daemon rather than directly calling the X-Ray API.
upvoted 3 times
...
Passexam4sure_com
1 year, 3 months ago
Selected Answer: D
Instrument the application by using the AWS X-Ray SDK. Update the application to communicate with the X-Ray daemon
upvoted 1 times
...
Claire_KMT
1 year, 3 months ago
D. Instrument the application by using the AWS X-Ray SDK. Update the application to communicate with the X-Ray daemon. E. Instrument the ECS task to send the stdout and stderr output to Amazon CloudWatch Logs. Update the task role policy to allow the cloudwatch:PullLogs action.
upvoted 1 times
...
fossil123
1 year, 5 months ago
Selected Answer: A
AD is correct. A - X-Ray container as a "Side car" in ECS/Fargate cluster D - Instrument the application using the AWS X-Ray SDK to collect telemetry data.
upvoted 3 times
...
love777
1 year, 5 months ago
Selected Answer: D
D and E Option D: Instrumenting the application using the AWS X-Ray SDK is essential for collecting traces and telemetry data. The X-Ray SDK helps you identify bottlenecks, errors, and other issues within your microservices. Communicating with the X-Ray daemon allows your microservices to send trace data to X-Ray for analysis and visualization. This requires minimal configuration and is efficient for capturing and analyzing traces. Option E: Instrumenting the ECS task to send the application's standard output (stdout) and standard error (stderr) logs to Amazon CloudWatch Logs provides visibility into the application's behavior, errors, and issues. Updating the task role policy to allow the cloudwatch:PullLogs action ensures that the ECS task has the necessary permissions to access and send logs to CloudWatch Logs.
upvoted 3 times
...
AWSdeveloper08
1 year, 6 months ago
Selected Answer: C
Answer is CE To diagnose and fix errors in an application deployed on Amazon ECS with AWS Fargate using AWS X-Ray, you should take the following steps: C. Instrument the application by using the AWS X-Ray SDK. Update the application to use the PutXrayTrace API call to communicate with the X-Ray API. Instrumenting the application using the AWS X-Ray SDK allows you to capture traces and data about requests as they flow through your application's components. E. Instrument the ECS task to send the stdout and stderr output to Amazon CloudWatch Logs. Update the task role policy to allow the cloudwatch:PullLogs action. This step will help you capture logs from your microservices, which can provide additional insights into the errors and issues occurring within the application.
upvoted 1 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