In the context of Amazon ElastiCache CLI, which of the following commands can you use to view all ElastiCache instance events for the past 24 hours?
elasticache-events –duration 24
elasticache-events –duration 1440
elasticache-describe-events –duration 24
elasticache describe-events –source-type cache-cluster –duration 1440
Explanations:
The commandelasticache-eventsis not a valid command in the ElastiCache CLI. The correct command should start withelasticache.
Similar to option A,elasticache-eventsis not a valid command. The CLI commands do not include anelasticache-eventsoption.
The commandelasticache-describe-eventsis incorrectly formatted. The valid command should beelasticache describe-events, and it does not exist aselasticache-describe-events.
This command is valid and properly formatted. It specifies the correct commandelasticache describe-eventswith the source type set tocache-clusterand duration set to 1440 minutes (which equals 24 hours).