Answer - B
The AWS Documentation mentions the following.
Cache parameter groups are an easy way to manage runtime settings for supported engine software. Parameters are used to control memory usage, eviction policies, item sizes, and more. An ElastiCache parameter group is a named collection of engine-specific parameters that you can apply to a cluster. By doing this, you make sure that all of the nodes in that cluster are configured exactly in the same way.
Option A is incorrect because an endpoint is the unique address your application uses to connect to an ElastiCache node or cluster.
Option C is incorrect because the security group is used to controls access and does not help with this.
Option D is incorrect because the subnet group cannot be used to define values in Elasticache.
For more information on the components for Elasticache, please refer to the below link-
https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/WhatIs.Components.html