Topic 1 Question 138
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?
Deploy AWS X-Ray as a sidecar container to the microservices. Update the task role policy to allow access to the X-Ray API.
Deploy AWS X-Ray as a daemonset to the Fargate cluster. Update the service role policy to allow access to the X-Ray API.
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.
Instrument the application by using the AWS X-Ray SDK. Update the application to communicate with the X-Ray daemon.
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.
ユーザの投票
コメント(9)
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
👍 9MG14072023/08/12- 正解だと思う選択肢: 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.
👍 3love7772023/08/24 - 正解だと思う選択肢: 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.
👍 3fossil1232023/09/05
シャッフルモード