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 74 discussion

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

A developer notices timeouts from the AWS CLI when the developer runs list commands.
What should the developer do to avoid these timeouts?

  • A. Use the --page-size parameter to request a smaller number of items.
  • B. Use shorthand syntax to separate the list by a single space.
  • C. Use the yaml-stream output for faster viewing of large datasets.
  • D. Use quotation marks around strings to enclose data structure.
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
LEHUY
Highly Voted 2 years, 7 months ago
Selected Answer: A
AAAAAAAA
upvoted 5 times
...
sumanshu
Most Recent 4 months, 1 week ago
Selected Answer: A
A) Correct When running AWS CLI list commands (e.g., aws s3 ls, aws ec2 describe-instances), the CLI may time out due to the amount of data being retrieved in a single API request. To mitigate this, the --page-size parameter can be used to limit the number of items returned per page in each API call. This reduces the load on the CLI and prevents timeouts.
upvoted 1 times
...
rcaliandro
1 year, 10 months ago
Selected Answer: A
The correct answer is A. While the B (using --max-items) reduce the number of elements that are sent as output, the --page-size parameter instead, return all the items of the specified resource. If we set this parameter to a value for example equals to 5, it means that in background the cli will execute ona API after the other and each API requests only 5 elements by time. This is a way to avoid timeouts without interfer with the final result
upvoted 1 times
...
sichilam
2 years, 3 months ago
How to use the --page-size parameter If you see issues when running list commands on a large number of resources, the default page size might be too high. This can cause calls to AWS services to exceed the maximum allowed time and generate a "timed out" error. You can use the --page-size option to specify that the AWS CLI request a smaller number of items from each call to the AWS service. The AWS CLI still retrieves the full list, but performs a larger number of service API calls in the background and retrieves a smaller number of items with each call. This gives the individual calls a better chance of succeeding without a timeout. Changing the page size doesn't affect the output; it affects only the number of API calls that need to be made to generate the output. $ aws s3api list-objects \ --bucket my-bucket \ --page-size 100 { "Contents": [
upvoted 1 times
...
sichilam
2 years, 3 months ago
A is correct
upvoted 1 times
...
dark_cherrymon
2 years, 5 months ago
Selected Answer: A
it's A
upvoted 2 times
...
robbyboss
2 years, 7 months ago
Selected Answer: A
A: https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-pagination.html#:~:text=How%20to%20use%20the%20%2D%2Dpage%2Dsize%20parameter
upvoted 4 times
...
robbyboss
2 years, 7 months ago
https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-pagination.html#:~:text=How%20to%20use%20the%20%2D%2Dpage%2Dsize%20parameter
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