ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 296 - DBS-C01 discussion

Report
Export

A coffee machine manufacturer is equipping all of its coffee machines with 10T sensors. The 10T core application is writing measurements for each record to Amazon Timestream. The records have multiple dimensions and measures. The measures include multiple measure names and values.

An analysis application is running queries against the Timestream database and is focusing on data from the current week. A database specialist needs to optimize the query costs of the analysis application.

Which solution will meet these requirements?

A.
Ensure that queries contain whole records over the relevant time range.
Answers
A.
Ensure that queries contain whole records over the relevant time range.
B.
Use time range, measure name, and dimensions in the WHERE clause of the query.
Answers
B.
Use time range, measure name, and dimensions in the WHERE clause of the query.
C.
Avoid canceling any query after the query starts running.
Answers
C.
Avoid canceling any query after the query starts running.
D.
Implement exponential backoff in the application.
Answers
D.
Implement exponential backoff in the application.
Suggested answer: B

Explanation:

Use time range, measure name, and dimensions in the WHEREExplanation from Amazon documents:Amazon Timestream is a serverless time series database service that allows you to store and analyze time series data at any scale. To optimize the cost of queries, you should use the following best practices1:Include only the measure and dimension names essential to query. Adding extraneous columns will increase data scans and therefore will also increase the query cost.Include a time range in the WHERE clause of your query. For example, if you only need the last one hour of data in your dataset, include a time predicate such as time > ago (1h).Include the measure names in the WHERE clause of the query when a query accesses a subset of measures in a table.Option B follows these best practices, while option A does not. Option C is incorrect because canceling a query can save on cost if the query will not return the desired results1. Option D is irrelevant because exponential backoff is a technique to handle throttling errors, not to optimize query costs2.

asked 16/09/2024
Lee Michael
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first