- Access keys consist of an access key ID (like AKIAIOSFODNN7EXAMPLE) and a
secret access key (like wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY). You use access keys to sign
programmatic requests that you make to AWS whether you're using the AWS SDK,
REST, or Query APIs. The AWS SDKs use your access keys (which you store as
part of the application) to sign requests for you so that you don't have to
handle the signing process. If you're unable to use the AWS SDK, you can
sign requests manually.
Access keys are also used with command line interfaces (CLIs). When you use a CLI, the commands that you issue are signed by your access keys, which you can either pass with the command or store as configuration settings on your computer.
You can also create and use temporary access keys, known as temporary security credentials. In addition to the access key ID and secret access key, temporary security credentials include a security token that you must submit to AWS when you use temporary security credentials. The advantage of temporary security credentials is that they have a limited life (after they expire, they're no longer valid), so you can use them in less secure environments or distribute them to grant users temporary access to resources in your AWS account. For example, you can use temporary security credentials to grant entities from other AWS accounts access to resources in your AWS account (cross-account access) or grant users who don't have AWS security credentials access to resources in your AWS account (federation).
We'll explore scenarios involving nested queries, aggregations, custom scoring, and hybrid queries that combine multiple search criteria. 1. Nested Queries ElasticSearch Example: ElasticSearch supports nested documents, which allows for querying on nested fields with complex conditions. Query: Find products where the product has a review with a rating of 5 and the review text contains "excellent". { "query": { "nested": { "path": "reviews", "query": { "bool": { "must": [ { "match": { "reviews.rating": 5 } }, { "match": { "reviews.text": "excellent" } } ] } } } } } Redis Limitation: Redis does not support nested documents natively. While you can store nested structures in JSON documents using the RedisJSON module, querying these nested structures with complex condi...
Comments