Development with AWS Services

An application must receive an immediate response from an internal service, but hard-coded IP addresses require configuration changes whenever service instances move. Which change BEST reduces location coupling?

Show the answer

Correct answerB. Discover service endpoints through AWS Cloud Map.

AWhy not this: Retries address transient failures but do not replace hard-coded endpoint addresses.

BWhy this is right: Service discovery separates the service's identity from the changing addresses of its instances.

CWhy not this: Request validation checks input correctness rather than locating service instances.

DWhy not this: Queue-based processing changes the interaction instead of preserving immediate request-response behavior.

AWS Cloud Map lets applications discover service endpoints rather than embed instance addresses. An SQS queue can decouple processing availability, but it changes the interaction to asynchronous processing rather than preserving the required immediate response.